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