Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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
25class vtkMRMLScalarBarNode;
26class vtkMRMLScene;
28
35class VTK_MRML_DISPLAYABLEMANAGER_EXPORT vtkMRMLScalarBarDisplayableManager :
37{
38public:
42 void PrintSelf(ostream& os, vtkIndent indent) override;
43
44 bool CanProcessInteractionEvent(vtkMRMLInteractionEventData* eventData, double &closestDistance2) override;
46
51
53
54protected:
57
60 void Create() override;
61
64
66 void AdditionalInitializeStep() override;
67
68private:
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
virtual void UpdateFromMRMLScene()
virtual void UnobserveMRMLScene()
void PrintSelf(ostream &os, vtkIndent indent) override
vtkMRMLWindowLevelWidget * GetWindowLevelWidget()
bool ProcessInteractionEvent(vtkMRMLInteractionEventData *eventData) override
void SetAdjustBackgroundWindowLevelEnabled(bool enabled)
static vtkMRMLScalarBarDisplayableManager * New()
void SetAdjustForegroundWindowLevelEnabled(bool enabled)
bool CanProcessInteractionEvent(vtkMRMLInteractionEventData *eventData, double &closestDistance2) override
void OnMRMLSliceNodeModifiedEvent() override
Called when the SliceNode is modified. May cause ScalarBar to remap its position on screen.
void AdditionalInitializeStep() override
Method to perform additional initialization.
A set of MRML Nodes that supports serialization and undo/redo.
Show slice intersection lines.