Slicer  5.3
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkMRMLScalarBarDisplayableManager.h
Go to the documentation of this file.
1 /*==============================================================================
2 
3  Program: 3D Slicer
4 
5  Copyright (c) Kitware Inc.
6 
7  See COPYRIGHT.txt
8  or http://www.slicer.org/copyright/copyright.txt for details.
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15 
16 ==============================================================================*/
17 
18 #ifndef __vtkMRMLScalarBarDisplayableManager_h
19 #define __vtkMRMLScalarBarDisplayableManager_h
20 
21 // MRMLDisplayableManager includes
23 #include "vtkMRMLDisplayableManagerExport.h"
24 
25 class vtkMRMLScalarBarNode;
26 class vtkMRMLScene;
28 
35 class VTK_MRML_DISPLAYABLEMANAGER_EXPORT vtkMRMLScalarBarDisplayableManager :
37 {
38 public:
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
44  bool CanProcessInteractionEvent(vtkMRMLInteractionEventData* eventData, double &closestDistance2) override;
45  bool ProcessInteractionEvent(vtkMRMLInteractionEventData* eventData) override;
46 
47  void SetAdjustForegroundWindowLevelEnabled(bool enabled);
48  bool GetAdjustForegroundWindowLevelEnabled();
49  void SetAdjustBackgroundWindowLevelEnabled(bool enabled);
50  bool GetAdjustBackgroundWindowLevelEnabled();
51 
52  vtkMRMLWindowLevelWidget* GetWindowLevelWidget();
53 
54 protected:
57 
60  void Create() override;
61 
63  void OnMRMLSliceNodeModifiedEvent() override;
64 
66  void AdditionalInitializeStep() override;
67 
68 private:
70  void operator=(const vtkMRMLScalarBarDisplayableManager&) = delete;
71 
72  void UnobserveMRMLScene() override;
73  void UpdateFromMRMLScene() override;
74 
75  class vtkInternal;
76  vtkInternal * Internal;
77 };
78 
79 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
A set of MRML Nodes that supports serialization and undo/redo.
Definition: vtkMRMLScene.h:57
virtual bool ProcessInteractionEvent(vtkMRMLInteractionEventData *eventData)
virtual void UnobserveMRMLScene()
virtual bool CanProcessInteractionEvent(vtkMRMLInteractionEventData *eventData, double &distance2)
Displayable manager for window/level adjustment of volumes.
static vtkMRMLAbstractSliceViewDisplayableManager * New()
Show slice intersection lines.
virtual void UpdateFromMRMLScene()
virtual void OnMRMLSliceNodeModifiedEvent()
Could be overloaded if DisplayableManager subclass.