Public Types | Public Slots | Signals | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes
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 updateRequested (MyDrawMode, vcg::GLFeederInfo::ReqAtts &)
void viewSmooth (bool on)

Signals

void setStatusBar (QString message)
 signal for setting the statusbar message
void setStatusBar (QString message)
 we choosed a subset of the avaible drawing modes

Public Member Functions

 GLArea (QWidget *parent=0)
 GLArea (QWidget *parent=0)
 GLArea (CMeshO &m, MLThreadSafeGLMeshAttributesFeeder &feed, QWidget *parent=NULL, QGLWidget *sharedcont=NULL)
void resetTrackBall ()
 ~GLArea ()

Public Attributes

bool smooth

Protected Member Functions

void draw ()
void init (QString file, float radius)
void initializeGL ()
void initializeGL ()
 opengl initialization and drawing calls
void initializeGL ()
 opengl initialization and drawing calls
void keyPressEvent (QKeyEvent *e)
void keyPressEvent (QKeyEvent *e)
void keyReleaseEvent (QKeyEvent *e)
void keyReleaseEvent (QKeyEvent *e)
 keyboard and mouse event callbacks
void keyReleaseEvent (QKeyEvent *e)
 keyboard and mouse event callbacks
void mouseMoveEvent (QMouseEvent *e)
void mouseMoveEvent (QMouseEvent *e)
void mouseMoveEvent (QMouseEvent *e)
void mousePressEvent (QMouseEvent *e)
void mousePressEvent (QMouseEvent *e)
void mousePressEvent (QMouseEvent *e)
void mouseReleaseEvent (QMouseEvent *e)
void mouseReleaseEvent (QMouseEvent *e)
void mouseReleaseEvent (QMouseEvent *e)
void paintGL ()
void paintGL ()
void paintGL ()
void resizeGL (int w, int h)
void resizeGL (int w, int h)
void resizeGL (int w, int h)
void wheelEvent (QWheelEvent *e)
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
void initMesh (QString message)
 mesh data structure initializer

Private Attributes

DrawMode drawmode
 the current drawmode
MyDrawMode drawmode
MLThreadSafeGLMeshAttributesFeederfeeder
vcg::GlTrimesh< CMeshglWrap
 the active mesh opengl wrapper
CMeshOmesh
 the active mesh instance
vcg::GLFeederInfo::ReqAtts rq
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 71 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)
GLArea::GLArea ( CMeshO m,
MLThreadSafeGLMeshAttributesFeeder feed,
QWidget *  parent = NULL,
QGLWidget *  sharedcont = NULL 
)

Definition at line 47 of file sample/trimesh_QT_shared/glarea.cpp.

Definition at line 52 of file sample/trimesh_QT_shared/glarea.cpp.


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]

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

void GLArea::initializeGL ( ) [protected]

opengl initialization and drawing calls

void GLArea::initializeGL ( ) [protected]

opengl initialization and drawing calls

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

mesh data structure initializer

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

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

mesh data structure initializer

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

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

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

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

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

keyboard and mouse event callbacks

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

keyboard and mouse event callbacks

void GLArea::loadDodecahedron ( ) [slot]

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

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

Definition at line 52 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 62 of file sample/trimesh_QT/glarea.cpp.

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

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

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

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

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

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

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

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

void GLArea::paintGL ( ) [protected]

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

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

Definition at line 193 of file sample/trimesh_QT_shared/glarea.cpp.

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

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

void GLArea::resizeGL ( int  w,
int  h 
) [protected]
void GLArea::resizeGL ( int  w,
int  h 
) [protected]
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 47 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::setStatusBar ( QString  message) [signal]

we choosed a subset of the avaible drawing modes

signal for setting the statusbar message

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

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

void GLArea::updateRequested ( MyDrawMode  md,
vcg::GLFeederInfo::ReqAtts reqatts 
) [slot]

Definition at line 186 of file sample/trimesh_QT_shared/glarea.cpp.

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

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

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

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

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

Member Data Documentation

vcg::Box3f GLArea::box [protected]

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

the current drawmode

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

Definition at line 104 of file sample/trimesh_QT_shared/glarea.h.

Definition at line 105 of file sample/trimesh_QT_shared/glarea.h.

the active mesh opengl wrapper

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

CMesh GLArea::mesh [protected]

the active mesh instance

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

CMeshO& GLArea::mesh [private]

the active mesh instance

Definition at line 99 of file sample/trimesh_QT_shared/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 106 of file sample/trimesh_QT_shared/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 99 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:


shape_reconstruction
Author(s): Roberto Martín-Martín
autogenerated on Sat Jun 8 2019 18:39:01