Developer Documentation
MeshViewerWidget Class Reference
Inheritance diagram for MeshViewerWidget:
MeshViewerWidgetT< MyMesh > QGLViewerWidget

Public Slots

void query_open_mesh_file ()
 
void query_open_texture_file ()
 

Public Member Functions

 MeshViewerWidget (QWidget *parent=0)
 default constructor More...
 
OpenMesh::IO::Optionsoptions ()
 
const OpenMesh::IO::Optionsoptions () const
 
void setOptions (const OpenMesh::IO::Options &opts)
 
void open_mesh_gui (QString fname)
 
void open_texture_gui (QString fname)
 
- Public Member Functions inherited from MeshViewerWidgetT< MyMesh >
 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 ()
 
Meshmesh ()
 
const Meshmesh () const
 
- Public Member Functions inherited from QGLViewerWidget
 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::Vec3fcenter () 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)
 

Private Attributes

OpenMesh::IO::Options _options
 

Additional Inherited Members

- Public Types inherited from MeshViewerWidgetT< MyMesh >
typedef MyMesh Mesh
 
typedef OpenMesh::StripifierT< MeshMyStripifier
 
- Public Types inherited from QGLViewerWidget
typedef QGLWidget Super
 
- Protected Member Functions inherited from MeshViewerWidgetT< MyMesh >
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 glNormal (const typename Mesh::FaceHandle _fh)
 
void glTexCoord (const typename Mesh::VertexHandle _vh)
 
void glColor (const typename Mesh::VertexHandle _vh)
 
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
 
- Protected Member Functions inherited from QGLViewerWidget
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 *)
 
- Protected Attributes inherited from MeshViewerWidgetT< MyMesh >
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::Pointfp_normal_base_
 

Detailed Description

Definition at line 75 of file MeshViewerWidget.hh.

Constructor & Destructor Documentation

◆ MeshViewerWidget()

MeshViewerWidget::MeshViewerWidget ( QWidget *  parent = 0)
explicit

default constructor

Definition at line 54 of file MeshViewerWidget.cc.

Member Function Documentation

◆ open_mesh_gui()

void MeshViewerWidget::open_mesh_gui ( QString  fname)

Definition at line 57 of file MeshViewerWidget.cc.

◆ open_texture_gui()

void MeshViewerWidget::open_texture_gui ( QString  fname)

Definition at line 73 of file MeshViewerWidget.cc.

◆ options() [1/2]

OpenMesh::IO::Options & MeshViewerWidget::options ( )
inline

Definition at line 83 of file MeshViewerWidget.hh.

◆ options() [2/2]

const OpenMesh::IO::Options & MeshViewerWidget::options ( ) const
inline

Definition at line 84 of file MeshViewerWidget.hh.

◆ query_open_mesh_file

void MeshViewerWidget::query_open_mesh_file ( )
slot

Definition at line 87 of file MeshViewerWidget.cc.

◆ query_open_texture_file

void MeshViewerWidget::query_open_texture_file ( )
slot

Definition at line 99 of file MeshViewerWidget.cc.

◆ setOptions()

void MeshViewerWidget::setOptions ( const OpenMesh::IO::Options opts)
inline

Definition at line 85 of file MeshViewerWidget.hh.

Member Data Documentation

◆ _options

OpenMesh::IO::Options MeshViewerWidget::_options
private

Definition at line 96 of file MeshViewerWidget.hh.


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