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