mantaflow  0.10
A framework for fluid simulation
Public Slots | Signals | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
Manta::GLWidget Class Reference
Inheritance diagram for Manta::GLWidget:

Public Slots

void setViewport (const Vec3i &gridsize)
 
void keyPressEvent (QKeyEvent *e)
 
void keyReleaseEvent (QKeyEvent *e)
 
void windowSize (int w, int h)
 

Signals

void paintSub ()
 
void clickLine (QPoint pos, float p0, float p1, float p2, float q0, float q1, float q2)
 
void painterEvent (int e, int param=0)
 

Public Member Functions

 GLWidget (QWidget *parent=NULL)
 
QSize minimumSizeHint () const
 
QSize sizeHint () const
 
void mousePressEvent (QMouseEvent *e)
 
void mouseMoveEvent (QMouseEvent *e)
 
void mouseReleaseEvent (QMouseEvent *e)
 
void wheelEvent (QWheelEvent *e)
 
void screenshot (QString file)
 
void setCamPos (Vec3 pos)
 
void setCamRot (Vec3 pos)
 

Protected Types

enum  MoveDir {
  None = 0, MoveLeft, MoveRight, MoveUp,
  MoveDown, MoveIn, MoveOut, MoveDirNum
}
 

Protected Member Functions

bool keyProcess (int key, int mod, bool down)
 
void timerEvent (QTimerEvent *e)
 
void initializeGL ()
 
void resizeGL (int w, int h)
 
void paintGL ()
 
void updatePlane (int plane)
 

Protected Attributes

bool mMoveState [MoveDirNum]
 
bool mMoveFast
 
QPoint mAnchor
 
QPoint mDownPos
 
Vec3 mCamPos
 
float mRotX
 
float mRotY
 
Vec3i mGridsize
 
int mPlaneDim
 
int mPlane
 
int mScreenshotNumber
 
int mWidth
 
int mHeight
 

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