73 #include "infoDialog.hh" 92 #if QT_VERSION >= 0x050000 93 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-MeshObjectInfo")
98 void setSlotDescription(QString _slotName, QString _slotDescription,
99 QStringList _parameters, QStringList _descriptions);
102 void log(
Logtype _type, QString _message);
103 void log(QString _message);
106 void addWidgetToStatusbar(QWidget* _widget);
111 void initializePlugin();
113 void slotObjectUpdated(
int _identifier,
const UpdateType& _type );
114 void slotObjectSelectionChanged(
int _identifier );
115 void slotAllCleared();
118 void objectDeleted(
int _identifier );
120 void noguiSupported( ) {} ;
126 void slotShowHistogram();
137 QString
name(){
return (QString(
"InfoMeshObject")); };
140 QString
description() {
return (QString(tr(
"Provides Information on Mesh Objects"))); };
147 template<
class MeshT >
148 void printMeshInfo( MeshT* _mesh,
int _id,
unsigned int _face,
ACG::Vec3d& _hitPoint );
185 double faceArea (
int _id,
int _faceHandle);
206 template<
class MeshT >
210 template<
class MeshT >
214 template<
class MeshT >
218 template<
class MeshT >
219 void getEdgeLengths(MeshT* _mesh,
double &min,
double &max,
double &mean);
222 bool getEdgeLengths(
int _id,
double &min,
double &max,
double &mean);
228 int lastPickedObjectId_;
231 #endif //MOVEPLUGIN_HH
int getClosestVertexFromEdge(MeshT *_mesh, int _edge_idx, ACG::Vec3d &_hitPoint)
Get closest vertex index from an edge.
double edgeLength(int _id, int _edgeHandle)
get the length of an edge
void slotInformationRequested(const QPoint _clickedPoint, DataType _type)
Show information dialog on clicked object.
double minEdgeLength(int _id)
get the minimal edge length
Logtype
Log types for Message Window.
int faceCount(int _id)
get total number of faces for a given object
QString name()
Name of the Plugin.
Plugin to visualize information about objects in the scene.
Control OpenFlippers status bar.
double maxEdgeLength(int _id)
get the maximal edge length
int boundaryCount(int _id)
get the number of boundaries for a given object
QString description()
Description of the Plugin.
Vector boundingBoxMax(int _id)
get maximum bounding box point
int componentCount(int _id)
get the number of components for a given object
Interface class from which all plugins have to be created.
Interface for all Plugins which do logging to the logging window of the framework.
void setDescriptions()
set scripting slot descriptions
Vector boundingBoxMin(int _id)
get minumum bounding box point
int vertexValence(int _id, int _vertexHandle)
get vertex valence
double faceArea(int _id, int _faceHandle)
get the area of a face
double meanEdgeLength(int _id)
get the mean edge length
int vertexCount(int _id)
get total number of vertices for a given object
int getClosestVertexInFace(MeshT *_mesh, int _face_idx, ACG::Vec3d &_hitPoint)
Get closest vertex index from a face.
double aspectRatio(int _id, int _faceHandle)
get the aspect ratio of a face
int edgeCount(int _id)
get total number of edges for a given object
void getEdgeLengths(MeshT *_mesh, double &min, double &max, double &mean)
Get edge lengths.
DataType supportedDataTypes()
Get data type for information requests.
int getClosestEdgeInFace(MeshT *_mesh, int _face_idx, const ACG::Vec3d &_hitPoint)
Get closest edge index from a face.
Interface for all plugins which want to Load or Save files and create Objects.
void pluginsInitialized()
initialize the plugin
QString version()
set scripting slot descriptions
void updateData(int _identifier, const UpdateType &_type, const bool deleted)
Slot that updates the visualization.
Vector cog(int _id)
get the center of gravity
int genus(int _id)
get the genus of the given object
Interface class for providing information on objects.
Vector boundingBoxSize(int _id)
get the size of the bounding box