27 #include <itkCommand.h> 37 itk::ReceptorMemberCommand<QmitkLineEditLevelWindowWidget>::Pointer command =
38 itk::ReceptorMemberCommand<QmitkLineEditLevelWindowWidget>::New();
39 command->SetCallbackFunction(
this, &QmitkLineEditLevelWindowWidget::OnPropertyModified);
45 auto layout =
new QVBoxLayout(
this);
47 layout->setSpacing(0);
50 m_LevelInput->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred));
51 m_LevelInput->setToolTip(
"Edit this field to change the center of the levelwindow.");
54 m_WindowInput->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred));
56 "Edit this field to change the span of the levelwindow. This number describes the whole span around the center.");
81 void QmitkLineEditLevelWindowWidget::OnPropertyModified(
const itk::EventObject &)
90 std::stringstream ssLevel;
91 std::stringstream ssWindow;
94 level = ssLevel.str().c_str();
95 window = ssWindow.str().c_str();
130 itk::ReceptorMemberCommand<QmitkLineEditLevelWindowWidget>::Pointer command =
131 itk::ReceptorMemberCommand<QmitkLineEditLevelWindowWidget>::New();
132 command->SetCallbackFunction(
this, &QmitkLineEditLevelWindowWidget::OnPropertyModified);
159 void QmitkLineEditLevelWindowWidget::contextMenuEvent(QContextMenuEvent *)
ScalarType GetLevel() const
method that returns the level value, i.e. the center of the current grey value interval ...
Data management class that handles 'was created by' relations.
static RenderingManager * GetInstance()
ScalarType GetWindow() const
returns the current window size, i.e the range size of the current grey value interval ...
void SetLevelWindow(ScalarType level, ScalarType window, bool expandRangesIfNecessary=true)
Provides access to the LevelWindowProperty object and LevelWindow of the "current" image...
void RequestUpdateAll(RequestType type=REQUEST_UPDATE_ALL)
bool IsFloatingValues() const
Shows if floating values are accepted.