41 :
BaseWidget(parent,
"mesh_texture_widget",
"Texture"),
42 mPatientModelService(patientModelService),
43 mViewService(viewService),
44 mMeshSelector(meshSelector)
46 QVBoxLayout* toptopLayout =
new QVBoxLayout(
this);
47 QGridLayout* gridLayout =
new QGridLayout;
48 gridLayout->setMargin(0);
49 toptopLayout->addLayout(gridLayout);
50 mOptionsWidget =
new OptionsWidget(mViewService, mPatientModelService,
this);
51 toptopLayout->addWidget(mOptionsWidget);
52 toptopLayout->addStretch();
71 if (mMesh == mMeshSelector->getData())
74 mMesh = boost::dynamic_pointer_cast<
Mesh>(mMeshSelector->getData());
80 void MeshTextureWidget::clearUI()
90 std::vector<PropertyPtr> properties = mMesh->getTextureData().getProperties();
91 mOptionsWidget->
setOptions(mMesh->getUid(), properties,
true);
virtual ~MeshTextureWidget()
virtual void prePaintEvent()
boost::shared_ptr< class SelectDataStringPropertyBase > SelectDataStringPropertyBasePtr
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
void changed()
emit when the underlying data value is changed: The user interface will be updated.
Namespace for all CustusX production code.