Developer Documentation
Loading...
Searching...
No Matches
OpenMesh::VDPMSynthesizerViewerWidget Class Reference
Inheritance diagram for OpenMesh::VDPMSynthesizerViewerWidget:
MeshViewerWidgetT< M > QGLViewerWidget

Public Types

typedef MeshViewerWidget Base
 
- Public Types inherited from MeshViewerWidgetT< M >
typedef M Mesh
 
typedef OpenMesh::StripifierT< Mesh > MyStripifier
 
- Public Types inherited from QGLViewerWidget
typedef QGLWidget Super
 

Public Member Functions

 VDPMSynthesizerViewerWidget (QWidget *_parent=0, const char *_name=0)
 
void open_vd_prog_mesh (const char *_filename)
 open view-dependent progressive mesh
 
void adaptive_refinement ()
 
bool qrefine (VHierarchyNodeHandle _node_handle)
 
void force_vsplit (VHierarchyNodeHandle _node_handle)
 
bool ecol_legal (VHierarchyNodeHandle _parent_handle, VDPMMesh::HalfedgeHandle &v0v1)
 
void get_active_cuts (VHierarchyNodeHandle _node_handle, VDPMMesh::VertexHandle &vl, VDPMMesh::VertexHandle &vr)
 
void vsplit (VHierarchyNodeHandle _node_handle, VDPMMesh::VertexHandle vl, VDPMMesh::VertexHandle vr)
 
void ecol (VHierarchyNodeHandle _parent_handle, const VDPMMesh::HalfedgeHandle &v0v1)
 
void init_vfront ()
 
- Public Member Functions inherited from MeshViewerWidgetT< M >
 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
 
- 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
 
void del_draw_mode (const std::string &_s)
 delete draw mode from popup menu
 
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)
 

Protected Member Functions

virtual void draw_scene (const std::string &_draw_mode) override
 inherited drawing method
 
- Protected Member Functions inherited from MeshViewerWidgetT< M >
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)
 
- Protected Member Functions inherited from QGLViewerWidget
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 *)
 

Private Member Functions

bool outside_view_frustum (const OpenMesh::Vec3f &pos, float radius)
 
bool oriented_away (float sin_square, float distance_square, float product_value)
 
bool screen_space_error (float mue_square, float sigma_square, float distance_square, float product_value)
 
void update_viewing_parameters ()
 
virtual void keyPressEvent (QKeyEvent *_event) override
 

Private Attributes

QString qFilename_
 
VHierarchy vhierarchy_
 
VFront vfront_
 
ViewingParameters viewing_parameters_
 
float kappa_square_
 
bool adaptive_mode_
 
unsigned int n_base_vertices_
 
unsigned int n_base_edges_
 
unsigned int n_base_faces_
 
unsigned int n_details_
 

Additional Inherited Members

- Protected Attributes inherited from MeshViewerWidgetT< M >
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 101 of file VDPMSynthesizerViewerWidget.hh.

Member Typedef Documentation

◆ Base

Constructor & Destructor Documentation

◆ VDPMSynthesizerViewerWidget()

OpenMesh::VDPMSynthesizerViewerWidget::VDPMSynthesizerViewerWidget ( QWidget *  _parent = 0,
const char *  _name = 0 
)
explicit

Definition at line 80 of file VDPMSynthesizerViewerWidget.cc.

◆ ~VDPMSynthesizerViewerWidget()

OpenMesh::VDPMSynthesizerViewerWidget::~VDPMSynthesizerViewerWidget ( )

Definition at line 93 of file VDPMSynthesizerViewerWidget.cc.

Member Function Documentation

◆ adaptive_refinement()

void OpenMesh::VDPMSynthesizerViewerWidget::adaptive_refinement ( )

Definition at line 111 of file VDPMSynthesizerViewerWidget.cc.

◆ draw_scene()

void OpenMesh::VDPMSynthesizerViewerWidget::draw_scene ( const std::string &  _draw_mode)
overrideprotectedvirtual

inherited drawing method

Reimplemented from MeshViewerWidgetT< M >.

Definition at line 99 of file VDPMSynthesizerViewerWidget.cc.

◆ ecol()

void OpenMesh::VDPMSynthesizerViewerWidget::ecol ( VHierarchyNodeHandle  _parent_handle,
const VDPMMesh::HalfedgeHandle v0v1 
)

Definition at line 232 of file VDPMSynthesizerViewerWidget.cc.

◆ ecol_legal()

bool OpenMesh::VDPMSynthesizerViewerWidget::ecol_legal ( VHierarchyNodeHandle  _parent_handle,
VDPMMesh::HalfedgeHandle v0v1 
)

Definition at line 257 of file VDPMSynthesizerViewerWidget.cc.

◆ force_vsplit()

void OpenMesh::VDPMSynthesizerViewerWidget::force_vsplit ( VHierarchyNodeHandle  _node_handle)

Definition at line 185 of file VDPMSynthesizerViewerWidget.cc.

◆ get_active_cuts()

void OpenMesh::VDPMSynthesizerViewerWidget::get_active_cuts ( VHierarchyNodeHandle  _node_handle,
VDPMMesh::VertexHandle vl,
VDPMMesh::VertexHandle vr 
)

Definition at line 280 of file VDPMSynthesizerViewerWidget.cc.

◆ keyPressEvent()

void OpenMesh::VDPMSynthesizerViewerWidget::keyPressEvent ( QKeyEvent *  _event)
overrideprivatevirtual

Reimplemented from MeshViewerWidgetT< M >.

Definition at line 564 of file VDPMSynthesizerViewerWidget.cc.

◆ open_vd_prog_mesh()

void OpenMesh::VDPMSynthesizerViewerWidget::open_vd_prog_mesh ( const char *  _filename)

open view-dependent progressive mesh

Definition at line 382 of file VDPMSynthesizerViewerWidget.cc.

◆ oriented_away()

bool OpenMesh::VDPMSynthesizerViewerWidget::oriented_away ( float  sin_square,
float  distance_square,
float  product_value 
)
private

Definition at line 346 of file VDPMSynthesizerViewerWidget.cc.

◆ outside_view_frustum()

bool OpenMesh::VDPMSynthesizerViewerWidget::outside_view_frustum ( const OpenMesh::Vec3f pos,
float  radius 
)
private

Definition at line 322 of file VDPMSynthesizerViewerWidget.cc.

◆ qrefine()

bool OpenMesh::VDPMSynthesizerViewerWidget::qrefine ( VHierarchyNodeHandle  _node_handle)

Definition at line 157 of file VDPMSynthesizerViewerWidget.cc.

◆ screen_space_error()

bool OpenMesh::VDPMSynthesizerViewerWidget::screen_space_error ( float  mue_square,
float  sigma_square,
float  distance_square,
float  product_value 
)
private

Definition at line 363 of file VDPMSynthesizerViewerWidget.cc.

◆ update_viewing_parameters()

void OpenMesh::VDPMSynthesizerViewerWidget::update_viewing_parameters ( )
private

Definition at line 613 of file VDPMSynthesizerViewerWidget.cc.

◆ vsplit()

void OpenMesh::VDPMSynthesizerViewerWidget::vsplit ( VHierarchyNodeHandle  _node_handle,
VDPMMesh::VertexHandle  vl,
VDPMMesh::VertexHandle  vr 
)

Definition at line 204 of file VDPMSynthesizerViewerWidget.cc.

Member Data Documentation

◆ adaptive_mode_

bool OpenMesh::VDPMSynthesizerViewerWidget::adaptive_mode_
private

Definition at line 124 of file VDPMSynthesizerViewerWidget.hh.

◆ kappa_square_

float OpenMesh::VDPMSynthesizerViewerWidget::kappa_square_
private

Definition at line 123 of file VDPMSynthesizerViewerWidget.hh.

◆ n_base_edges_

unsigned int OpenMesh::VDPMSynthesizerViewerWidget::n_base_edges_
private

Definition at line 127 of file VDPMSynthesizerViewerWidget.hh.

◆ n_base_faces_

unsigned int OpenMesh::VDPMSynthesizerViewerWidget::n_base_faces_
private

Definition at line 128 of file VDPMSynthesizerViewerWidget.hh.

◆ n_base_vertices_

unsigned int OpenMesh::VDPMSynthesizerViewerWidget::n_base_vertices_
private

Definition at line 126 of file VDPMSynthesizerViewerWidget.hh.

◆ n_details_

unsigned int OpenMesh::VDPMSynthesizerViewerWidget::n_details_
private

Definition at line 129 of file VDPMSynthesizerViewerWidget.hh.

◆ qFilename_

QString OpenMesh::VDPMSynthesizerViewerWidget::qFilename_
private

Definition at line 119 of file VDPMSynthesizerViewerWidget.hh.

◆ vfront_

VFront OpenMesh::VDPMSynthesizerViewerWidget::vfront_
private

Definition at line 121 of file VDPMSynthesizerViewerWidget.hh.

◆ vhierarchy_

VHierarchy OpenMesh::VDPMSynthesizerViewerWidget::vhierarchy_
private

Definition at line 120 of file VDPMSynthesizerViewerWidget.hh.

◆ viewing_parameters_

ViewingParameters OpenMesh::VDPMSynthesizerViewerWidget::viewing_parameters_
private

Definition at line 122 of file VDPMSynthesizerViewerWidget.hh.


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