Main Page | Namespace List | Class List | File List | Class Members | File Members

GLView Class Reference

#include <glview.h>

Collaboration diagram for GLView:

Collaboration graph
[legend]
List of all members.

Public Slots

void setXRotation (int degrees)
void setYRotation (int degrees)
void setZRotation (int degrees)
void setXTranslation (int xTrans)
void setYTranslation (int yTrans)
void setZTranslation (int zTrans)
void setScaling (int scaling)
void setOxId (int iOxId)
void setOyId (int iOyId)
void setColorId (int iColorId)
void init (QString &sFilename)
void enableBrushing (bool bEnableBrushing)
void clearBrush ()
void setBrushWidth (int iBrushWidth)
void setBrushHardness (int iBrushHardness)

Public Member Functions

 GLView (QWidget *parent, const char *name)
 ~GLView ()
DataFileGetDataFile ()

Protected Member Functions

void paintGL ()
void resizeGL (int w, int h)
void mouseMoveEvent (QMouseEvent *e)
void mousePressEvent (QMouseEvent *e)
void mouseReleaseEvent (QMouseEvent *e)
void TrackData ()
void Brush ()

Private Attributes

GLfloat xRot
GLfloat yRot
GLfloat zRot
GLfloat scale
GLfloat xTrans
GLfloat yTrans
int m_iOldMouseX
int m_iOldMouseY
int m_iWidth
int m_iHeight
DataFile m_DataFile
int m_iNumTimeSteps
int m_iNumData
int m_iCurrentTimeStep
int m_iCurrentData
int m_iBarIncrement
int m_iPBCBorder
int m_iBarWidth
int m_iBarHeight
DataChannelm_pOxData
DataChannelm_pOyData
DataChannelm_pColorData
float * m_pBrush
bool m_bEnableBrushing
int m_iBrushWidth
float m_fBrushHardness
bool m_bDisplayData
bool m_bInit
vector< Bar * > m_vBars

Detailed Description

GLView inherits from QGLWidget (http://doc.trolltech.com/2.3/qglwidget.html)
QGLWidget basically allows you to control OpenGL through method calls


Constructor & Destructor Documentation

GLView::GLView QWidget *  parent,
const char *  name
 

Constructor that creates a GLView widget

GLView::~GLView  ) 
 


Member Function Documentation

void GLView::Brush  )  [protected]
 

void GLView::clearBrush  )  [slot]
 

void GLView::enableBrushing bool  bEnableBrushing  )  [slot]
 

DataFile & GLView::GetDataFile  ) 
 

void GLView::init QString &  sFilename  )  [slot]
 

void GLView::mouseMoveEvent QMouseEvent *  e  )  [protected]
 

void GLView::mousePressEvent QMouseEvent *  e  )  [protected]
 

void GLView::mouseReleaseEvent QMouseEvent *  e  )  [protected]
 

void GLView::paintGL  )  [protected]
 

Paint the box. The actual openGL commands for drawing the box are performed here.

void GLView::resizeGL int  w,
int  h
[protected]
 

Set up the OpenGL view port, matrix mode, etc.

void GLView::setBrushHardness int  iBrushHardness  )  [slot]
 

void GLView::setBrushWidth int  iBrushWidth  )  [slot]
 

void GLView::setColorId int  iColorId  )  [slot]
 

void GLView::setOxId int  iOxId  )  [slot]
 

void GLView::setOyId int  iOyId  )  [slot]
 

void GLView::setScaling int  scaling  )  [slot]
 

void GLView::setXRotation int  degrees  )  [slot]
 

void GLView::setXTranslation int  xTrans  )  [slot]
 

void GLView::setYRotation int  degrees  )  [slot]
 

void GLView::setYTranslation int  yTrans  )  [slot]
 

void GLView::setZRotation int  degrees  )  [slot]
 

void GLView::setZTranslation int  zTrans  )  [slot]
 

void GLView::TrackData  )  [protected]
 


Member Data Documentation

bool GLView::m_bDisplayData [private]
 

bool GLView::m_bEnableBrushing [private]
 

bool GLView::m_bInit [private]
 

DataFile GLView::m_DataFile [private]
 

float GLView::m_fBrushHardness [private]
 

int GLView::m_iBarHeight [private]
 

int GLView::m_iBarIncrement [private]
 

int GLView::m_iBarWidth [private]
 

int GLView::m_iBrushWidth [private]
 

int GLView::m_iCurrentData [private]
 

int GLView::m_iCurrentTimeStep [private]
 

int GLView::m_iHeight [private]
 

int GLView::m_iNumData [private]
 

int GLView::m_iNumTimeSteps [private]
 

int GLView::m_iOldMouseX [private]
 

int GLView::m_iOldMouseY [private]
 

int GLView::m_iPBCBorder [private]
 

int GLView::m_iWidth [private]
 

float* GLView::m_pBrush [private]
 

DataChannel* GLView::m_pColorData [private]
 

DataChannel* GLView::m_pOxData [private]
 

DataChannel* GLView::m_pOyData [private]
 

vector<Bar*> GLView::m_vBars [private]
 

GLfloat GLView::scale [private]
 

GLfloat GLView::xRot [private]
 

GLfloat GLView::xTrans [private]
 

GLfloat GLView::yRot [private]
 

GLfloat GLView::yTrans [private]
 

GLfloat GLView::zRot [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Jun 18 18:53:19 2004 for PBC by doxygen 1.3.6