45 #ifndef OPENMESHAPPS_PROGVIEWERWIDGET_HH 46 #define OPENMESHAPPS_PROGVIEWERWIDGET_HH 52 #include <OpenMesh/Apps/QtViewer/MeshViewerWidgetT.hh> 53 #include <OpenMesh/Core/Mesh/TriMesh_ArrayKernelT.hh> 101 n_detail_vertices_(0),
104 timer_ =
new QTimer(
this);
106 connect( timer_, SIGNAL(timeout()), SLOT(animate()) );
116 void open_prog_mesh(
const char* _filename);
120 void animate(
void );
131 typedef std::vector<PMInfo> PMInfoContainer;
132 typedef PMInfoContainer::iterator PMInfoIter;
135 void refine(
unsigned int _n);
138 void coarsen(
unsigned int _n);
140 virtual void keyPressEvent(QKeyEvent* _event)
override;
143 bool animateRefinement_;
144 PMInfoContainer pminfos_;
146 size_t n_base_vertices_, n_base_faces_, n_detail_vertices_;
147 size_t n_max_vertices_;
152 #endif // OPENMESHAPPS_PROGVIEWERWIDGET_HH defined ~ProgViewerWidget()
destructor
Definition: ProgViewerWidget.hh:110
Polygonal mesh based on the ArrayKernel.
Definition: PolyMesh_ArrayKernelT.hh:94
#define FaceAttributes(_i)
Macro for defining the face attributes. See Specifying your MyMesh.
Definition: Traits.hh:88
#define EdgeAttributes(_i)
Macro for defining the edge attributes. See Specifying your MyMesh.
Definition: Traits.hh:85
This file provides some macros containing attribute usage.
This namespace holds per item attributes like normal/color.
Definition: ProgViewerWidget.hh:85
Definition: ProgViewerWidget.hh:66
Add status to mesh item (all items)
Definition: Attributes.hh:85
Add storage for previous halfedge (halfedges). The bit is set by default in the DefaultTraits.
Definition: Attributes.hh:84
Base class for all traits.
Definition: Traits.hh:121
Kernel::Point Point
Coordinate type.
Definition: PolyMeshT.hh:112
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:59
Kernel::VertexHandle VertexHandle
Handle for referencing the corresponding item.
Definition: PolyMeshT.hh:136
Add normals to mesh item (vertices/faces)
Definition: Attributes.hh:82
#define HalfedgeAttributes(_i)
Macro for defining the halfedge attributes. See Specifying your MyMesh.
Definition: Traits.hh:82
Triangle mesh based on the ArrayKernel.
Definition: PolyMesh_ArrayKernelT.hh:73
#define VertexAttributes(_i)
Macro for defining the vertex attributes. See Specifying your MyMesh.
Definition: Traits.hh:79
ProgViewerWidget(QWidget *_parent=0)
default constructor
Definition: ProgViewerWidget.hh:97