51 #ifndef OPENMESH_VDPROGMESH_VDPMSYNTHESIZERVIEWERWIDGET_HH 52 #define OPENMESH_VDPROGMESH_VDPMSYNTHESIZERVIEWERWIDGET_HH 60 #include <OpenMesh/Core/IO/MeshIO.hh> 61 #include <OpenMesh/Core/Mesh/TriMesh_ArrayKernelT.hh> 62 #include <OpenMesh/Apps/QtViewer/MeshViewerWidgetT.hh> 64 #include <OpenMesh/Tools/VDPM/MeshTraits.hh> 65 #include <OpenMesh/Tools/VDPM/StreamingDef.hh> 66 #include <OpenMesh/Tools/VDPM/ViewingParameters.hh> 67 #include <OpenMesh/Tools/VDPM/VHierarchy.hh> 68 #include <OpenMesh/Tools/VDPM/VFront.hh> 91 typedef TriMesh_ArrayKernelT<VDPM::MeshTraits> VDPMMesh;
99 using VDPM::VHierarchy;
100 using VDPM::VHierarchyNode;
101 using VDPM::VHierarchyNodeIndex;
102 using VDPM::VHierarchyNodeHandle;
104 using VDPM::ViewingParameters;
114 typedef MeshViewerWidget
Base;
135 unsigned int n_base_vertices_;
136 unsigned int n_base_edges_;
137 unsigned int n_base_faces_;
138 unsigned int n_details_;
145 bool oriented_away(
float sin_square,
146 float distance_square,
147 float product_value);
149 bool screen_space_error(
float mue_square,
151 float distance_square,
152 float product_value);
154 void update_viewing_parameters();
156 virtual void keyPressEvent(QKeyEvent* _event);
161 virtual void draw_scene(
const std::string& _draw_mode);
165 void adaptive_refinement();
172 VDPMMesh::HalfedgeHandle& v0v1);
181 const VDPMMesh::HalfedgeHandle& v0v1);
191 #endif // OPENMESHAPPS_VDPMSYNTHESIZERVIEWERWIDGET_HH defined virtual void draw_scene(const std::string &_draw_mode)
inherited drawing method
Kernel::VertexHandle VertexHandle
Handle for referencing the corresponding item.
void open_vd_prog_mesh(const char *_filename)
open view-dependent progressive mesh
std::vector< VHierarchyNodeHandle > VHierarchyNodeHandleContainer
Container for vertex hierarchy node handles.