25 #include <itkCommand.h>
40 command->SetCallbackFunction(
this, &QmitkLineEditLevelWindowWidget::OnPropertyModified);
46 auto layout =
new QVBoxLayout(
this);
48 layout->setSpacing(0);
51 m_LevelInput->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred));
52 m_LevelInput->setToolTip(
"Edit this field to change the center of the levelwindow.");
57 m_WindowInput->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred));
59 "Edit this field to change the span of the levelwindow. This number describes the whole span around the center.");
92 void QmitkLineEditLevelWindowWidget::OnPropertyModified(
const itk::EventObject &)
102 std::stringstream ssLevel;
103 std::stringstream ssWindow;
106 level = ssLevel.str().c_str();
107 window = ssWindow.str().c_str();
144 command->SetCallbackFunction(
this, &QmitkLineEditLevelWindowWidget::OnPropertyModified);
173 void QmitkLineEditLevelWindowWidget::contextMenuEvent(QContextMenuEvent *)
Data management class that handles 'was created by' relations.
itk::SmartPointer< Self > Pointer
bool IsFloatingValues() const
Shows if floating values are accepted.
static RenderingManager * GetInstance()
void SetLevelWindow(ScalarType level, ScalarType window, bool expandRangesIfNecessary=true)
Provides access to the LevelWindowProperty object and LevelWindow of the "current" image...
ScalarType GetWindow() const
returns the current window size, i.e the range size of the current grey value interval ...
void RequestUpdateAll(RequestType type=REQUEST_UPDATE_ALL)
ScalarType GetLevel() const
method that returns the level value, i.e. the center of the current grey value interval ...
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.