19 :
BaseWidget(parent,
"mesh_texture_widget",
"Texture"),
20 mPatientModelService(patientModelService),
21 mViewService(viewService),
22 mMeshSelector(meshSelector)
24 QVBoxLayout* toptopLayout =
new QVBoxLayout(
this);
25 QGridLayout* gridLayout =
new QGridLayout;
26 gridLayout->setMargin(0);
27 toptopLayout->addLayout(gridLayout);
28 mOptionsWidget =
new OptionsWidget(mViewService, mPatientModelService,
this);
29 toptopLayout->addWidget(mOptionsWidget);
30 toptopLayout->addStretch();
49 if (mMesh == mMeshSelector->getData())
52 mMesh = boost::dynamic_pointer_cast<Mesh>(mMeshSelector->getData());
58 void MeshTextureWidget::clearUI()
68 std::vector<PropertyPtr> properties = mMesh->getTextureData().getProperties();
69 mOptionsWidget->
setOptions(mMesh->getUid(), properties,
true);