9 #include "uiImageQt/config.hpp" 11 #include <fwData/Integer.hpp> 13 #include <fwDataTools/helper/MedicalImageAdaptor.hpp> 15 #include <fwGui/editor/IEditor.hpp> 17 #include <fwTools/Failed.hpp> 95 virtual
void starting() override;
100 virtual
void stopping() override;
103 virtual
void updating() override;
106 virtual
void swapping(const KeyType& key) override;
109 virtual
void configuring() override;
121 UIIMAGEQT_API virtual
void info(
std::ostream& _sstream ) override;
124 UIIMAGEQT_API virtual
void updateTFPoints() override;
127 UIIMAGEQT_API virtual
void updateTFWindowing(
double window,
double level) override;
131 void onTextEditingFinished();
132 void onToggleTF(
bool squareTF);
133 void onToggleAutoWL(
bool autoWL);
135 void onWindowLevelWidgetChanged(
double _min,
double _max);
136 void onDynamicRangeSelectionChanged(QAction* action);
139 typedef ::
fwData::TransferFunction::TFValuePairType WindowLevelMinMaxType;
141 double toWindowLevel(
double _val);
142 double fromWindowLevel(
double _val);
144 WindowLevelMinMaxType getImageWindowMinMax();
146 void onImageWindowLevelChanged(
double _imageMin,
double _imageMax);
148 void updateWidgetMinMax(
double _imageMin,
double _imageMax);
149 void updateImageWindowLevel(
double _imageMin,
double _imageMax);
150 void updateTextWindowLevel(
double _imageMin,
double _imageMax);
152 void setWidgetDynamicRange(
double min,
double max);
153 bool getWidgetDoubleValue(QLineEdit* widget,
double& val);
157 QPointer< QLineEdit > m_valueTextMin;
158 QPointer< QLineEdit > m_valueTextMax;
159 QPointer< QToolButton > m_toggleTFButton;
160 QPointer< QToolButton > m_toggleAutoButton;
161 QPointer< QToolButton > m_dynamicRangeSelection;
162 QPointer< QMenu > m_dynamicRangeMenu;
163 QPointer< QSignalMapper > m_dynamicRangeSignalMapper;
165 QPointer< ::
fwGuiQt::widget::QRangeSlider > m_rangeSlider;
167 double m_widgetDynamicRangeMin;
168 double m_widgetDynamicRangeWidth;
169 bool m_autoWindowing;
170 bool m_enableSquareTF;
173 ::
fwData::TransferFunction::sptr m_previousTF;
This class is a helper to define the connections of a service and its data.
Defines the service interface managing the editor service for object.
The namespace fwGuiQt contains classes which provide the implementation of the Gui using Qt library...
The namespace uiImageQt contains several editors on image written with Qt. This namespace is included...
#define fwCorePredeclare(_cls_)
Generate predeclarations.
WindowLevel service allows to change the min / max value of windowing.
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
Contains the representation of the data objects used in the framework.