36 #include <QVBoxLayout>
43 BaseWidget(parent,
"ImagePropertiesWidget",
"Image Properties"),
46 mInterpolationType =
new QComboBox(
this);
47 mInterpolationType->insertItem(0,
"Nearest");
48 mInterpolationType->insertItem(1,
"Linear");
49 mInterpolationType->insertItem(2,
"Cubic");
50 mInterpolationType->setToolTip(
"Change VTK interpolation type");
52 connect(mInterpolationType, SIGNAL(currentIndexChanged(
int)),
this, SLOT(interpolationTypeChanged(
int)));
54 QLabel* interpolationTypeLabel =
new QLabel(
"Volume interpolation type",
this);
56 QHBoxLayout* layout =
new QHBoxLayout(
this);
57 layout->addWidget(interpolationTypeLabel);
58 layout->addWidget(mInterpolationType);
61 void ImagePropertiesWidget::interpolationTypeChanged(
int index)
64 mImage->setInterpolationType(index);
71 mInterpolationType->setCurrentIndex(mImage->getInterpolationType());
77 "<h3>Image properties</h3>"
79 "Set image (volume) properties."
boost::shared_ptr< class Image > ImagePtr