RCWidget Class Reference

#include <RCWidget.h>

Collaboration diagram for RCWidget:
[legend]

List of all members.

Public Member Functions

 RCWidget (QWidget *parent=0, int width=0, int height=0)
 ~RCWidget ()
QSize minimumSizeHint () const
QSize sizeHint () const
void setVolume (Volume *vol)
void updateTransferFunc (float data[], int size)
void updateLightValues (QColor *ka, QColor *kd, QColor *ks, int shininess)
void updateLightVector (float x, float y, float z, bool showLV, bool showVV)
void drawLightVector ()
void drawViewVector ()
Vector calculateViewVector ()
void updateViewVector ()
bool makeScreenshot (QFile *file)
void setShaderTranslucency (int translucency)
void setShaderQuality (int quality)
void setShaderViewVector (Vector view)
void setClipX (int x)
void setClipY (int y)
void setClipZ (int z)
void setInvertX (bool invX)
void setInvertY (bool invY)
void setInvertZ (bool invZ)

Protected Member Functions

void initializeGL ()
void paintGL ()
void resizeGL (int width, int height)
void mousePressEvent (QMouseEvent *event)
void mouseMoveEvent (QMouseEvent *event)
void wheelEvent (QWheelEvent *event)

Private Member Functions

void makeMeCurrent ()
void updateFBO ()
void checkFBO ()
void initGLEW ()
void renderResult ()
void vertex (float x, float y, float z, GLuint texUnit)
void drawCube (float x=1.0f, float y=1.0f, float z=1.0f, int texUnit=1)
void drawFullscreenQuad (int texUnit=1)
void update1dTexture (float data[], int size)
void update2dTextures ()
void update3dTextures ()
const int GetNextPowerOfTwo (const int iNumber)
void deleteTextures (bool del1d, bool del2d, bool del3d)
void setUniformScale (float factor)
void setXRotation (float angle)
void setYRotation (float angle)
void setZRotation (float angle)
void setTranslate (float x, float y)
void normalizeAngle (float *angle)

Private Attributes

int widgetWidth
int widgetHeight
Volumevolume
ShaderWrapshaders
GLuint texture1d
GLuint texture3d
GLuint texture3d_grad
GLuint texture2d_backfaces
GLuint texture2d_result
GLuint frameBuffer
GLuint renderBuffer
QPoint mousePos
float xRot
float yRot
float zRot
float xScale
float yScale
float zScale
float maxZoomSize
float clipX
float clipY
float clipZ
float moveX
float moveY
bool invertX
bool invertY
bool invertZ
bool showLightVector
bool showViewVector
GLfloat lightAmbient [4]
GLfloat lightDiffuse [4]
GLfloat lightSpecular [4]
GLfloat lightPosition [4]
GLfloat lightSpotExp [1]
float lx
float ly
float lz


Constructor & Destructor Documentation

RCWidget::RCWidget ( QWidget *  parent = 0,
int  width = 0,
int  height = 0 
)

RCWidget::~RCWidget (  ) 


Member Function Documentation

Vector RCWidget::calculateViewVector (  ) 

Here is the call graph for this function:

void RCWidget::checkFBO (  )  [private]

void RCWidget::deleteTextures ( bool  del1d,
bool  del2d,
bool  del3d 
) [private]

Here is the call graph for this function:

void RCWidget::drawCube ( float  x = 1.0f,
float  y = 1.0f,
float  z = 1.0f,
int  texUnit = 1 
) [private]

Here is the call graph for this function:

void RCWidget::drawFullscreenQuad ( int  texUnit = 1  )  [private]

Here is the call graph for this function:

void RCWidget::drawLightVector (  ) 

Here is the call graph for this function:

void RCWidget::drawViewVector (  ) 

Here is the call graph for this function:

const int RCWidget::GetNextPowerOfTwo ( const int  iNumber  )  [private]

void RCWidget::initGLEW (  )  [private]

void RCWidget::initializeGL (  )  [protected]

Here is the call graph for this function:

void RCWidget::makeMeCurrent (  )  [private]

bool RCWidget::makeScreenshot ( QFile *  file  ) 

Here is the call graph for this function:

QSize RCWidget::minimumSizeHint (  )  const

void RCWidget::mouseMoveEvent ( QMouseEvent *  event  )  [protected]

Here is the call graph for this function:

void RCWidget::mousePressEvent ( QMouseEvent *  event  )  [protected]

void RCWidget::normalizeAngle ( float *  angle  )  [private]

void RCWidget::paintGL (  )  [protected]

Here is the call graph for this function:

void RCWidget::renderResult (  )  [private]

Here is the call graph for this function:

void RCWidget::resizeGL ( int  width,
int  height 
) [protected]

Here is the call graph for this function:

void RCWidget::setClipX ( int  x  ) 

Here is the call graph for this function:

void RCWidget::setClipY ( int  y  ) 

Here is the call graph for this function:

void RCWidget::setClipZ ( int  z  ) 

Here is the call graph for this function:

void RCWidget::setInvertX ( bool  invX  ) 

void RCWidget::setInvertY ( bool  invY  ) 

void RCWidget::setInvertZ ( bool  invZ  ) 

void RCWidget::setShaderQuality ( int  quality  ) 

Here is the call graph for this function:

void RCWidget::setShaderTranslucency ( int  translucency  ) 

Here is the call graph for this function:

void RCWidget::setShaderViewVector ( Vector  view  ) 

Here is the call graph for this function:

void RCWidget::setTranslate ( float  x,
float  y 
) [private]

void RCWidget::setUniformScale ( float  factor  )  [private]

void RCWidget::setVolume ( Volume vol  ) 

Here is the call graph for this function:

void RCWidget::setXRotation ( float  angle  )  [private]

Here is the call graph for this function:

void RCWidget::setYRotation ( float  angle  )  [private]

Here is the call graph for this function:

void RCWidget::setZRotation ( float  angle  )  [private]

Here is the call graph for this function:

QSize RCWidget::sizeHint (  )  const

void RCWidget::update1dTexture ( float  data[],
int  size 
) [private]

Here is the call graph for this function:

void RCWidget::update2dTextures (  )  [private]

Here is the call graph for this function:

void RCWidget::update3dTextures (  )  [private]

Here is the call graph for this function:

void RCWidget::updateFBO (  )  [private]

Here is the call graph for this function:

void RCWidget::updateLightValues ( QColor *  ka,
QColor *  kd,
QColor *  ks,
int  shininess 
)

Here is the call graph for this function:

void RCWidget::updateLightVector ( float  x,
float  y,
float  z,
bool  showLV,
bool  showVV 
)

Here is the call graph for this function:

void RCWidget::updateTransferFunc ( float  data[],
int  size 
)

Here is the call graph for this function:

void RCWidget::updateViewVector (  ) 

Here is the call graph for this function:

void RCWidget::vertex ( float  x,
float  y,
float  z,
GLuint  texUnit 
) [private]

void RCWidget::wheelEvent ( QWheelEvent *  event  )  [protected]

Here is the call graph for this function:


Member Data Documentation

float RCWidget::clipX [private]

float RCWidget::clipY [private]

float RCWidget::clipZ [private]

GLuint RCWidget::frameBuffer [private]

bool RCWidget::invertX [private]

bool RCWidget::invertY [private]

bool RCWidget::invertZ [private]

GLfloat RCWidget::lightAmbient[4] [private]

GLfloat RCWidget::lightDiffuse[4] [private]

GLfloat RCWidget::lightPosition[4] [private]

GLfloat RCWidget::lightSpecular[4] [private]

GLfloat RCWidget::lightSpotExp[1] [private]

float RCWidget::lx [private]

float RCWidget::ly [private]

float RCWidget::lz [private]

float RCWidget::maxZoomSize [private]

QPoint RCWidget::mousePos [private]

float RCWidget::moveX [private]

float RCWidget::moveY [private]

GLuint RCWidget::renderBuffer [private]

bool RCWidget::showLightVector [private]

bool RCWidget::showViewVector [private]

GLuint RCWidget::texture1d [private]

GLuint RCWidget::texture2d_result [private]

GLuint RCWidget::texture3d [private]

GLuint RCWidget::texture3d_grad [private]

int RCWidget::widgetHeight [private]

int RCWidget::widgetWidth [private]

float RCWidget::xRot [private]

float RCWidget::xScale [private]

float RCWidget::yRot [private]

float RCWidget::yScale [private]

float RCWidget::zRot [private]

float RCWidget::zScale [private]


The documentation for this class was generated from the following files:

Generated on Wed Dec 10 13:35:14 2008 for VisLu by  doxygen 1.5.7.1