Developer Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
MeshObjectSelectionPlugin Class Reference
Inheritance diagram for MeshObjectSelectionPlugin:
SelectionInterface LoggingInterface ScriptInterface BackupInterface INIInterface LoadSaveInterface KeyInterface BaseInterface

Public Slots

void loadSelection (int _objId, const QString &_filename)
QString version ()
bool vertexTypeActive ()
bool edgeTypeActive ()
bool faceTypeActive ()
Scriptable slots
void selectVertices (int objectId, IdList _vertexList)
 select given vertices
void unselectVertices (int objectId, IdList _vertexList)
 unselect given vertices
void selectAllVertices (int _objectId)
 Select all Vertices.
void clearVertexSelection (int _objectId)
 Unselect all vertices.
void invertVertexSelection (int _objectId)
 Invert the current vertex selection.
void selectBoundaryVertices (int _objectId)
 Select all boundary vertices of the given object.
void selectClosestBoundaryVertices (int _objectId, int _vertexId)
 Select all vertices of the boundary close to the given vertex.
void shrinkVertexSelection (int _objectId)
 Shrink the current vertex selection.
void growVertexSelection (int _objectId)
 Grow the current vertex selection.
IdList getVertexSelection (int _objectId)
 Return a list of all selected vertices.
void deleteVertexSelection (int _objectId)
 Delete vertices and faces that are currently selected.
int createMeshFromVertexSelection (int _objectId)
 select given vertices
void colorizeVertexSelection (int _objectId, int _r, int _g, int _b, int a)
 Colorize the vertex selection.
void selectHandleVertices (int objectId, IdList _vertexList)
 Set vertices to be part of the handle area.
void unselectHandleVertices (int objectId, IdList _vertexList)
 Remove vertices from handle area.
void clearHandleVertices (int objectId)
 Clear handle Area.
void setAllHandleVertices (int objectId)
 Set all vertices to be part of the handle area.
IdList getHandleVertices (int objectId)
 Get a list of all handle vertices.
void loadFlipperModelingSelection (int _objectId, QString _filename)
 Load a selection from an Flipper selection file for the given object.
void saveFlipperModelingSelection (int _objectId, QString _filename)
 Save a selection in Flipper Selection Format.
void selectModelingVertices (int objectId, IdList _vertexList)
 Set vertices to be part of the modeling area.
void unselectModelingVertices (int objectId, IdList _vertexList)
 Remove vertices from modeling area.
void selectVerticesByValue (int _objectId, QString _component, bool _greater, double _value)
 Select vertices by their value.
void clearModelingVertices (int objectId)
 Clear Modeling Area.
void setAllModelingVertices (int objectId)
 Set all vertices to be part of the modeling area.
IdList getModelingVertices (int objectId)
 Get a list of all modeling vertices.
void selectEdges (int objectId, IdList _vertexList)
 Select given Edges.
void unselectEdges (int objectId, IdList _vertexList)
 Unselect given Edges.
void selectAllEdges (int objectId)
 Select all Edges.
void invertEdgeSelection (int objectId)
 Unselect all Edges.
void clearEdgeSelection (int objectId)
 Invert the current edge selection.
void selectBoundaryEdges (int objectId)
 select boundary edges
void deleteEdgeSelection (int _objectId)
 Delete edges that are currently selected.
IdList getEdgeSelection (int objectId)
 Return a list of all selected edges.
IdList convertEdgesToVertexPairs (int _id, const IdList &_edges)
 Convert edge ids to vertex pairs.
IdList convertVertexPairsToEdges (int _id, const IdList &_vertices)
 Inverse of function above.
int createMeshFromEdgeSelection (int _objectId)
 Create a mesh containing the face selection of the given mesh.
void colorizeEdgeSelection (int objectId, int r, int g, int b, int a)
 Colorize the edge selection.
void selectHalfedges (int objectId, IdList _vertexList)
 Select given Halfedges.
void unselectHalfedges (int objectId, IdList _vertexList)
 Unselect given Halfedges.
void selectAllHalfedges (int objectId)
 Select all Halfedges.
void invertHalfedgeSelection (int objectId)
 Unselect all Halfedges.
void clearHalfedgeSelection (int objectId)
 Invert the current edge selection.
void selectBoundaryHalfedges (int objectId)
 Select boundary edges.
IdList getHalfedgeSelection (int objectId)
 Return a list of all selected edges.
IdList convertHalfedgesToVertexPairs (int _id, const IdList &_halfedges)
 Convert halfedge ids to vertex pairs.
IdList convertVertexPairsToHalfedges (int _id, const IdList &_vertices)
 Inverse of function above.
void colorizeHalfedgeSelection (int objectId, int r, int g, int b, int a)
 Colorize the edge selection.
void selectFaces (int objectId, IdList _facesList)
 Select given faces.
void unselectFaces (int objectId, IdList _facesList)
 Unselect given faces.
void selectAllFaces (int objectId)
 Select all faces.
void clearFaceSelection (int objectId)
 Unselect all faces.
void invertFaceSelection (int objectId)
 Invert the current face selection.
void deleteFaceSelection (int _objectId)
 Delete face that are currently selected.
void selectBoundaryFaces (int objectId)
 Select all boundary faces of the given object.
void shrinkFaceSelection (int objectId)
 Shrink the current face selection.
void growFaceSelection (int objectId)
 Grow the current face selection.
IdList getFaceSelection (int objectId)
 Return a list of all selected faces.
int createMeshFromFaceSelection (int _objectId)
 Create a mesh containing the face selection of the given mesh.
void colorizeFaceSelection (int objectId, int r, int g, int b, int a)
 Colorize the face selection.
void lassoSelect (QRegion &_region, PrimitiveType _primitiveType, bool _deselection)
 Lasso selection tool.

Signals

void updateView ()
void updatedObject (int, const UpdateType &)
void nodeVisibilityChanged (int _identifier)
void setSlotDescription (QString _slotName, QString _slotDescription, QStringList _parameters, QStringList _descriptions)
void createBackup (int _objectid, QString _name, UpdateType _type=UPDATE_ALL)
void log (Logtype _type, QString _message)
void log (QString _message)
void addSelectionEnvironment (QString _modeName, QString _description, QIcon _icon, QString &_handleName)
void registerType (QString _handleName, DataType _type)
void addPrimitiveType (QString _handleName, QString _name, QIcon _icon, SelectionInterface::PrimitiveType &_typeHandle)
void addSelectionOperations (QString _handleName, QStringList _operationsList, QString _category, SelectionInterface::PrimitiveType _type=0u)
void showToggleSelectionMode (QString _handleName, bool _show, SelectionInterface::PrimitiveType _associatedTypes)
void showLassoSelectionMode (QString _handleName, bool _show, SelectionInterface::PrimitiveType _associatedTypes)
void showVolumeLassoSelectionMode (QString _handleName, bool _show, SelectionInterface::PrimitiveType _associatedTypes)
void showSphereSelectionMode (QString _handleName, bool _show, SelectionInterface::PrimitiveType _associatedTypes)
void showClosestBoundarySelectionMode (QString _handleName, bool _show, SelectionInterface::PrimitiveType _associatedTypes)
void showFloodFillSelectionMode (QString _handleName, bool _show, SelectionInterface::PrimitiveType _associatedTypes)
void showComponentsSelectionMode (QString _handleName, bool _show, SelectionInterface::PrimitiveType _associatedTypes)
void getActiveDataTypes (SelectionInterface::TypeList &_types)
void getActivePrimitiveType (SelectionInterface::PrimitiveType &_type)
void targetObjectsOnly (bool &_targetsOnly)
void registerKeyShortcut (int _key, Qt::KeyboardModifiers _modifiers=Qt::NoModifier)
void deleteObject (int _objectId)
void addEmptyObject (DataType _type, int &_id)
void scriptInfo (QString _functionName)
- Signals inherited from BaseInterface
virtual void setRenderer (unsigned int _viewer, QString _rendererName)
 Set a renderer for the given viewer.
virtual void getCurrentRenderer (unsigned int _viewer, QString &_rendererName)
 Get the current renderer for the given viewer.
virtual void updateView ()
 Update current view in Main Application.
virtual void updatedObject (int _objectId)
 An object has been changed or added by this plugin.
virtual void updatedObject (int _identifier, const UpdateType &_type)
 An object has been changed or added by this plugin.
virtual void nodeVisibilityChanged (int _identifier)
 A scenegraph node has been shown or hidden.
virtual void setSlotDescription (QString _slotName, QString _slotDescription, QStringList _parameters, QStringList _descriptions)
 Set a description for a public slot.
- Signals inherited from KeyInterface
virtual void registerKey (int _key, Qt::KeyboardModifiers _modifiers, QString _description, bool _multiUse=false)
 Register a key-combination for your plugin.
- Signals inherited from LoadSaveInterface
virtual void save (int _id, QString _filename)
 Save object to a file.
virtual void load (QString _filename, DataType _type, int &_id)
 Load object from file with a specific DataType.
virtual void addEmptyObject (DataType _type, int &_id)
virtual void copyObject (int _oldId, int &_newId)
virtual void emptyObjectAdded (int _id)
 DEPRECATED! Emit this signal if an empty object has been created.
virtual void deleteObject (int _id)
 Delete an object.
virtual void deleteAllObjects ()
 Delete all Objects.
virtual void getAllFileFilters (QStringList &_filters)
 Get all file filters that are registered.
- Signals inherited from BackupInterface
virtual void createBackup (int _objectid, QString _name, UpdateType _type=UPDATE_ALL)
 Tell Backup Plugin to create a backup.
virtual void createBackup (IdList _objectids, QString _name, std::vector< UpdateType > _types)
 Tell Backup Plugin to create a group backup.
virtual void undo (int _objectid)
 Tell Backup Plugin to undo the last action of an object.
virtual void redo (int _objectid)
 Tell Backup Plugin to redo the last action on an object.
virtual void undo ()
 Tell Backup Plugin to undo the last action.
virtual void redo ()
 Tell Backup Plugin to redo the last action.
virtual void aboutToRestore (int _objectid)
 Backup Plugin tells other Plugins that a restore will happen.
virtual void restored (int _objectid)
 Backup Plugin tells other Plugins that a restore has happened.
virtual void generateBackup (int _id, QString _name, UpdateType _type)
 This signal is emitted by a BackupPlugin and tells a TypePlugin to generate a backup.
- Signals inherited from ScriptInterface
virtual void executeScript (QString _script)
virtual void executeFileScript (QString _filename)
virtual void getAvailableFunctions (QStringList &_functions)
virtual void getDescription (QString _function, QString &_description, QStringList &_parameters, QStringList &_descriptions)
virtual void scriptInfo (QString _functionWithParameters)
 Emit this signal if a scriptable function is executed.
virtual void getScriptingEngine (QScriptEngine *&_engine)
- Signals inherited from LoggingInterface
virtual void log (Logtype _type, QString _message)=0
virtual void log (QString _message)=0
- Signals inherited from SelectionInterface
virtual void addSelectionEnvironment (QString _modeName, QString _description, QIcon _icon, QString &_handleName)
 Add a selection environment in order to provide selection functions for specific data type(s)
virtual void registerType (QString _handleName, DataType _type)
 Register data type for a selection environment.
virtual void addPrimitiveType (QString _handleName, QString _name, QIcon _icon, PrimitiveType &_typeHandle)
 Provide selection for primitives other than the standard ones.
virtual void showToggleSelectionMode (QString _handleName, bool _show, PrimitiveType _associatedTypes)
 Show toggle selection mode in a specified selection environment.
virtual void showLassoSelectionMode (QString _handleName, bool _show, PrimitiveType _associatedTypes)
 Show lasso selection mode in a specified selection environment.
virtual void showVolumeLassoSelectionMode (QString _handleName, bool _show, PrimitiveType _associatedTypes)
 Show volume lasso selection mode in a specified selection environment.
virtual void showSurfaceLassoSelectionMode (QString _handleName, bool _show, PrimitiveType _associatedTypes)
 Show surface lasso selection mode in a specified selection environment.
virtual void showSphereSelectionMode (QString _handleName, bool _show, PrimitiveType _associatedTypes)
 Show sphere selection mode in a specified selection environment.
virtual void showClosestBoundarySelectionMode (QString _handleName, bool _show, PrimitiveType _associatedTypes)
 Show closest boundary selection mode in a specified selection environment.
virtual void showFloodFillSelectionMode (QString _handleName, bool _show, PrimitiveType _associatedTypes)
 Show flood fill selection mode in a specified selection environment.
virtual void showComponentsSelectionMode (QString _handleName, bool _show, PrimitiveType _associatedTypes)
 Show connected components selection mode in a specified selection environment.
virtual void addCustomSelectionMode (QString _handleName, QString _modeName, QString _description, QIcon _icon, PrimitiveType _associatedTypes, QString &_customIdentifier)
 Add a custom interactive selection mode.
virtual void addCustomSelectionMode (QString _handleName, QString _modeName, QString _description, QIcon _icon, PrimitiveType _associatedTypes, QString &_customIdentifier, DataType _objectTypeRestriction)
 Add a custom interactive selection mode.
virtual void getActiveDataTypes (TypeList &_types)
 Get the data types that the currently active selection environment supports.
virtual void getActivePrimitiveType (PrimitiveType &_type)
 Get the primitive type that is selected.
virtual void targetObjectsOnly (bool &_targetsOnly)
 Indicates whether selection should be performed on target objects only.
virtual void registerKeyShortcut (int _key, Qt::KeyboardModifiers _modifiers=Qt::NoModifier)
 Register key shortcut.
virtual void addSelectionOperations (QString _handleName, QStringList _operationsList, QString _category, PrimitiveType _type=0u)
 Add non-interactive selection operations for a specific primitive type.
virtual void selectionOperation (QString _operation)
 Emitted by selection base plugin when a non-interactive selection operation is requested.
virtual void toggleSelection (QMouseEvent *_event, PrimitiveType _currentType, bool _deselect)
 Emitted by selection base plugin whenever the user performs a toggle selection.
virtual void lassoSelection (QMouseEvent *_event, PrimitiveType _currentType, bool _deselect)
 Emitted by selection base plugin whenever the user performs a lasso selection.
virtual void volumeLassoSelection (QMouseEvent *_event, PrimitiveType _currentType, bool _deselect)
 Emitted by selection base plugin whenever the user performs a volume lasso selection.
virtual void surfaceLassoSelection (QMouseEvent *_event, PrimitiveType _currentType, bool _deselect)
 Emitted by selection base plugin whenever the user performs a surface lasso selection.
virtual void sphereSelection (QMouseEvent *_event, double _radius, PrimitiveType _currentType, bool _deselect)
 Emitted by selection base plugin whenever the user performs a sphere selection.
virtual void closestBoundarySelection (QMouseEvent *_event, PrimitiveType _currentType, bool _deselect)
 Emitted by selection base plugin whenever the user performs a closest boundary selection.
virtual void floodFillSelection (QMouseEvent *_event, double _maxAngle, PrimitiveType _currentType, bool _deselect)
 Emitted by selection base plugin whenever the user performs a flood fill selection.
virtual void componentsSelection (QMouseEvent *_event, PrimitiveType _currentType, bool _deselect)
 Emitted by selection base plugin whenever the user performs a connected components selection.
virtual void customSelection (QMouseEvent *_event, PrimitiveType _currentType, QString _customIdentifier, bool _deselect)
 Emitted by selection base plugin whenever the user performs a custom selection.
virtual void loadSelection (const INIFile &_file)
 Load selections from ini-file.
virtual void saveSelection (INIFile &_file)
 Save selections into ini-file.
virtual void keyShortcutEvent (int _key, Qt::KeyboardModifiers _modifiers=Qt::NoModifier)
 Key shortcut event happened.

Public Member Functions

 MeshObjectSelectionPlugin ()
 Default constructor.
 ~MeshObjectSelectionPlugin ()
 Default destructor.
QString name ()
QString description ()
template<typename MeshType >
void update_regions (MeshType *_mesh)
 Update face selection to correspond to the vertex selection.

Private Slots

void loadIniFile (INIFile &_ini, int _id)
void saveIniFile (INIFile &_ini, int _id)
void initializePlugin ()
void pluginsInitialized ()
void noguiSupported ()
void slotSelectionOperation (QString _operation)
void slotToggleSelection (QMouseEvent *_event, SelectionInterface::PrimitiveType _currentType, bool _deselect)
void slotLassoSelection (QMouseEvent *_event, SelectionInterface::PrimitiveType _currentType, bool _deselect)
void slotVolumeLassoSelection (QMouseEvent *_event, SelectionInterface::PrimitiveType _currentType, bool _deselect)
void slotSphereSelection (QMouseEvent *_event, double _radius, SelectionInterface::PrimitiveType _currentType, bool _deselect)
void slotClosestBoundarySelection (QMouseEvent *_event, SelectionInterface::PrimitiveType _currentType, bool _deselect)
void slotFloodFillSelection (QMouseEvent *_event, double _maxAngle, SelectionInterface::PrimitiveType _currentType, bool _deselect)
void slotComponentsSelection (QMouseEvent *_event, SelectionInterface::PrimitiveType _currentType, bool _deselect)
void slotLoadSelection (const INIFile &_file)
void slotSaveSelection (INIFile &_file)
void slotKeyShortcutEvent (int _key, Qt::KeyboardModifiers _modifiers)
Private slots
void conversionRequested ()
 Show selection conversion dialog.

Private Member Functions

Private methods
void updateSlotDescriptions ()
 Set descriptions for local public slots.
void setColorForSelection (const int _objectId, const PrimitiveType _primitiveType)
 Set color for selection.
Template Functions
template<typename MeshT >
bool deleteSelection (MeshT *_mesh, PrimitiveType _primitiveType)
 Delete all selected elements of a mesh.
template<typename MeshT >
void update_regions (MeshT *_mesh)
 Update face selection to correspond to the vertex selection.
template<typename MeshT >
void toggleMeshSelection (MeshT *_mesh, uint _fh, ACG::Vec3d &_hit_point, PrimitiveType _primitiveType)
 Toggle mesh selection.
template<typename MeshT >
void paintSphereSelection (MeshT *_mesh, int _target_idx, typename MeshT::Point _hitpoint, double _radius, PrimitiveType _primitiveTypes, bool _deselection)
 Use the event to paint selection with a sphere.
template<class MeshT >
bool volumeSelection (MeshT *_mesh, ACG::GLState &_state, QRegion *_region, PrimitiveType _primitiveTypes, bool _deselection)
 Surface volume selection tool.
template<class MeshT >
void closestBoundarySelection (MeshT *_mesh, int _vh, PrimitiveType _primitiveTypes, bool _deselection)
 Select all entities that are incident to closest boundary.
template<class MeshT >
void floodFillSelection (MeshT *_mesh, uint _fh, double _maxAngle, PrimitiveType _primitiveTypes, bool _deselection)
 Select all entities that are connected (and do not exceed the maximum dihedral angle)
template<typename MeshT >
void componentsMeshSelection (MeshT *_mesh, uint _fh, ACG::Vec3d &_hit_point, PrimitiveType _primitiveType)
 Connected component mesh selection.
template<class MeshT >
void colorizeSelection (MeshT *_mesh, PrimitiveType _primitiveTypes, int _red, int _green, int _blue, int _alpha)
 Colorize the selection.
template<class MeshT >
void createMeshFromSelection (MeshT &_mesh, MeshT &_newMesh, PrimitiveType _primitiveType)
 Create a new mesh from the selection.
template<class MeshT >
void selectVerticesByValue (MeshT *_mesh, QString _component, bool _greater, double _value)
 Select vertices by value.
Private helper function
int createMeshFromSelection (int _objectId, PrimitiveType _primitiveType)
 Create a mesh containing the selection of the given mesh.
- Private Member Functions inherited from BaseInterface
virtual ~BaseInterface ()
 Destructor.
virtual QString name ()=0
 Return a name for the plugin.
virtual QString description ()=0
 Return a description of what the plugin is doing.
- Private Member Functions inherited from KeyInterface
virtual ~KeyInterface ()
 Destructor.
- Private Member Functions inherited from LoadSaveInterface
virtual ~LoadSaveInterface ()
 Destructor.
- Private Member Functions inherited from INIInterface
virtual ~INIInterface ()
 Destructor.
- Private Member Functions inherited from BackupInterface
virtual ~BackupInterface ()
 Destructor.
- Private Member Functions inherited from ScriptInterface
virtual ~ScriptInterface ()
 Destructor.
- Private Member Functions inherited from LoggingInterface
virtual ~LoggingInterface ()
 Destructor.
- Private Member Functions inherited from SelectionInterface
virtual ~SelectionInterface ()
 Destructor.

Private Attributes

Member variables
QString environmentHandle_
 Handle to selection environment.
SelectionInterface::PrimitiveType vertexType_
 Primitive type handles:
SelectionInterface::PrimitiveType edgeType_
 Handle to selection environment.
SelectionInterface::PrimitiveType halfedgeType_
 Handle to selection environment.
SelectionInterface::PrimitiveType faceType_
 Handle to selection environment.
SelectionInterface::PrimitiveType allSupportedTypes_
 Handle to selection environment.
QPolygon lasso_2Dpoints_
 Used for lasso selection tool.
QVector< QPoint > volumeLassoPoints_
 Used for volume lasso tool.
ConversionDialogconversionDialog_
 Handle to selection environment.

Friends

class SelectVolumeAction

Additional Inherited Members

- Private Types inherited from SelectionInterface
typedef std::vector< DataTypeTypeList
typedef unsigned int PrimitiveType

Detailed Description

Definition at line 68 of file MeshObjectSelectionPlugin.hh.

Member Function Documentation

template<class MeshT >
void MeshObjectSelectionPlugin::closestBoundarySelection ( MeshT *  _mesh,
int  _vh,
PrimitiveType  _primitiveTypes,
bool  _deselection 
)
private

Select all entities that are incident to closest boundary.

select primitives of the closest boundary

Parameters
_mesha mesh
_vhhandle of the vertex that was picked
_primitiveTypesthe currently active primitive types
_deselectiontrue if primitives should be deselected

Definition at line 482 of file MeshObjectSelectionPluginT.cc.

void MeshObjectSelectionPlugin::colorizeFaceSelection ( int  objectId,
int  r,
int  g,
int  b,
int  a 
)
slot

Colorize the face selection.

colorize the face selection

Definition at line 313 of file FaceSelection.cc.

void MeshObjectSelectionPlugin::colorizeHalfedgeSelection ( int  objectId,
int  r,
int  g,
int  b,
int  a 
)
slot

Colorize the edge selection.

colorize the halfedge selection

Definition at line 350 of file HalfedgeSelection.cc.

template<typename MeshT >
void MeshObjectSelectionPlugin::colorizeSelection ( MeshT *  _mesh,
PrimitiveType  _primitiveTypes,
int  _red,
int  _green,
int  _blue,
int  _alpha 
)
private

Colorize the selection.

Colorize a selection.

Parameters
_mesha mesh
_primitiveTypesselection types
_redrgba color
_greenrgba color
_bluergba color
_alphargba color

Definition at line 784 of file MeshObjectSelectionPluginT.cc.

void MeshObjectSelectionPlugin::colorizeVertexSelection ( int  _objectId,
int  _r,
int  _g,
int  _b,
int  a 
)
slot

Colorize the vertex selection.

colorize the vertex selection

Definition at line 340 of file VertexSelection.cc.

template<class MeshT >
void MeshObjectSelectionPlugin::componentsMeshSelection ( MeshT *  _mesh,
uint  _fh,
ACG::Vec3d _hit_point,
PrimitiveType  _primitiveType 
)
private

Connected component mesh selection.

Select a complete connected component.

Parameters
_mesha mesh
_fhhandle of the face that was picked
_hit_pointpoint that was picked
_primitiveTypeprimitive types to be selected

Definition at line 636 of file MeshObjectSelectionPluginT.cc.

template<class MeshT >
void MeshObjectSelectionPlugin::createMeshFromSelection ( MeshT &  _mesh,
MeshT &  _newMesh,
PrimitiveType  _primitiveType 
)
private

Create a new mesh from the selection.

Parameters
_meshA mesh
_newMeshThe resulting mesh containing only the selected elements
_primitiveTypeWhich primitive should be used for selection (vertices,faces,edges,...)

Definition at line 858 of file MeshObjectSelectionPluginT.cc.

template<typename MeshT >
bool MeshObjectSelectionPlugin::deleteSelection ( MeshT *  _mesh,
PrimitiveType  _primitiveType 
)
private

Delete all selected elements of a mesh.

Parameters
_mesha mesh
_primitiveTypebitmask of active primitive types
Returns
returns true if the mesh was changed(i.e there was something selected that was deleted)

Definition at line 57 of file MeshObjectSelectionPluginT.cc.

template<class MeshT >
void MeshObjectSelectionPlugin::floodFillSelection ( MeshT *  _mesh,
uint  _fh,
double  _maxAngle,
PrimitiveType  _primitiveTypes,
bool  _deselection 
)
private

Select all entities that are connected (and do not exceed the maximum dihedral angle)

Select all primitves of a planar region surrounding the faceHandle.

Parameters
_mesha mesh
_fhhandle of the face that was picked
_maxAnglethe maximum dihedral angle over which the flood fill selection passes
_primitiveTypesthe currently active primitive types
_deselectiontrue if primitives should be deselected

Definition at line 563 of file MeshObjectSelectionPluginT.cc.

template<class MeshT >
void MeshObjectSelectionPlugin::paintSphereSelection ( MeshT *  _mesh,
int  _target_idx,
typename MeshT::Point  _hitpoint,
double  _radius,
PrimitiveType  _primitiveType,
bool  _deselection 
)
private

Use the event to paint selection with a sphere.

paint selection with a sphere

Parameters
_mesha mesh
_target_idxhandle of the face that was hit by the mouse picking
_hitpointpoint where the mouse picking hit
_radiusRadius of the selection sphere
_primitiveTypeprimitive types to be selected
_deselectiontrue, if entities should be deselected

Definition at line 249 of file MeshObjectSelectionPluginT.cc.

void MeshObjectSelectionPlugin::selectVerticesByValue ( int  _objectId,
QString  _component,
bool  _greater,
double  _value 
)
slot

Select vertices by their value.

Todo:
emit scriptinfo

Definition at line 576 of file VertexSelection.cc.

template<class MeshT >
void MeshObjectSelectionPlugin::toggleMeshSelection ( MeshT *  _mesh,
uint  _fh,
ACG::Vec3d _hit_point,
PrimitiveType  _primitiveType 
)
private

Toggle mesh selection.

Toggle the selection state of mesh primitives.

Parameters
_mesha mesh
_fhhandle of the face that was picked
_hit_pointpoint that was picked
_primitiveTypeprimitive types to be selected

Definition at line 146 of file MeshObjectSelectionPluginT.cc.

template<typename MeshType >
void MeshObjectSelectionPlugin::update_regions ( MeshType *  _mesh)

Update face selection to correspond to the vertex selection.

Parameters
_mesha mesh

Definition at line 106 of file MeshObjectSelectionPluginT.cc.

template<class MeshT >
bool MeshObjectSelectionPlugin::volumeSelection ( MeshT *  _mesh,
ACG::GLState _state,
QRegion *  _region,
PrimitiveType  _primitiveType,
bool  _deselection 
)
private

Surface volume selection tool.

Select all primitves that are projected to the given region.

Parameters
_mesha mesh
_statecurrent gl state
_regionregion
_primitiveTypeprimitive types to be selected
_deselectiontrue, if entities should be deselected
Returns
true, if something was selected

Definition at line 411 of file MeshObjectSelectionPluginT.cc.


The documentation for this class was generated from the following files: