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