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;
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();
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:59
std::vector< VHierarchyNodeHandle > VHierarchyNodeHandleContainer
Container for vertex hierarchy node handles.
Definition: VHierarchyNode.hh:183
Definition: MeshViewerWidget.hh:76
Definition: MeshViewerWidgetT.hh:71
Definition: VDPMSynthesizerViewerWidget.hh:111
void open_vd_prog_mesh(const char *_filename)
open view-dependent progressive mesh
Definition: VDPMSynthesizerViewerWidget.cc:383
virtual void draw_scene(const std::string &_draw_mode)
inherited drawing method
Definition: VDPMSynthesizerViewerWidget.cc:100
Kernel::VertexHandle VertexHandle
Handle for referencing the corresponding item.
Definition: PolyMeshT.hh:136
Kernel::HalfedgeHandle HalfedgeHandle
Scalar type.
Definition: PolyMeshT.hh:137
Active nodes in vertex hierarchy.
Definition: VFront.hh:76
Keeps the vertex hierarchy build during analyzing a progressive mesh.
Definition: VHierarchy.hh:74
Handle for vertex hierarchy nodes
Definition: VHierarchyNode.hh:78
Definition: ViewingParameters.hh:75