41 #include <QVBoxLayout>
43 #include <QStringList>
54 BaseWidget(parent,
"ShadingWidget",
"Shading"),
55 mLayout(new QVBoxLayout(this)),
56 mPatientModelService(patientModelService),
61 this->
init(connectToActiveImage);
70 this->setToolTip(
"Volume shading properties");
74 QGridLayout* shadingLayput =
new QGridLayout();
81 shadingAmbientWidget->setEnabled(
false);
82 shadingDiffuseWidget->setEnabled(
false);
83 shadingSpecularWidget->setEnabled(
false);
84 shadingSpecularPowerWidget->setEnabled(
false);
86 if (connectToActiveImage)
95 mLayout->addLayout(shadingLayput);
102 mImage->setShadingOn(val);
boost::shared_ptr< class Image > ImagePtr
boost::shared_ptr< class ActiveImageProxy > ActiveImageProxyPtr
void transferFunctionsChanged()
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
boost::shared_ptr< class DoublePropertyBase > DoublePropertyBasePtr
static ActiveImageProxyPtr New(PatientModelServicePtr patientModelService)
boost::shared_ptr< class ImagePropertiesWidget > ImagePropertiesWidgetPtr
void activeImageChanged(const QString &uid)
The original image changed signal from DataManager.