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