50 #include "VolumeMeshObjectInfoPlugin.hh" 64 emit setSlotDescription(
"vertexCount(int)",tr(
"get total number of vertices for a given object"),
65 QStringList(tr(
"objectID")), QStringList(tr(
"id of an object")));
67 emit setSlotDescription(
"edgeCount(int)",tr(
"get total number of edges for a given object"),
68 QStringList(tr(
"objectID")), QStringList(tr(
"id of an object")));
70 emit setSlotDescription(
"faceCount(int)",tr(
"get total number of faces for a given object"),
71 QStringList(tr(
"objectID")), QStringList(tr(
"id of an object")));
73 emit setSlotDescription(
"cellCount(int)",tr(
"get total number of cells for a given object"),
74 QStringList(tr(
"objectID")), QStringList(tr(
"id of an object")));
93 emit log(
LOGERR, tr(
"Unable to get object"));
101 emit log(
LOGERR, tr(
"Unable to get mesh"));
105 return mesh->n_vertices();
111 emit log(
LOGERR, tr(
"Unable to get mesh"));
115 return mesh->n_vertices();
135 emit log(
LOGERR, tr(
"Unable to get object"));
143 emit log(
LOGERR, tr(
"Unable to get mesh"));
147 return mesh->n_edges();
153 emit log(
LOGERR, tr(
"Unable to get mesh"));
157 return mesh->n_edges();
177 emit log(
LOGERR, tr(
"Unable to get object"));
185 emit log(
LOGERR, tr(
"Unable to get mesh"));
189 return mesh->n_faces();
195 emit log(
LOGERR, tr(
"Unable to get mesh"));
199 return mesh->n_faces();
219 emit log(
LOGERR, tr(
"Unable to get object"));
227 emit log(
LOGERR, tr(
"Unable to get mesh"));
231 return mesh->n_faces();
237 emit log(
LOGERR, tr(
"Unable to get mesh"));
241 return mesh->n_cells();
int faceCount(int _id)
get total number of faces for a given object
int edgeCount(int _id)
get total number of edges for a given object
bool getObject(int _identifier, BSplineCurveObject *&_object)
bool dataType(DataType _type) const
void setDescriptions()
set scripting slot descriptions
int vertexCount(int _id)
get total number of vertices for a given object
#define DATA_HEXAHEDRAL_MESH
int cellCount(int _id)
get total number of cells for a given object
PolyhedralMesh * polyhedralMesh(BaseObjectData *_object)
Get an PolyhedralMesh from an object.
HexahedralMesh * hexahedralMesh(BaseObjectData *_object)
Get an HexahedralMesh from an object.