50 #ifndef TOPOLOGYPLUGIN_HH
51 #define TOPOLOGYPLUGIN_HH
75 #if QT_VERSION >= 0x050000
76 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-Topology")
82 void updatedObject(
int _id,
const UpdateType& _type);
85 void addHiddenPickMode(
const std::string& _mode );
91 void log(
Logtype _type, QString _message);
92 void log(QString _message);
95 void addToolbar(QToolBar* _toolbar);
122 QString
name() {
return (QString(
"Topology")); };
123 QString
description( ) {
return (QString(
"Allows to control Mesh topology (Edge Flips,...)")); };
150 std::vector< std::pair<int,int> > addFaceVertices_;
154 QAction* edgeFlipAction_;
155 QAction* edgeSplitAction_;
156 QAction* edgeCollapseAction_;
158 QAction* faceAddAction_;
159 QAction* faceDeleteAction_;
160 QAction* faceSplitAction_;
164 QString version() {
return QString(
"1.0"); };
167 #endif //TOPOLOGYPLUGIN_HH
Add a toolbox to OpenFlipper.
Interface class for receiving mouse events.
void slotMouseEvent(QMouseEvent *_event)
this is called when a mouse event occurred
TopologyPlugin()
Constructor.
void collapse_edge(QMouseEvent *_event)
Collapse edge.
void add_face(QMouseEvent *_event)
Add a face.
void split_face(QMouseEvent *_event)
Split a face at the current hit point.
QString name()
Return a name for the plugin.
Interface class for backup handling.
Interface for all Plugins which do logging to the logging window of the framework.
void clearAddFaceVertices()
clear the add face vector
void pluginsInitialized()
initialize the Plugin
void slotPickModeChanged(const std::string &_mode)
Toggle actions when the PickMode changes.
Keyboard Event Interface.
Interface class from which all plugins have to be created.
Logtype
Log types for Message Window.
void flip_edge(QMouseEvent *_event)
Flip edge.
void toolBarTriggered(QAction *_action)
called when an action on the toolbar was triggered
void split_edge(QMouseEvent *_event)
Split Edge.
QString description()
Return a description of what the plugin is doing.
const UpdateType UPDATE_ALL(UpdateTypeSet(1))
Identifier for all updates.
void delete_face(QMouseEvent *_event)
Delete a face at the current hit point.
~TopologyPlugin()
Destructor.
Allow access to picking functions.