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()
#define DATA_POLYHEDRAL_MESH
TetrahedralMeshObject * tetrahedralMeshObject(BaseObjectData *_object)
Cast an BaseObject to an TetrahedralMeshObject if possible.
const UpdateType UPDATE_ALL(UpdateTypeSet(1))
Identifier for all updates.
PolyhedralMeshObject * polyhedralMeshObject(BaseObjectData *_object)
Cast an BaseObject to an PolyhedralMeshObject if possible.
void pluginsInitialized()
initialize the plugin
#define DATA_TETRAHEDRAL_MESH
#define DATA_HEXAHEDRAL_MESH
int targetCount()
Get the number of target objects.
const QStringList TARGET_OBJECTS("target")
Iterable object range.
ObjectRange objects(IteratorRestriction _restriction, DataType _dataType)
Iterable object range.
void setDescriptions()
set scripting slot descriptions
HexahedralMeshObject * hexahedralMeshObject(BaseObjectData *_object)
Cast an BaseObject to an HexahedralMeshObject if possible.