41 #include <QVBoxLayout>
43 #include <QStringList>
53 BaseWidget(parent,
"ImagePropertiesWidget",
"Image Properties"),
56 mInterpolationType =
new QComboBox(
this);
57 mInterpolationType->insertItem(0,
"Nearest");
58 mInterpolationType->insertItem(1,
"Linear");
59 mInterpolationType->insertItem(2,
"Cubic");
60 mInterpolationType->setToolTip(
"Change VTK interpolation type");
62 connect(mInterpolationType, SIGNAL(currentIndexChanged(
int)),
this, SLOT(interpolationTypeChanged(
int)));
64 QLabel* interpolationTypeLabel =
new QLabel(
"Volume interpolation type",
this);
66 QHBoxLayout* layout =
new QHBoxLayout(
this);
67 layout->addWidget(interpolationTypeLabel);
68 layout->addWidget(mInterpolationType);
71 void ImageRenderPropertiesWidget::interpolationTypeChanged(
int index)
74 mImage->setInterpolationType(index);
81 mInterpolationType->setCurrentIndex(mImage->getInterpolationType());
89 BaseWidget(parent,
"ShadingWidget",
"Shading"),
90 mLayout(new QVBoxLayout(this)),
91 mActiveData(activeData),
96 this->
init(connectToActiveImage);
105 this->setToolTip(
"Volume shading properties");
109 QGridLayout* shadingLayput =
new QGridLayout();
116 shadingAmbientWidget->setEnabled(
false);
117 shadingDiffuseWidget->setEnabled(
false);
118 shadingSpecularWidget->setEnabled(
false);
119 shadingSpecularPowerWidget->setEnabled(
false);
121 if (connectToActiveImage)
130 mLayout->addLayout(shadingLayput);
138 mImage->setShadingOn(val);
boost::shared_ptr< class Image > ImagePtr
boost::shared_ptr< class ActiveImageProxy > ActiveImageProxyPtr
boost::shared_ptr< class ActiveData > ActiveDataPtr
void transferFunctionsChanged()
static ActiveImageProxyPtr New(ActiveDataPtr activeData)
boost::shared_ptr< class DoublePropertyBase > DoublePropertyBasePtr
boost::shared_ptr< class ImageRenderPropertiesWidget > ImageRenderPropertiesWidgetPtr
void activeImageChanged(const QString &uid)
The original image changed signal from DataManager.