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