25 #include <Inventor/engines/SoElapsedTime.h>
26 #include <Inventor/nodes/SoPerspectiveCamera.h>
27 #include <Inventor/nodes/SoRotationXYZ.h>
30 #include <QVBoxLayout>
42 QVBoxLayout* layout =
new QVBoxLayout(
this);
43 QWidget* visualModelWidget =
new QWidget(
this);
44 visualModelWidget->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
45 visualModelWidget->setMinimumHeight(180);
49 viewer->showNoObject();
51 layout->addWidget(propertyBrowser);
52 layout->addWidget(visualModelWidget);
57 SIGNAL(objectClassSelected(
const std::string&,
const std::string&)),
59 SLOT(setClassAttributes(
const std::string&,
const std::string&)));
83 if (!currentObjectId.empty())
85 for (
auto iterator = objectIds.begin(); iterator != objectIds.end(); ++iterator)
87 if (currentObjectId == *iterator)
91 propertyBrowser->updateSceneObject(currentObjectId);
99 gui::ObjectInspectorWidget::getObjectClass(
const std::string& objectClass,
100 const std::string& collection)
105 return controller->getMemoryXController()->getPriorKnowlegdeController()->getObjectClassPtr(
106 objectClass, collection);
113 gui::ObjectInspectorWidget::setClassAttributes(
const std::string& objectClass,
114 const std::string& collection)
117 currentObjectId.clear();
120 propertyBrowser->setProperties(objectClassPtr, collection);
122 showPreviewImage(objectClassPtr);
128 propertyBrowser->setProperties(sceneObject);
133 currentObjectId = sceneObject->getObjectId();
134 showPreviewImage(getObjectClass(sceneObject->getClassId(), sceneObject->getCollection()));
138 currentObjectId.clear();
139 viewer->showNoObject();
148 viewer->setObjectToDisplay(
149 controller->getMemoryXController()->getPriorKnowlegdeController()->getCoinVisualisation(
150 objectClass,
false));