Developer Documentation
|
Public Types | |
typedef MeshViewerWidgetDecimaterBase | inherited_t |
typedef Decimater::DecimaterT< mesh_t > | decimater_t |
typedef Decimater::ModQuadricT< mesh_t >::Handle | mod_quadric_t |
typedef Decimater::ModNormalFlippingT< mesh_t >::Handle | mod_nf_t |
typedef std::auto_ptr< decimater_t > | decimater_o |
![]() | |
typedef M | Mesh |
typedef OpenMesh::StripifierT< Mesh > | MyStripifier |
![]() | |
typedef QGLWidget | Super |
Public Member Functions | |
DecimaterViewerWidget (QWidget *_parent=0) | |
default constructor More... | |
~DecimaterViewerWidget () | |
destructor More... | |
bool | open_mesh (const char *_filename, OpenMesh::IO::Options _opt) override |
open mesh More... | |
![]() | |
MeshViewerWidgetT (QWidget *_parent=0) | |
default constructor More... | |
~MeshViewerWidgetT () | |
destructor More... | |
virtual bool | open_mesh (const char *_filename, OpenMesh::IO::Options _opt) |
open mesh More... | |
virtual bool | open_texture (const char *_filename) |
load texture More... | |
bool | set_texture (QImage &_texsrc) |
void | enable_strips () |
void | disable_strips () |
Mesh & | mesh () |
const Mesh & | mesh () const |
![]() | |
QGLViewerWidget (QWidget *_parent=0) | |
void | set_scene_pos (const OpenMesh::Vec3f &_center, float _radius) |
void | view_all () |
QAction * | add_draw_mode (const std::string &_s) |
add draw mode to popup menu, and return the QAction created More... | |
void | del_draw_mode (const std::string &_s) |
delete draw mode from popup menu More... | |
const std::string & | current_draw_mode () const |
float | radius () const |
const OpenMesh::Vec3f & | center () const |
const GLdouble * | modelview_matrix () const |
const GLdouble * | projection_matrix () const |
float | fovy () const |
QAction * | findAction (const char *name) |
void | addAction (QAction *action, const char *name) |
void | removeAction (const char *name) |
void | removeAction (QAction *action) |
Protected Slots | |
void | animate (void) |
Protected Member Functions | |
virtual void | keyPressEvent (QKeyEvent *_event) override |
![]() | |
virtual void | draw_scene (const std::string &_draw_mode) override |
inherited drawing method More... | |
virtual void | draw_openmesh (const std::string &_drawmode) |
draw the mesh More... | |
void | glVertex (const typename Mesh::VertexHandle _vh) |
void | glVertex (const typename Mesh::Point &_p) |
void | glNormal (const typename Mesh::VertexHandle _vh) |
void | glTexCoord (const typename Mesh::VertexHandle _vh) |
void | glColor (const typename Mesh::VertexHandle _vh) |
void | glNormal (const typename Mesh::FaceHandle _fh) |
void | glColor (const typename Mesh::FaceHandle _fh) |
void | glMaterial (const typename Mesh::FaceHandle _fh, int _f=GL_FRONT_AND_BACK, int _m=GL_DIFFUSE) |
void | compute_strips (void) |
virtual void | keyPressEvent (QKeyEvent *_event) override |
![]() | |
virtual void | draw_scene (const std::string &_draw_mode) |
double | performance (void) |
void | setDefaultMaterial (void) |
void | setDefaultLight (void) |
virtual void | mousePressEvent (QMouseEvent *) |
virtual void | mouseReleaseEvent (QMouseEvent *) |
virtual void | mouseMoveEvent (QMouseEvent *) |
virtual void | wheelEvent (QWheelEvent *) |
virtual void | keyPressEvent (QKeyEvent *) |
Private Attributes | |
bool | animate_ |
QTimer * | timer_ |
decimater_o | decimater_ |
mod_quadric_t | mod_quadric_ |
mod_nf_t | mod_nf_ |
size_t | steps_ |
Additional Inherited Members | |
![]() | |
bool | f_strips_ |
GLuint | tex_id_ |
GLint | tex_mode_ |
OpenMesh::IO::Options | opt_ |
Mesh | mesh_ |
MyStripifier | strips_ |
bool | use_color_ |
bool | show_vnormals_ |
bool | show_fnormals_ |
float | normal_scale_ |
OpenMesh::FPropHandleT< typename Mesh::Point > | fp_normal_base_ |
Definition at line 99 of file DecimaterViewerWidget.hh.
typedef std::auto_ptr< decimater_t > DecimaterViewerWidget::decimater_o |
Definition at line 115 of file DecimaterViewerWidget.hh.
typedef Decimater::DecimaterT<mesh_t> DecimaterViewerWidget::decimater_t |
Definition at line 107 of file DecimaterViewerWidget.hh.
Definition at line 105 of file DecimaterViewerWidget.hh.
typedef Decimater::ModNormalFlippingT<mesh_t>::Handle DecimaterViewerWidget::mod_nf_t |
Definition at line 109 of file DecimaterViewerWidget.hh.
typedef Decimater::ModQuadricT<mesh_t>::Handle DecimaterViewerWidget::mod_quadric_t |
Definition at line 108 of file DecimaterViewerWidget.hh.
|
inlineexplicit |
default constructor
Definition at line 121 of file DecimaterViewerWidget.hh.
|
inline |
Definition at line 132 of file DecimaterViewerWidget.hh.
|
inline |
destructor
Definition at line 140 of file DecimaterViewerWidget.hh.
|
protectedslot |
Definition at line 130 of file DecimaterViewerWidget.cc.
|
overrideprotectedvirtual |
Reimplemented from MeshViewerWidgetT< M >.
Definition at line 68 of file DecimaterViewerWidget.cc.
|
inlineoverridevirtual |
open mesh
Reimplemented from MeshViewerWidgetT< M >.
Definition at line 147 of file DecimaterViewerWidget.hh.
|
private |
Definition at line 178 of file DecimaterViewerWidget.hh.
|
private |
Definition at line 181 of file DecimaterViewerWidget.hh.
|
private |
Definition at line 183 of file DecimaterViewerWidget.hh.
|
private |
Definition at line 182 of file DecimaterViewerWidget.hh.
|
private |
Definition at line 185 of file DecimaterViewerWidget.hh.
|
private |
Definition at line 179 of file DecimaterViewerWidget.hh.