14 #include <QVBoxLayout> 16 #include <QStringList> 17 #include <QInputDialog> 18 #include <QPushButton> 19 #include <QActionGroup> 20 #include <QToolButton> 22 #include <QMessageBox> 117 double max =
mImage->getMax();
118 double min =
mImage->getMin();
138 double max =
mImage->getMax();
139 double min =
mImage->getMin();
168 BaseWidget(parent,
"transfer_function_3d_widget",
"3D"),
169 mLayout(new QVBoxLayout(this)),
171 mActiveData(activeData)
173 this->setToolTip(
"Set a transfer function on a 3D volume");
178 QSizePolicy::MinimumExpanding);
187 if(connectToActiveImage)
206 tf = image->getTransferFunctions3D();
219 BaseWidget(parent,
"transfer_function_2d_widget",
"2D"),
220 mLayout(new QVBoxLayout(this)),
223 this->setToolTip(
"Set a transfer function on a 2D image");
238 QSizePolicy::MinimumExpanding);
245 QGridLayout* gridLayout =
new QGridLayout;
246 mLayout->addLayout(gridLayout);
271 mDataLLR->setImageTFData(tf, image);
280 BaseWidget(parent,
"transfer_function_widget",
"Transfer Function")
282 this->setToolTip(
"Set a new or predefined transfer function on a volume");
283 QVBoxLayout* mLayout =
new QVBoxLayout(
this);
287 mLayout->setMargin(0);
288 mLayout->addWidget(transferFunctionWidget);
291 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()
Namespace for all CustusX production code.