GLArea Class Reference

#include <glarea.h>

List of all members.

Public Types

enum  DrawMode {
  SMOOTH = 0, POINTS, WIRE, FLATWIRE,
  HIDDEN, FLAT
}
 

we choosed a subset of the avaible drawing modes

More...

Public Slots

void add1000Faces ()
void add100Faces ()
void add10Faces ()
void addAll ()
void addFace ()
void addTot ()
void loadDodecahedron ()
void loadMesh (QString filename)
bool loadModel (const QString &file)
void loadTetrahedron ()
void open ()
void save ()
void selectDrawMode (int mode)
 widget-based user interaction slots
void setRadius (double _radius)
void setTot (int n)
void viewSmooth (bool on)

Signals

void setStatusBar (QString message)
 signal for setting the statusbar message

Public Member Functions

 GLArea (QWidget *parent=0)
 GLArea (QWidget *parent=0)

Public Attributes

bool smooth

Protected Member Functions

void draw ()
void init (QString file, float radius)
void initializeGL ()
 opengl initialization and drawing calls
void initializeGL ()
void keyPressEvent (QKeyEvent *e)
void keyReleaseEvent (QKeyEvent *e)
 keyboard and mouse event callbacks
void keyReleaseEvent (QKeyEvent *e)
void mouseMoveEvent (QMouseEvent *e)
void mouseMoveEvent (QMouseEvent *e)
void mousePressEvent (QMouseEvent *e)
void mousePressEvent (QMouseEvent *e)
void mouseReleaseEvent (QMouseEvent *e)
void mouseReleaseEvent (QMouseEvent *e)
void paintGL ()
void paintGL ()
void resizeGL (int w, int h)
void resizeGL (int w, int h)
void wheelEvent (QWheelEvent *e)
void wheelEvent (QWheelEvent *e)

Protected Attributes

vcg::Box3f box
CMesh mesh
 the active mesh instance
Pivot< CMesh > * pivot
float radius
int tot
vcg::Trackball trackball

Private Member Functions

void initMesh (QString message)
 mesh data structure initializer

Private Attributes

DrawMode drawmode
 the current drawmode
vcg::GlTrimesh< CMeshglWrap
 the active mesh opengl wrapper
vcg::Trackball track
 the active manipulator

Detailed Description

Definition at line 19 of file pivoting/glarea.h.


Member Enumeration Documentation

we choosed a subset of the avaible drawing modes

Enumerator:
SMOOTH 
POINTS 
WIRE 
FLATWIRE 
HIDDEN 
FLAT 

Definition at line 73 of file sample/trimesh_QT/glarea.h.


Constructor & Destructor Documentation

GLArea::GLArea ( QWidget *  parent = 0  ) 

Definition at line 29 of file pivoting/glarea.cpp.

GLArea::GLArea ( QWidget *  parent = 0  ) 

Member Function Documentation

void GLArea::add1000Faces (  )  [slot]

Definition at line 113 of file pivoting/glarea.cpp.

void GLArea::add100Faces (  )  [slot]

Definition at line 107 of file pivoting/glarea.cpp.

void GLArea::add10Faces (  )  [slot]

Definition at line 99 of file pivoting/glarea.cpp.

void GLArea::addAll (  )  [slot]

Definition at line 119 of file pivoting/glarea.cpp.

void GLArea::addFace (  )  [slot]

Definition at line 89 of file pivoting/glarea.cpp.

void GLArea::addTot (  )  [slot]

Definition at line 127 of file pivoting/glarea.cpp.

void GLArea::draw (  )  [protected]
void GLArea::init ( QString  file,
float  radius = 1.2 
) [protected]

Definition at line 48 of file pivoting/glarea.cpp.

void GLArea::initializeGL (  )  [protected]

opengl initialization and drawing calls

void GLArea::initializeGL (  )  [protected]

Definition at line 139 of file pivoting/glarea.cpp.

void GLArea::initMesh ( QString  message  )  [private]

mesh data structure initializer

Definition at line 69 of file sample/trimesh_QT/glarea.cpp.

void GLArea::keyPressEvent ( QKeyEvent *  e  )  [protected]

Definition at line 158 of file sample/trimesh_QT/glarea.cpp.

void GLArea::keyReleaseEvent ( QKeyEvent *  e  )  [protected]

keyboard and mouse event callbacks

void GLArea::keyReleaseEvent ( QKeyEvent *  e  )  [protected]

Definition at line 387 of file pivoting/glarea.cpp.

void GLArea::loadDodecahedron (  )  [slot]

Definition at line 64 of file sample/trimesh_QT/glarea.cpp.

void GLArea::loadMesh ( QString  filename  )  [slot]

Definition at line 49 of file sample/trimesh_QT/glarea.cpp.

bool GLArea::loadModel ( const QString &  file  )  [slot]

Definition at line 37 of file pivoting/glarea.cpp.

void GLArea::loadTetrahedron (  )  [slot]

Definition at line 59 of file sample/trimesh_QT/glarea.cpp.

void GLArea::mouseMoveEvent ( QMouseEvent *  e  )  [protected]
void GLArea::mouseMoveEvent ( QMouseEvent *  e  )  [protected]

Definition at line 371 of file pivoting/glarea.cpp.

void GLArea::mousePressEvent ( QMouseEvent *  e  )  [protected]
void GLArea::mousePressEvent ( QMouseEvent *  e  )  [protected]

Definition at line 394 of file pivoting/glarea.cpp.

void GLArea::mouseReleaseEvent ( QMouseEvent *  e  )  [protected]
void GLArea::mouseReleaseEvent ( QMouseEvent *  e  )  [protected]

Definition at line 403 of file pivoting/glarea.cpp.

void GLArea::open (  )  [slot]

Definition at line 42 of file pivoting/glarea.cpp.

void GLArea::paintGL (  )  [protected]
void GLArea::paintGL (  )  [protected]

Definition at line 183 of file pivoting/glarea.cpp.

void GLArea::resizeGL ( int  w,
int  h 
) [protected]
void GLArea::resizeGL ( int  w,
int  h 
) [protected]

Definition at line 169 of file pivoting/glarea.cpp.

void GLArea::save (  )  [slot]

Definition at line 81 of file pivoting/glarea.cpp.

void GLArea::selectDrawMode ( int  mode  )  [slot]

widget-based user interaction slots

Definition at line 44 of file sample/trimesh_QT/glarea.cpp.

void GLArea::setRadius ( double  _radius  )  [inline, slot]

Definition at line 40 of file pivoting/glarea.h.

void GLArea::setStatusBar ( QString  message  )  [signal]

signal for setting the statusbar message

void GLArea::setTot ( int  n  )  [inline, slot]

Definition at line 35 of file pivoting/glarea.h.

void GLArea::viewSmooth ( bool  on  )  [slot]

Definition at line 135 of file pivoting/glarea.cpp.

void GLArea::wheelEvent ( QWheelEvent *  e  )  [protected]
void GLArea::wheelEvent ( QWheelEvent *  e  )  [protected]

Definition at line 363 of file pivoting/glarea.cpp.


Member Data Documentation

vcg::Box3f GLArea::box [protected]

Definition at line 49 of file pivoting/glarea.h.

the current drawmode

Definition at line 103 of file sample/trimesh_QT/glarea.h.

the active mesh opengl wrapper

Definition at line 99 of file sample/trimesh_QT/glarea.h.

CMesh GLArea::mesh [protected]

the active mesh instance

Definition at line 50 of file pivoting/glarea.h.

Pivot<CMesh>* GLArea::pivot [protected]

Definition at line 52 of file pivoting/glarea.h.

float GLArea::radius [protected]

Definition at line 48 of file pivoting/glarea.h.

Definition at line 25 of file pivoting/glarea.h.

int GLArea::tot [protected]

Definition at line 46 of file pivoting/glarea.h.

the active manipulator

Definition at line 101 of file sample/trimesh_QT/glarea.h.

Definition at line 53 of file pivoting/glarea.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


vcglib
Author(s): Christian Bersch
autogenerated on Fri Jan 11 09:22:04 2013