Slicer  4.13
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;
27 
32 class VTK_MRML_DISPLAYABLEMANAGER_EXPORT vtkMRMLScalarBarDisplayableManager :
34 {
35 public:
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
41  bool CanProcessInteractionEvent(vtkMRMLInteractionEventData* eventData, double &closestDistance2) override;
42  bool ProcessInteractionEvent(vtkMRMLInteractionEventData* eventData) override;
43 
44  void SetAdjustForegroundWindowLevelEnabled(bool enabled);
45  bool GetAdjustForegroundWindowLevelEnabled();
46  void SetAdjustBackgroundWindowLevelEnabled(bool enabled);
47  bool GetAdjustBackgroundWindowLevelEnabled();
48 
49 protected:
52 
55  void Create() override;
56 
58  void OnMRMLSliceNodeModifiedEvent() override;
59 
61  void AdditionalInitializeStep() override;
62 
63 private:
65  void operator=(const vtkMRMLScalarBarDisplayableManager&) = delete;
66 
67  void UnobserveMRMLScene() override;
68  void UpdateFromMRMLScene() override;
69 
70  class vtkInternal;
71  vtkInternal * Internal;
72 };
73 
74 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
A set of MRML Nodes that supports serialization and undo/redo.
Definition: vtkMRMLScene.h:61
virtual bool ProcessInteractionEvent(vtkMRMLInteractionEventData *eventData)
virtual void UnobserveMRMLScene()
virtual bool CanProcessInteractionEvent(vtkMRMLInteractionEventData *eventData, double &distance2)
Displayable manager for the scalar bars and window/level adjustment.
static vtkMRMLAbstractSliceViewDisplayableManager * New()
virtual void UpdateFromMRMLScene()
virtual void OnMRMLSliceNodeModifiedEvent()
Could be overloaded if DisplayableManager subclass.