25 #include <Inventor/nodes/SoRotationXYZ.h>
26 #include <Inventor/engines/SoElapsedTime.h>
27 #include <Inventor/nodes/SoPerspectiveCamera.h>
30 #include <QVBoxLayout>
41 QVBoxLayout* layout =
new QVBoxLayout(
this);
42 QWidget* visualModelWidget =
new QWidget(
this);
43 visualModelWidget->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
44 visualModelWidget->setMinimumHeight(180);
48 viewer->showNoObject();
50 layout->addWidget(propertyBrowser);
51 layout->addWidget(visualModelWidget);
55 connect(
control.get(), SIGNAL(objectClassSelected(
const std::string&,
const std::string&)),
this, SLOT(setClassAttributes(
const std::string&,
const std::string&)));
69 if (!currentObjectId.empty())
71 for (
auto iterator = objectIds.begin(); iterator != objectIds.end(); ++iterator)
73 if (currentObjectId == *iterator)
77 propertyBrowser->updateSceneObject(currentObjectId);
85 memoryx::ObjectClassPtr gui::ObjectInspectorWidget::getObjectClass(
const std::string& objectClass,
const std::string& collection)
90 return controller->getMemoryXController()->getPriorKnowlegdeController()->getObjectClassPtr(objectClass, collection);
97 void gui::ObjectInspectorWidget::setClassAttributes(
const std::string& objectClass,
const std::string& collection)
100 currentObjectId.clear();
103 propertyBrowser->setProperties(objectClassPtr, collection);
105 showPreviewImage(objectClassPtr);
111 propertyBrowser->setProperties(sceneObject);
116 currentObjectId = sceneObject->getObjectId();
117 showPreviewImage(getObjectClass(sceneObject->getClassId(), sceneObject->getCollection()));
121 currentObjectId.clear();
122 viewer->showNoObject();
130 viewer->setObjectToDisplay(
controller->getMemoryXController()->getPriorKnowlegdeController()->getCoinVisualisation(objectClass,
false));