⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 subdividewidget.hh

📁 penMesh is a generic and efficient data structure for representing and manipulating polygonal meshes
💻 HH
字号:
//=============================================================================////  CLASS SubdivideWidget////=============================================================================#ifndef SUBDIVIDEWIDGET_HH#define SUBDIVIDEWIDGET_HH//== INCLUDES =================================================================#include <qtimer.h>#include <qmainwindow.h>#include <qstatusbar.h>#include <OpenMesh/Apps/Subdivider/MeshViewerWidget.hh>#include <OpenMesh/Tools/Subdivider/Uniform/SubdividerT.hh>//== CLASS DEFINITION =========================================================class SubdivideWidget : public QMainWindow{  Q_OBJECT  public:  typedef OpenMesh::Subdivider::Uniform::SubdividerT< Mesh > Subdivider;  enum SOPType {    SOP_UniformCompositeLoop,    SOP_UniformCompositeSqrt3,    SOP_UniformLoop,    SOP_UniformSqrt3,    SOP_Undefined  };  typedef std::map< SOPType, Subdivider* > SubdividerPool;public:     /// constructor  SubdivideWidget(QWidget* _parent=0, const char* _name=0);  /// destructor  ~SubdivideWidget() {};  /// open mesh from _filename  bool open_mesh(const char* _filename);  void keyPressEvent( QKeyEvent *k );  /// Updates Status Bar Information  QStatusBar *status_bar;  void update(); private slots:  void animate_slot(void);  void slot_select_sop(int i);  void subdiv_slot();  void reset_slot();  void save_slot();  void load_slot();private:  // widgets  MeshViewerWidget* viewer_widget_;  QTimer *timer_;     int animate_step_;  int max_animate_steps_;  int msecs_;  // Selected and current subdivision operator  SOPType sel_topo_type; // selected operator  SOPType cur_topo_type; // active operator  //   SubdividerPool subdivider_;};//=============================================================================#endif // SUBDIVIDEWIDGET_HH defined//=============================================================================

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -