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
void pluginsInitialized()
initialize the Plugin
void toolBarTriggered(QAction *_action)
called when an action on the toolbar was triggered
Interface class from which all plugins have to be created.
void flip_edge(QMouseEvent *_event)
Flip edge.
Keyboard Event Interface.
Logtype
Log types for Message Window.
const UpdateType UPDATE_ALL(UpdateTypeSet(1))
Identifier for all updates.
QString name()
Return a name for the plugin.
Interface for all Plugins which do logging to the logging window of the framework.
void slotPickModeChanged(const std::string &_mode)
Toggle actions when the PickMode changes.
void split_edge(QMouseEvent *_event)
Split Edge.
Add a toolbox to OpenFlipper.
QString description()
Return a description of what the plugin is doing.
void collapse_edge(QMouseEvent *_event)
Collapse edge.
TopologyPlugin()
Constructor.
void slotMouseEvent(QMouseEvent *_event)
this is called when a mouse event occurred
Allow access to picking functions.
void delete_face(QMouseEvent *_event)
Delete a face at the current hit point.
Interface class for backup handling.
Interface class for receiving mouse events.
void clearAddFaceVertices()
clear the add face vector
void add_face(QMouseEvent *_event)
Add a face.
~TopologyPlugin()
Destructor.
void split_face(QMouseEvent *_event)
Split a face at the current hit point.