|
NorMIT-nav
2023.01.05-dev+develop.0da12
An IGT application
|
Go to the documentation of this file.
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)),
221 mActiveData(activeData)
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 void setValueInternal(double val)=0
DoublePropertyImageTFDataBase()
virtual DoubleRange getValueRange() const
virtual void setValueInternal(double val)
void transferFunctionsChanged()
emitted when image transfer functions in 2D or 3D are changed.
virtual bool setValue(double val)
set the data value.
Namespace for all CustusX production code.
void activeImageChanged(const QString &uid)
The original image changed signal from DataManager.
void changed()
emit when the underlying data value is changed: The user interface will be updated.
virtual void setValueInternal(double val)
virtual void setValueInternal(double val)
boost::shared_ptr< class ImageTFData > ImageTFDataPtr
virtual double getValueInternal() const =0
static ActiveImageProxyPtr New(ActiveDataPtr activeData)
virtual DoubleRange getValueRange() const
virtual DoubleRange getValueRange() const
void transferFunctionsChanged()
virtual ImageLUT2DPtr getLookupTable2D()
boost::shared_ptr< class ActiveImageProxy > ActiveImageProxyPtr
virtual double getValue() const
get the data value.
virtual double getValueInternal() const
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
void setImageTFData(ImageTFDataPtr tfData, ImagePtr image)
boost::shared_ptr< class Image > ImagePtr
virtual double getValueInternal() const
virtual void setValueInternal(double val)
Utility class for describing a bounded numeric range.
boost::shared_ptr< class ActiveData > ActiveDataPtr
ImageTFDataPtr mImageTFData
virtual double getValueInternal() const
virtual DoubleRange getValueRange() const
virtual double getValueInternal() const