35 #include <QVBoxLayout>
37 #include <QStringList>
38 #include <QInputDialog>
39 #include <QPushButton>
40 #include <QActionGroup>
41 #include <QToolButton>
43 #include <QMessageBox>
138 double max =
mImage->getMax();
139 double min =
mImage->getMin();
159 double max =
mImage->getMax();
160 double min =
mImage->getMin();
189 BaseWidget(parent,
"TransferFunction3DWidget",
"3D"),
190 mLayout(new QVBoxLayout(this)),
192 mActiveData(activeData)
194 this->setToolTip(
"Set a transfer function on a 3D volume");
199 QSizePolicy::MinimumExpanding);
208 if(connectToActiveImage)
227 tf = image->getTransferFunctions3D();
240 BaseWidget(parent,
"TransferFunction2DWidget",
"2D"),
241 mLayout(new QVBoxLayout(this)),
242 mActiveData(activeData)
244 this->setToolTip(
"Set a transfer function on a 2D image");
259 QSizePolicy::MinimumExpanding);
266 QGridLayout* gridLayout =
new QGridLayout;
267 mLayout->addLayout(gridLayout);
292 mDataLLR->setImageTFData(tf, image);
301 BaseWidget(parent,
"TransferFunctionWidget",
"Transfer Function")
303 this->setToolTip(
"Set a new or predefined transfer function on a volume");
304 QVBoxLayout* mLayout =
new QVBoxLayout(
this);
308 mLayout->setMargin(0);
309 mLayout->addWidget(transferFunctionWidget);
312 this->setLayout(mLayout);
virtual bool setValue(double val)
set the data value.
virtual double getValueInternal() const =0
void setImageTFData(ImageTFDataPtr tfData, ImagePtr image)
virtual DoubleRange getValueRange() const
ImageTFDataPtr mImageTFData
virtual double getValue() const
get the data value.
virtual DoubleRange getValueRange() const
Utility class for describing a bounded numeric range.
boost::shared_ptr< class Image > ImagePtr
boost::shared_ptr< class ActiveImageProxy > ActiveImageProxyPtr
boost::shared_ptr< class ActiveData > ActiveDataPtr
virtual DoubleRange getValueRange() const
void transferFunctionsChanged()
virtual void setValueInternal(double val)=0
DoublePropertyImageTFDataBase()
virtual void setValueInternal(double val)
virtual double getValueInternal() const
static ActiveImageProxyPtr New(ActiveDataPtr activeData)
virtual DoubleRange getValueRange() const
virtual double getValueInternal() const
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
void transferFunctionsChanged()
emitted when image transfer functions in 2D or 3D are changed.
virtual void setValueInternal(double val)
void changed()
emit when the underlying data value is changed: The user interface will be updated.
virtual double getValueInternal() const
virtual void setValueInternal(double val)
virtual void setValueInternal(double val)
virtual double getValueInternal() const
boost::shared_ptr< class ImageTFData > ImageTFDataPtr
void activeImageChanged(const QString &uid)
The original image changed signal from DataManager.
virtual ImageLUT2DPtr getLookupTable2D()