52 #include "VolumeMeshObjectInfoPlugin.hh" 62 InfoVolumeMeshObjectPlugin::InfoVolumeMeshObjectPlugin()
66 InfoVolumeMeshObjectPlugin::~InfoVolumeMeshObjectPlugin()
70 void InfoVolumeMeshObjectPlugin::updateInfoBar()
76 infoBar_->hideCounts();
88 infoBar_->hideCounts();
94 if (pmo && pmo->mesh()) {
95 infoBar_->showCounts(
"Poly", pmo->mesh());
96 }
else if (hmo && hmo->mesh()) {
97 infoBar_->showCounts(
"Hex", hmo->mesh());
98 }
else if (tmo && tmo->mesh()) {
99 infoBar_->showCounts(
"Tet", tmo->mesh());
101 infoBar_->hideCounts();
106 void InfoVolumeMeshObjectPlugin::initializePlugin()
115 if ( OpenFlipper::Options::gui()) {
119 emit addWidgetToStatusbar(infoBar_);
125 void InfoVolumeMeshObjectPlugin::slotObjectUpdated(
int _identifier ,
const UpdateType& _type)
132 void InfoVolumeMeshObjectPlugin::slotObjectSelectionChanged(
int _identifier )
134 slotObjectUpdated( _identifier ,
UPDATE_ALL );
139 void InfoVolumeMeshObjectPlugin::slotAllCleared()
void setDescriptions()
set scripting slot descriptions
const UpdateType UPDATE_ALL(UpdateTypeSet(1))
Identifier for all updates.
TetrahedralMeshObject * tetrahedralMeshObject(BaseObjectData *_object)
Cast an BaseObject to an TetrahedralMeshObject if possible.
const QStringList TARGET_OBJECTS("target")
Iterable object range.
PolyhedralMeshObject * polyhedralMeshObject(BaseObjectData *_object)
Cast an BaseObject to an PolyhedralMeshObject if possible.
#define DATA_TETRAHEDRAL_MESH
HexahedralMeshObject * hexahedralMeshObject(BaseObjectData *_object)
Cast an BaseObject to an HexahedralMeshObject if possible.
#define DATA_HEXAHEDRAL_MESH
#define DATA_POLYHEDRAL_MESH
void pluginsInitialized()
initialize the plugin
int targetCount()
Get the number of target objects.
ObjectRange objects(IteratorRestriction _restriction, DataType _dataType)
Iterable object range.