50 #ifndef POLYLINESELECTIONPLUGIN_HH
51 #define POLYLINESELECTIONPLUGIN_HH
62 #include <OpenFlipper/BasePlugin/INIInterface.hh>
67 #include <OpenFlipper/INIFile/INIFile.hh>
83 #if QT_VERSION >= 0x050000
84 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-SelectionPolyLine")
100 void nodeVisibilityChanged(
int _identifier);
101 void setSlotDescription(QString _slotName, QString _slotDescription,
102 QStringList _parameters, QStringList _descriptions);
105 void log(
Logtype _type, QString _message);
106 void log(QString _message);
109 void scriptInfo(QString _functionName);
112 void addSelectionEnvironment(QString _modeName, QString _description, QString _icon, QString& _handleName);
113 void registerType(QString _handleName,
DataType _type);
114 void addPrimitiveType(QString _handleName, QString _name, QString _icon, SelectionInterface::PrimitiveType& _typeHandle);
115 void addSelectionOperations(QString _handleName, QStringList _operationsList, QString _category, SelectionInterface::PrimitiveType _type = 0u);
116 void showToggleSelectionMode(QString _handleName,
bool _show, SelectionInterface::PrimitiveType _associatedTypes);
117 void showVolumeLassoSelectionMode(QString _handleName,
bool _show, SelectionInterface::PrimitiveType _associatedTypes);
119 void getActiveDataTypes(SelectionInterface::TypeList& _types);
120 void getActivePrimitiveType(SelectionInterface::PrimitiveType& _type);
121 void targetObjectsOnly(
bool& _targetsOnly);
123 void registerKeyShortcut(
int _key, Qt::KeyboardModifiers _modifiers = Qt::NoModifier);
128 void loadIniFile(
INIFile& _ini,
int _id);
129 void saveIniFile(
INIFile& _ini,
int _id);
132 void initializePlugin();
133 void pluginsInitialized();
134 void noguiSupported() {};
138 void slotToggleSelection(QMouseEvent* _event, SelectionInterface::PrimitiveType _currentType,
bool _deselect);
149 void loadSelection(
int _objId,
const QString& _filename);
155 return (QString(tr(
"PolyLine Selection")));
159 return (QString(tr(
"Allows to select PolyLines")));
176 return QString(
"1.0");
248 #endif // POLYLINESELECTIONPLUGIN_HH defined
QString description()
Return a description of what the plugin is doing.
Interface class from which all plugins have to be created.
QVector< QPoint > volumeLassoPoints_
Keep volume lasso points.
Keyboard Event Interface.
void invertEdgeSelection(int _objectId)
Invert edge selection.
Interface class for Plugins which have to store information in ini files.
Logtype
Log types for Message Window.
PrimitiveType allSupportedTypes_
Handle to selection environment.
Interface for all plugins which want to use selection functions.
PolyLineSelectionPlugin()
Default constructor.
void selectAllEdges(int _objectId)
Select all edges of a skeleton.
Interface for all Plugins which do logging to the logging window of the framework.
void slotSaveSelection(INIFile &_file)
Save selection for all objects in the scene.
IdList getEdgeSelection(int _objectId)
Get current edge selection.
void selectAllVertices(int _objectId)
Select all vertices of a skeleton.
void slotKeyShortcutEvent(int _key, Qt::KeyboardModifiers _modifiers)
One of the previously registered keys has been pressed.
QString environmentHandle_
Handle to selection environment.
void slotSelectionOperation(QString _operation)
A specific operation is requested.
void deleteSelectedEdges(int _objectId)
Delete selected edges.
Class for the handling of simple configuration files.
std::vector< int > IdList
Standard Type for id Lists used for scripting.
void deselectAllEdges(int _objectId)
Deselect all edges of a skeleton.
Interface for all Plugins which provide scriptable Functions.
~PolyLineSelectionPlugin()
Default destructor.
void invertVertexSelection(int _objectId)
Invert vertex selection.
PrimitiveType vertexType_
Primitive type handles:
void selectVertices(int _objectId, const IdList &_ids, bool _deselect=false)
Select specific vertices of a skeleton.
void slotVolumeLassoSelection(QMouseEvent *_event, SelectionInterface::PrimitiveType _currentType, bool _deselect)
Called whenever the user performs a volume lasso selection.
Interface class for backup handling.
void deselectAllVertices(int _objectId)
Deselect all vertices of a skeleton.
IdList getVertexSelection(int _objectId)
Get current vertex selection.
void selectEdges(int _objectId, const IdList &_ids, bool _deselect=false)
Select specific edges of a skeleton.
void deleteSelectedVertices(int _objectId)
Delete selected vertices.
void updateSlotDescriptions()
Set slot descriptions for scripting functions.
void slotLoadSelection(const INIFile &_file)
Load selection for specific objects in the scene.
QString name()
Return a name for the plugin.
PrimitiveType edgeType_
Handle to selection environment.
void slotToggleSelection(QMouseEvent *_event, SelectionInterface::PrimitiveType _currentType, bool _deselect)
Called whenever the user performs a toggle selection.