43 #include "VolumeMeshObjectInfoPlugin.hh" 57 emit setSlotDescription(
"vertexCount(int)",tr(
"get total number of vertices for a given object"),
58 QStringList(tr(
"objectID")), QStringList(tr(
"id of an object")));
60 emit setSlotDescription(
"edgeCount(int)",tr(
"get total number of edges for a given object"),
61 QStringList(tr(
"objectID")), QStringList(tr(
"id of an object")));
63 emit setSlotDescription(
"faceCount(int)",tr(
"get total number of faces for a given object"),
64 QStringList(tr(
"objectID")), QStringList(tr(
"id of an object")));
66 emit setSlotDescription(
"cellCount(int)",tr(
"get total number of cells for a given object"),
67 QStringList(tr(
"objectID")), QStringList(tr(
"id of an object")));
86 emit log(
LOGERR, tr(
"Unable to get object"));
94 emit log(
LOGERR, tr(
"Unable to get mesh"));
98 return mesh->n_vertices();
104 emit log(
LOGERR, tr(
"Unable to get mesh"));
108 return mesh->n_vertices();
128 emit log(
LOGERR, tr(
"Unable to get object"));
136 emit log(
LOGERR, tr(
"Unable to get mesh"));
140 return mesh->n_edges();
146 emit log(
LOGERR, tr(
"Unable to get mesh"));
150 return mesh->n_edges();
170 emit log(
LOGERR, tr(
"Unable to get object"));
178 emit log(
LOGERR, tr(
"Unable to get mesh"));
182 return mesh->n_faces();
188 emit log(
LOGERR, tr(
"Unable to get mesh"));
192 return mesh->n_faces();
212 emit log(
LOGERR, tr(
"Unable to get object"));
220 emit log(
LOGERR, tr(
"Unable to get mesh"));
224 return mesh->n_faces();
230 emit log(
LOGERR, tr(
"Unable to get mesh"));
234 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(const int _identifier, BaseObject *&_object)
Get the object which has the given identifier.
HexahedralMesh * hexahedralMesh(BaseObjectData *_object)
Get an HexahedralMesh from an object.
#define DATA_HEXAHEDRAL_MESH
bool dataType(DataType _type) const
int cellCount(int _id)
get total number of cells for a given object
int vertexCount(int _id)
get total number of vertices for a given object
PolyhedralMesh * polyhedralMesh(BaseObjectData *_object)
Get an PolyhedralMesh from an object.
void setDescriptions()
set scripting slot descriptions