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>
99 animateRefinement_(true),
102 n_detail_vertices_(0),
105 timer_ =
new QTimer(
this);
107 connect( timer_, SIGNAL(timeout()), SLOT(animate()) );
132 typedef std::vector<PMInfo> PMInfoContainer;
133 typedef PMInfoContainer::iterator PMInfoIter;
136 void refine(
unsigned int _n);
139 void coarsen(
unsigned int _n);
141 virtual void keyPressEvent(QKeyEvent* _event)
override;
144 bool animateRefinement_;
145 PMInfoContainer pminfos_;
147 size_t n_base_vertices_, n_base_faces_, n_detail_vertices_;
148 size_t n_max_vertices_;
This file provides some macros containing attribute usage.
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:59
This namespace holds per item attributes like normal/color.
@ Normal
Add normals to mesh item (vertices/faces)
Definition: Attributes.hh:82
@ Status
Add status to mesh item (all items)
Definition: Attributes.hh:85
@ PrevHalfedge
Add storage for previous halfedge (halfedges). The bit is set by default in the DefaultTraits.
Definition: Attributes.hh:84
Definition: ProgViewerWidget.hh:67
Definition: ProgViewerWidget.hh:86
void open_prog_mesh(const char *_filename)
open progressive mesh
Definition: ProgViewerWidget.cc:76
~ProgViewerWidget()
destructor
Definition: ProgViewerWidget.hh:111
ProgViewerWidget(QWidget *_parent=0)
default constructor
Definition: ProgViewerWidget.hh:97
Triangle mesh based on the ArrayKernel.
Definition: TriMesh_ArrayKernelT.hh:96
Polygonal mesh based on the ArrayKernel.
Definition: PolyMesh_ArrayKernelT.hh:96
Kernel::VertexHandle VertexHandle
Handle for referencing the corresponding item.
Definition: PolyMeshT.hh:136
Kernel::Point Point
Coordinate type.
Definition: PolyMeshT.hh:112
Base class for all traits.
Definition: Traits.hh:122