13 #include <QVBoxLayout>
26 BaseWidget(parent,
"mesh_properties_widget",
"Properties"),
27 mPatientModelService(patientModelService),
28 mViewService(viewService),
29 mMeshSelector(meshSelector)
31 QVBoxLayout* layout =
new QVBoxLayout(
this);
35 layout->addWidget(mPropertiesWidget);
55 if (mMesh == mMeshSelector->getData())
61 mMesh = boost::dynamic_pointer_cast<Mesh>(mMeshSelector->getData());
65 void MeshPropertiesWidget::clearUI()
76 QWidget* widget =
new QWidget;
77 QGridLayout* layout =
new QGridLayout(widget);
81 std::vector<PropertyPtr> properties = mMesh->getProperties().mProperties;
82 for (
unsigned i=0; i<properties.size(); ++i)
84 createDataWidget(mViewService, mPatientModelService,
this, properties[i], layout, i);