50 #ifndef BSPLINESURFACESELECTIONPLUGIN_HH 51 #define BSPLINESURFACESELECTIONPLUGIN_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-SelectionBSplineSurface")
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);
112 void scriptInfo(QString _functionName);
115 void addSelectionEnvironment(QString _modeName, QString _description, QString _icon, QString& _handleName);
116 void registerType(QString _handleName,
DataType _type);
117 void addPrimitiveType(QString _handleName, QString _name, QString _icon, SelectionInterface::PrimitiveType& _typeHandle);
118 void addSelectionOperations(QString _handleName, QStringList _operationsList, QString _category, SelectionInterface::PrimitiveType _type = 0u);
119 void showToggleSelectionMode(QString _handleName,
bool _show, SelectionInterface::PrimitiveType _associatedTypes);
120 void showVolumeLassoSelectionMode(QString _handleName,
bool _show, SelectionInterface::PrimitiveType _associatedTypes);
122 void getActiveDataTypes(SelectionInterface::TypeList& _types);
123 void getActivePrimitiveType(SelectionInterface::PrimitiveType& _type);
124 void targetObjectsOnly(
bool& _targetsOnly);
126 void registerKeyShortcut(
int _key, Qt::KeyboardModifiers _modifiers = Qt::NoModifier);
131 void loadIniFile(
INIFile& _ini,
int _id);
132 void saveIniFile(
INIFile& _ini,
int _id);
135 void initializePlugin();
136 void pluginsInitialized();
137 void noguiSupported() {};
141 void slotToggleSelection(QMouseEvent* _event, SelectionInterface::PrimitiveType _currentType,
bool _deselect);
152 void loadSelection(
int _objId,
const QString& _filename);
158 return (QString(tr(
"BSplineSurface Selection")));
162 return (QString(tr(
"Allows to select B-Spline surfaces")));
184 return QString(
"1.0");
261 #endif // BSPLINESURFACESELECTIONPLUGIN_HH defined QString name()
Return a name for the plugin.
SelectionViewMode
Change selection view mode for every B-spline surface in the scene.
void slotSelectionOperation(QString _operation)
A specific operation is requested.
IdList getKnotSelectionU(int _objectId)
Get current knot selection.
Logtype
Log types for Message Window.
void invertKnotSelection(int _objectId)
Invert knot selection.
void setSelectionViewMode(const SelectionViewMode _mode)
Change selection view mode for every B-spline surface in the scene.
Keyboard Event Interface.
void selectAllKnots(int _objectId)
Select all knots of a curve.
void invertControlPointSelection(int _objectId)
Invert control point selection.
void updateSlotDescriptions()
Set slot descriptions for scripting functions.
void slotVolumeLassoSelection(QMouseEvent *_event, SelectionInterface::PrimitiveType _currentType, bool _deselect)
Called whenever the user performs a volume lasso selection.
Interface for all Plugins which provide scriptable Functions.
unsigned int knotType_
Handle to selection environment.
Interface class for Plugins which have to store information in ini files.
Interface class from which all plugins have to be created.
Interface for all Plugins which do logging to the logging window of the framework.
~BSplineSurfaceSelectionPlugin()
Default destructor.
void deleteSelectedKnotsV(int _objectId)
Select all control points of a curve.
void slotLoadSelection(const INIFile &_file)
Load selection for specific objects in the scene.
IdList getKnotSelectionV(int _objectId)
Select all control points of a curve.
Class for the handling of simple configuration files.
void selectKnots(int _objectId, const IdList &_ids_u, const IdList &_ids_v, bool _deselect=false)
Select specific knots of a curve.
Interface for all plugins which want to use selection functions.
std::vector< int > IdList
Standard Type for id Lists used for scripting.
void slotSaveSelection(INIFile &_file)
Save selection for all objects in the scene.
QVector< QPoint > volumeLassoPoints_
Keep volume lasso points.
BSplineSurfaceSelectionPlugin()
Default constructor.
void selectControlPoints(int _objectId, const IdList &_ids, bool _deselect=false)
Delete selected control points.
QString description()
Return a description of what the plugin is doing.
void deselectAllControlPoints(int _objectId)
Deselect all control points of a curve.
unsigned int controlPointType_
Primitive type handles:
const UpdateType UPDATE_ALL(UpdateTypeSet(1))
Identifier for all updates.
IdList getControlPointSelection(int _objectId)
Get current control point selection.
unsigned int allSupportedTypes_
Handle to selection environment.
void deleteSelectedKnotsU(int _objectId)
Delete selected knots.
void selectAllControlPoints(int _objectId)
Select all control points of a curve.
Interface class for backup handling.
QString environmentHandle_
Handle to selection environment.
void slotToggleSelection(QMouseEvent *_event, SelectionInterface::PrimitiveType _currentType, bool _deselect)
Called whenever the user performs a toggle selection.
void slotKeyShortcutEvent(int _key, Qt::KeyboardModifiers _modifiers)
One of the previously registered keys has been pressed.
void deselectAllKnots(int _objectId)
Deselect all knots of a curve.