OpenMesh
MeshViewerWidgetT< M > Class Template Reference
Inheritance diagram for MeshViewerWidgetT< M >:
Collaboration diagram for MeshViewerWidgetT< M >:

List of all members.

Public Types

typedef M Mesh
typedef OpenMesh::StripifierT
< Mesh > 
MyStripifier

Public Member Functions

 MeshViewerWidgetT (QWidget *_parent=0)
 default constructor
 ~MeshViewerWidgetT ()
 destructor
virtual bool open_mesh (const char *_filename, OpenMesh::IO::Options _opt)
 open mesh
virtual bool open_texture (const char *_filename)
 load texture
bool set_texture (QImage &_texsrc)
void enable_strips ()
void disable_strips ()
Mesh & mesh ()
const Mesh & mesh () const

Protected Member Functions

virtual void draw_scene (const std::string &_draw_mode)
 inherited drawing method
virtual void draw_openmesh (const std::string &_drawmode)
 draw the mesh
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)

Protected Attributes

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_

template<typename M>
class MeshViewerWidgetT< M >


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