Plugin to visualize information about objects in the scene.
More...
#include <Plugin-InfoMeshObject/MeshObjectInfoPlugin.hh>
|
|
void | setSlotDescription (QString _slotName, QString _slotDescription, QStringList _parameters, QStringList _descriptions) |
| |
|
void | log (Logtype _type, QString _message) |
| |
|
void | log (QString _message) |
| |
|
void | addWidgetToStatusbar (QWidget *_widget) |
| |
| virtual void | updateView () |
| | Update current view in Main Application.
|
| |
| virtual void | setSlotDescription (QString _slotName, QString _slotDescription, QStringList _parameters, QStringList _descriptions) |
| | Set a description for a public slot.
|
| |
| virtual void | setRenderer (unsigned int _viewer, QString _rendererName) |
| | Set a renderer for the given viewer.
|
| |
| virtual void | log (Logtype _type, QString _message)=0 |
| |
| virtual void | log (QString _message)=0 |
| |
| virtual void | showStatusMessage (QString _message, int _timeout=0) |
| | Show a message in the status bar.
|
| |
| 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 | executePythonScript (QString _script) |
| |
|
| QString | name () |
| | Name of the Plugin.
|
| |
| QString | description () |
| | Description of the Plugin.
|
| |
|
| void | slotInformationRequested (const QPoint _clickedPoint, DataType _type) |
| | Show information dialog on clicked object.
|
| |
| DataType | supportedDataTypes () |
| | Get data type for information requests.
|
| |
| void | slotShowHistogram () |
| |
| template<class MeshT > |
| void | printMeshInfo (MeshT *_mesh, int _id, unsigned int _face, ACG::Vec3d &_hitPoint) |
| |
| void | updateData (int _identifier, const UpdateType &_type, const bool deleted) |
| | Slot that updates the visualization.
|
| |
| virtual void | noguiSupported () |
| |
| virtual | ~BaseInterface () |
| | Destructor.
|
| |
| virtual void | blockScenegraphUpdates (bool _block) |
| | Tell the core to prevent scenegraph updates.
|
| |
| 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 | getCurrentRenderer (unsigned int _viewer, QString &_rendererName) |
| | Get the current renderer for the given viewer.
|
| |
| virtual | ~InformationInterface () |
| | Default destructor.
|
| |
| virtual | ~LoggingInterface () |
| | Destructor.
|
| |
| virtual | ~StatusbarInterface () |
| | Destructor.
|
| |
| virtual void | setStatus (ApplicationStatus::applicationStatus _status) |
| | Sets the status icon of the StatusBar.
|
| |
| virtual void | clearStatusMessage () |
| | Removes the current message from the statusBar.
|
| |
| virtual void | addWidgetToStatusbar (QWidget *_widget) |
| | Add a widget on the right side of the statusBar.
|
| |
| virtual | ~LoadSaveInterface () |
| | Destructor.
|
| |
| virtual void | addEmptyObject (DataType _type, int &_id) |
| |
| virtual void | copyObject (int _oldId, int &_newId) |
| |
| virtual void | emptyObjectAdded (int _id) |
| | DEPRECATED HERE (Moved to Type Interface)! Emit this signal if an empty object has been created.
|
| |
| virtual void | deleteObject (int _id) |
| | Delete an object
This signal can be called from any thread.
.
|
| |
| virtual void | deleteAllObjects () |
| | Delete all Objects.
|
| |
| virtual void | getAllFileFilters (QStringList &_filters) |
| | Get all file filters that are registered.
|
| |
| virtual void | openPythonScriptInEditor (QString _script) |
| |
| virtual | ~PythonInterface () |
| | Destructor.
|
| |
|
| void | setDescriptions () |
| | set scripting slot descriptions
|
| |
| template<class MeshT > |
| int | getClosestVertexInFace (MeshT *_mesh, int _face_idx, ACG::Vec3d &_hitPoint) |
| | Get closest vertex index from a face.
|
| |
| template<class MeshT > |
| int | getClosestEdgeInFace (MeshT *_mesh, int _face_idx, const ACG::Vec3d &_hitPoint) |
| | Get closest edge index from a face.
|
| |
| template<class MeshT > |
| int | getClosestVertexFromEdge (MeshT *_mesh, int _edge_idx, ACG::Vec3d &_hitPoint) |
| | Get closest vertex index from an edge.
|
| |
| template<class MeshT > |
| void | getEdgeLengths (MeshT *_mesh, double &min, double &max, double &mean) |
| | Get edge lengths.
|
| |
| bool | getEdgeLengths (int _id, double &min, double &max, double &mean) |
| | Get edge lengths.
|
| |
| int | vertexCount (int _id) |
| | get total number of vertices for a given object
|
| |
| int | edgeCount (int _id) |
| | get total number of edges for a given object
|
| |
| int | faceCount (int _id) |
| | get total number of faces for a given object
|
| |
| int | boundaryCount (int _id) |
| | get the number of boundaries for a given object
|
| |
| int | componentCount (int _id) |
| | get the number of components for a given object
|
| |
| int | genus (int _id) |
| | get the genus of the given object
|
| |
| Vector | cog (int _id) |
| | get the center of gravity
|
| |
| Vector | boundingBoxMin (int _id) |
| | get minumum bounding box point
|
| |
| Vector | boundingBoxMax (int _id) |
| | get maximum bounding box point
|
| |
| Vector | boundingBoxSize (int _id) |
| | get the size of the bounding box
|
| |
| double | edgeLength (int _id, int _edgeHandle) |
| | get the length of an edge
|
| |
| double | faceArea (int _id, int _faceHandle) |
| | get the area of a face
|
| |
| double | aspectRatio (int _id, int _faceHandle) |
| | get the aspect ratio of a face
|
| |
| int | vertexValence (int _id, int _vertexHandle) |
| | get vertex valence
|
| |
| double | minEdgeLength (int _id) |
| | get the minimal edge length
|
| |
| double | maxEdgeLength (int _id) |
| | get the maximal edge length
|
| |
| double | meanEdgeLength (int _id) |
| | get the mean edge length
|
| |
| QString | version () |
| | set scripting slot descriptions
|
| |
Plugin to visualize information about objects in the scene.
Plugin to visualize information about objects in the scene
Definition at line 78 of file MeshObjectInfoPlugin.hh.
◆ InfoMeshObjectPlugin()
| InfoMeshObjectPlugin::InfoMeshObjectPlugin |
( |
| ) |
|
◆ ~InfoMeshObjectPlugin()
| InfoMeshObjectPlugin::~InfoMeshObjectPlugin |
( |
| ) |
|
◆ aspectRatio
| double InfoMeshObjectPlugin::aspectRatio |
( |
int |
_id, |
|
|
int |
_faceHandle |
|
) |
| |
|
slot |
get the aspect ratio of a face
- Parameters
-
| _id | id of an object |
| _faceHandle | face handle |
- Returns
- aspect ratio or -1 if an error occured
Definition at line 705 of file MeshObjectInfoScripting.cc.
◆ boundaryCount
| int InfoMeshObjectPlugin::boundaryCount |
( |
int |
_id | ) |
|
|
slot |
get the number of boundaries for a given object
- Parameters
-
- Returns
- number of boundaries or -1 if an error occured
Definition at line 248 of file MeshObjectInfoScripting.cc.
◆ boundingBoxMax
| Vector InfoMeshObjectPlugin::boundingBoxMax |
( |
int |
_id | ) |
|
|
slot |
get maximum bounding box point
get maximum point of the (axis aligned) bounding box
- Parameters
-
- Returns
- maximum point of the bounding box
Definition at line 466 of file MeshObjectInfoScripting.cc.
◆ boundingBoxMin
| Vector InfoMeshObjectPlugin::boundingBoxMin |
( |
int |
_id | ) |
|
|
slot |
get minumum bounding box point
get minimum point of the (axis aligned) bounding box
- Parameters
-
- Returns
- minimum point of the bounding box
Definition at line 416 of file MeshObjectInfoScripting.cc.
◆ boundingBoxSize
| Vector InfoMeshObjectPlugin::boundingBoxSize |
( |
int |
_id | ) |
|
|
slot |
get the size of the bounding box
get the size of the (axis aligned) bounding box
- Parameters
-
- Returns
- size of the bounding box
Definition at line 516 of file MeshObjectInfoScripting.cc.
◆ cog
| Vector InfoMeshObjectPlugin::cog |
( |
int |
_id | ) |
|
|
slot |
◆ componentCount
| int InfoMeshObjectPlugin::componentCount |
( |
int |
_id | ) |
|
|
slot |
get the number of components for a given object
- Parameters
-
- Returns
- number of components or -1 if an error occured
Definition at line 290 of file MeshObjectInfoScripting.cc.
◆ description()
| QString InfoMeshObjectPlugin::description |
( |
| ) |
|
|
inlinevirtual |
◆ edgeCount
| int InfoMeshObjectPlugin::edgeCount |
( |
int |
_id | ) |
|
|
slot |
get total number of edges for a given object
- Parameters
-
- Returns
- number of edges or -1 if an error occured
Definition at line 164 of file MeshObjectInfoScripting.cc.
◆ edgeLength
| double InfoMeshObjectPlugin::edgeLength |
( |
int |
_id, |
|
|
int |
_edgeHandle |
|
) |
| |
|
slot |
get the length of an edge
- Parameters
-
| _id | id of an object |
| _edgeHandle | edge handle |
- Returns
- edge length or -1 if an error occured
Definition at line 567 of file MeshObjectInfoScripting.cc.
◆ faceArea
| double InfoMeshObjectPlugin::faceArea |
( |
int |
_id, |
|
|
int |
_faceHandle |
|
) |
| |
|
slot |
get the area of a face
- Parameters
-
| _id | id of an object |
| _faceHandle | face handle |
- Returns
- face area or -1 if an error occured
TODO implement polygonArea
Definition at line 632 of file MeshObjectInfoScripting.cc.
◆ faceCount
| int InfoMeshObjectPlugin::faceCount |
( |
int |
_id | ) |
|
|
slot |
get total number of faces for a given object
- Parameters
-
- Returns
- number of faces or -1 if an error occured
Definition at line 206 of file MeshObjectInfoScripting.cc.
◆ genus
| int InfoMeshObjectPlugin::genus |
( |
int |
_id | ) |
|
|
slot |
get the genus of the given object
- Parameters
-
- Returns
- the genus
TODO this formula only works for closed objects: fix it
Definition at line 332 of file MeshObjectInfoScripting.cc.
◆ getClosestEdgeInFace()
| int InfoMeshObjectPlugin::getClosestEdgeInFace |
( |
MeshT * |
_mesh, |
|
|
int |
_face_idx, |
|
|
const ACG::Vec3d & |
_hitPoint |
|
) |
| |
|
private |
Get closest edge index from a face.
Find closest edge to selection.
- Parameters
-
| _mesh | Reference to the mesh |
| _face_idx | Index of the face that has been clicked on |
| _hitPoint | The point which will be tested |
- Returns
- index of the closest edge in the face to the hitpoint
Definition at line 634 of file MeshObjectInfoPlugin.cc.
◆ getClosestVertexFromEdge()
| int InfoMeshObjectPlugin::getClosestVertexFromEdge |
( |
MeshT * |
_mesh, |
|
|
int |
_edge_idx, |
|
|
ACG::Vec3d & |
_hitPoint |
|
) |
| |
|
private |
Get closest vertex index from an edge.
Find closest vertex on the edge (endpoint)
- Parameters
-
| _mesh | Reference to the mesh |
| _edge_idx | Index of the edge that has been clicked on |
| _hitPoint | The point which will be tested |
- Returns
- index of the closest vertex on the edge
Definition at line 681 of file MeshObjectInfoPlugin.cc.
◆ getClosestVertexInFace()
| int InfoMeshObjectPlugin::getClosestVertexInFace |
( |
MeshT * |
_mesh, |
|
|
int |
_face_idx, |
|
|
ACG::Vec3d & |
_hitPoint |
|
) |
| |
|
private |
Get closest vertex index from a face.
Find closest vertex to selection.
- Parameters
-
| _mesh | Reference to the mesh |
| _face_idx | Index of the face that has been clicked on |
| _hitPoint | The point that is used as the reference |
- Returns
- index of the closest vertex of the face to the hitpoint
Definition at line 600 of file MeshObjectInfoPlugin.cc.
◆ getEdgeLengths() [1/2]
| bool InfoMeshObjectPlugin::getEdgeLengths |
( |
int |
_id, |
|
|
double & |
min, |
|
|
double & |
max, |
|
|
double & |
mean |
|
) |
| |
|
private |
◆ getEdgeLengths() [2/2]
| void InfoMeshObjectPlugin::getEdgeLengths |
( |
MeshT * |
_mesh, |
|
|
double & |
min, |
|
|
double & |
max, |
|
|
double & |
mean |
|
) |
| |
|
private |
◆ initializePlugin
| void InfoMeshObjectPlugin::initializePlugin |
( |
| ) |
|
|
privateslot |
◆ maxEdgeLength
| double InfoMeshObjectPlugin::maxEdgeLength |
( |
int |
_id | ) |
|
|
slot |
get the maximal edge length
get maximal edge length for a given object
- Parameters
-
- Returns
- maximal edge length or -1 if an error occured
Definition at line 842 of file MeshObjectInfoScripting.cc.
◆ meanEdgeLength
| double InfoMeshObjectPlugin::meanEdgeLength |
( |
int |
_id | ) |
|
|
slot |
get the mean edge length
get the mean edge length for a given object
- Parameters
-
- Returns
- mean edge length or -1 if an error occured
Definition at line 859 of file MeshObjectInfoScripting.cc.
◆ minEdgeLength
| double InfoMeshObjectPlugin::minEdgeLength |
( |
int |
_id | ) |
|
|
slot |
get the minimal edge length
get minimal edge length for a given object
- Parameters
-
- Returns
- minimal edge length or -1 if an error occured
Definition at line 825 of file MeshObjectInfoScripting.cc.
◆ name()
| QString InfoMeshObjectPlugin::name |
( |
| ) |
|
|
inlinevirtual |
◆ noguiSupported
| void InfoMeshObjectPlugin::noguiSupported |
( |
| ) |
|
|
inlineprivateslot |
◆ objectDeleted
| void InfoMeshObjectPlugin::objectDeleted |
( |
int |
_identifier | ) |
|
|
privateslot |
◆ pluginsInitialized
| void InfoMeshObjectPlugin::pluginsInitialized |
( |
| ) |
|
|
privateslot |
◆ printMeshInfo()
| void InfoMeshObjectPlugin::printMeshInfo |
( |
MeshT * |
_mesh, |
|
|
int |
_id, |
|
|
unsigned int |
_face, |
|
|
ACG::Vec3d & |
_hitPoint |
|
) |
| |
|
private |
◆ setDescriptions()
| void InfoMeshObjectPlugin::setDescriptions |
( |
| ) |
|
|
private |
◆ slotAllCleared
| void InfoMeshObjectPlugin::slotAllCleared |
( |
| ) |
|
|
privateslot |
◆ slotInformationRequested()
| void InfoMeshObjectPlugin::slotInformationRequested |
( |
const QPoint |
_clickedPoint, |
|
|
DataType |
_type |
|
) |
| |
|
privatevirtual |
Show information dialog on clicked object.
This slot is called each time the user clicks on an object. The information plugin for a specific type should display the necessary information on all entity types and the clicked object itself.
- Parameters
-
| _clickedPoint | The 2D point in screen coords, which the user has clicked |
| _type | Data type to be registered |
Implements InformationInterface.
Definition at line 699 of file MeshObjectInfoPlugin.cc.
◆ slotObjectSelectionChanged
| void InfoMeshObjectPlugin::slotObjectSelectionChanged |
( |
int |
_identifier | ) |
|
|
privateslot |
◆ slotObjectUpdated
| void InfoMeshObjectPlugin::slotObjectUpdated |
( |
int |
_identifier, |
|
|
const UpdateType & |
_type |
|
) |
| |
|
privateslot |
◆ slotShowHistogram()
| void InfoMeshObjectPlugin::slotShowHistogram |
( |
| ) |
|
|
private |
◆ supportedDataTypes()
| DataType InfoMeshObjectPlugin::supportedDataTypes |
( |
| ) |
|
|
privatevirtual |
Get data type for information requests.
This slot is called by the core in order to identify the data types for which the plugin provides information.
- Returns
- The supported data types (OR'ed in case of multiple types)
Implements InformationInterface.
Definition at line 112 of file MeshObjectInfoPlugin.cc.
◆ updateData()
| void InfoMeshObjectPlugin::updateData |
( |
int |
_identifier, |
|
|
const UpdateType & |
_type, |
|
|
const bool |
deleted |
|
) |
| |
|
private |
◆ version
| QString InfoMeshObjectPlugin::version |
( |
| ) |
|
|
inlineslot |
◆ vertexCount
| int InfoMeshObjectPlugin::vertexCount |
( |
int |
_id | ) |
|
|
slot |
get total number of vertices for a given object
- Parameters
-
- Returns
- number of vertices or -1 if an error occured
Definition at line 122 of file MeshObjectInfoScripting.cc.
◆ vertexValence
| int InfoMeshObjectPlugin::vertexValence |
( |
int |
_id, |
|
|
int |
_vertexHandle |
|
) |
| |
|
slot |
get vertex valence
- Parameters
-
| _id | id of an object |
| _vertexHandle | vertex handle |
- Returns
- vertex valence or -1 if an error occured
Definition at line 758 of file MeshObjectInfoScripting.cc.
◆ info_
◆ infoBar_
| InfoBar* InfoMeshObjectPlugin::infoBar_ |
|
private |
◆ lastPickedObject_
◆ lastPickedObjectId_
| int InfoMeshObjectPlugin::lastPickedObjectId_ |
|
private |
The documentation for this class was generated from the following files: