casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
casa::GLWidget Class Reference

#include <3DController.qo.h>

List of all members.

Public Slots

void setXRotation (int angle)
void setYRotation (int angle)
void setZRotation (int angle)
void setZNear (int angle)
void setZDepth (int angle)
void setTrans (int angle)
void setColormap (const QString &)
void updatePosition ()
void setFrame (bool)
void setFog (int)
void setLight (int)
void setNumColors (int)
void setPol (const QString &, int)
void setBG (const QString &)
void setZoom (int)
void showHelp ()

Signals

void xRotationChanged (int angle)
void yRotationChanged (int angle)
void zRotationChanged (int angle)
void zNearChanged (int angle)
void zDepthChanged (int angle)
void transChanged (int angle)
void resetZNear (double, double, double)
void resetZDepth (double, double, double)
void colorChanged (int, float, float, const QString &)

Public Member Functions

 GLWidget (QWidget *parent=0)
 ~GLWidget ()
QSize minimumSizeHint () const
QSize sizeHint () const
void setDD (char *, int &pol)
void getCubeSize (Int &, Int &, Int &)
void getMinMax (Float &, Float &)
Float getBound ()

Protected Member Functions

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

Private Member Functions

void normalizeAngle (int *angle)
void setColorTable (const QString &cmap="")
GLuint makeObject (bool transChanged=true)
GLuint makeObject2 ()
void calcLinearMaps (uInt numColors, Vector< Float > &r, Vector< Float > &g, Vector< Float > &b)
void getLinearColor (Float &r, Float &g, Float &b, Float v, Float min=0., Float max=1.)
void getTableColor (Float &r, Float &g, Float &b, Float v, Float min=0., Float max=1.)

Private Attributes

DisplayData3dd3
Cube< Floatdata
QVector< DisplayPoint3pList
Vector< FloatrMap
 Colormap* cmap;.
Vector< FloatgMap
Vector< FloatbMap
int numColors
QString cmapname
GLuint object
GLuint box
GLfloat cx
GLfloat cy
GLfloat cz
GLfloat cd
int pol
GLfloat thresh
int near
int depth
int trans
int xRot
int yRot
int zRot
QPoint lastPos
bool frameOn
int zoom
QColor bg
GLuint filter
GLuint light
QString tips
QMenu * menu
QAction * helpAct
QAction * profileAct
QAction * momentAct

Static Private Attributes

static const GLuint fogMode [3]
static const GLfloat fogColor [4]

Detailed Description

Definition at line 18 of file 3DController.qo.h.


Constructor & Destructor Documentation

casa::GLWidget::GLWidget ( QWidget *  parent = 0)

Member Function Documentation

void casa::GLWidget::calcLinearMaps ( uInt  numColors,
Vector< Float > &  r,
Vector< Float > &  g,
Vector< Float > &  b 
) [private]
void casa::GLWidget::colorChanged ( int  ,
float  ,
float  ,
const QString &   
) [signal]
void casa::GLWidget::getCubeSize ( Int ,
Int ,
Int  
)
void casa::GLWidget::getLinearColor ( Float r,
Float g,
Float b,
Float  v,
Float  min = 0.,
Float  max = 1. 
) [private]
void casa::GLWidget::getMinMax ( Float ,
Float  
)
void casa::GLWidget::getTableColor ( Float r,
Float g,
Float b,
Float  v,
Float  min = 0.,
Float  max = 1. 
) [private]
void casa::GLWidget::initializeGL ( ) [protected]
GLuint casa::GLWidget::makeObject ( bool  transChanged = true) [private]
GLuint casa::GLWidget::makeObject2 ( ) [private]
void casa::GLWidget::mouseDoubleClickEvent ( QMouseEvent *  event) [protected]
void casa::GLWidget::mouseMoveEvent ( QMouseEvent *  event) [protected]
void casa::GLWidget::mousePressEvent ( QMouseEvent *  event) [protected]
void casa::GLWidget::normalizeAngle ( int *  angle) [private]
void casa::GLWidget::paintGL ( ) [protected]
void casa::GLWidget::resetZDepth ( double  ,
double  ,
double   
) [signal]
void casa::GLWidget::resetZNear ( double  ,
double  ,
double   
) [signal]
void casa::GLWidget::resizeGL ( int  width,
int  height 
) [protected]
void casa::GLWidget::setBG ( const QString &  ) [slot]
void casa::GLWidget::setColormap ( const QString &  ) [slot]
void casa::GLWidget::setColorTable ( const QString &  cmap = "") [private]
void casa::GLWidget::setDD ( char *  ,
int &  pol 
)
void casa::GLWidget::setFog ( int  ) [slot]
void casa::GLWidget::setFrame ( bool  ) [slot]
void casa::GLWidget::setLight ( int  ) [slot]
void casa::GLWidget::setNumColors ( int  ) [slot]
void casa::GLWidget::setPol ( const QString &  ,
int   
) [slot]
void casa::GLWidget::setTrans ( int  angle) [slot]
void casa::GLWidget::setXRotation ( int  angle) [slot]
void casa::GLWidget::setYRotation ( int  angle) [slot]
void casa::GLWidget::setZDepth ( int  angle) [slot]
void casa::GLWidget::setZNear ( int  angle) [slot]
void casa::GLWidget::setZoom ( int  ) [slot]
void casa::GLWidget::setZRotation ( int  angle) [slot]
void casa::GLWidget::showHelp ( ) [slot]
QSize casa::GLWidget::sizeHint ( ) const
void casa::GLWidget::transChanged ( int  angle) [signal]
void casa::GLWidget::xRotationChanged ( int  angle) [signal]
void casa::GLWidget::yRotationChanged ( int  angle) [signal]
void casa::GLWidget::zDepthChanged ( int  angle) [signal]
void casa::GLWidget::zNearChanged ( int  angle) [signal]
void casa::GLWidget::zRotationChanged ( int  angle) [signal]

Member Data Documentation

QColor casa::GLWidget::bg [private]

Definition at line 128 of file 3DController.qo.h.

Definition at line 90 of file 3DController.qo.h.

GLuint casa::GLWidget::box [private]

Definition at line 100 of file 3DController.qo.h.

GLfloat casa::GLWidget::cd [private]

Definition at line 112 of file 3DController.qo.h.

QString casa::GLWidget::cmapname [private]

Definition at line 92 of file 3DController.qo.h.

GLfloat casa::GLWidget::cx [private]

Definition at line 109 of file 3DController.qo.h.

GLfloat casa::GLWidget::cy [private]

Definition at line 110 of file 3DController.qo.h.

GLfloat casa::GLWidget::cz [private]

Definition at line 111 of file 3DController.qo.h.

Definition at line 84 of file 3DController.qo.h.

Definition at line 83 of file 3DController.qo.h.

int casa::GLWidget::depth [private]

Definition at line 118 of file 3DController.qo.h.

GLuint casa::GLWidget::filter [private]

Definition at line 130 of file 3DController.qo.h.

const GLfloat casa::GLWidget::fogColor[4] [static, private]

Definition at line 133 of file 3DController.qo.h.

const GLuint casa::GLWidget::fogMode[3] [static, private]

Definition at line 132 of file 3DController.qo.h.

bool casa::GLWidget::frameOn [private]

Definition at line 126 of file 3DController.qo.h.

Definition at line 89 of file 3DController.qo.h.

QAction* casa::GLWidget::helpAct [private]

Definition at line 140 of file 3DController.qo.h.

QPoint casa::GLWidget::lastPos [private]

Definition at line 124 of file 3DController.qo.h.

GLuint casa::GLWidget::light [private]

Definition at line 135 of file 3DController.qo.h.

QMenu* casa::GLWidget::menu [private]

Definition at line 139 of file 3DController.qo.h.

QAction* casa::GLWidget::momentAct [private]

Definition at line 142 of file 3DController.qo.h.

int casa::GLWidget::near [private]

Definition at line 117 of file 3DController.qo.h.

Definition at line 91 of file 3DController.qo.h.

GLuint casa::GLWidget::object [private]

Definition at line 99 of file 3DController.qo.h.

Definition at line 85 of file 3DController.qo.h.

int casa::GLWidget::pol [private]

Definition at line 113 of file 3DController.qo.h.

QAction* casa::GLWidget::profileAct [private]

Definition at line 141 of file 3DController.qo.h.

Colormap* cmap;.

Definition at line 88 of file 3DController.qo.h.

GLfloat casa::GLWidget::thresh [private]

Definition at line 115 of file 3DController.qo.h.

QString casa::GLWidget::tips [private]

Definition at line 137 of file 3DController.qo.h.

int casa::GLWidget::trans [private]

Definition at line 119 of file 3DController.qo.h.

int casa::GLWidget::xRot [private]

Definition at line 121 of file 3DController.qo.h.

int casa::GLWidget::yRot [private]

Definition at line 122 of file 3DController.qo.h.

int casa::GLWidget::zoom [private]

Definition at line 127 of file 3DController.qo.h.

int casa::GLWidget::zRot [private]

Definition at line 123 of file 3DController.qo.h.


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