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
vtkMRMLColorLegendDisplayableManager.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 __vtkMRMLColorLegendDisplayableManager_h
19#define __vtkMRMLColorLegendDisplayableManager_h
20
21// MRMLDisplayableManager includes
23#include "vtkSlicerColorsModuleMRMLDisplayableManagerExport.h"
24
26class vtkScalarBarWidget;
28class vtkMRMLScene;
29
33class VTK_SLICER_COLORS_MODULE_MRMLDISPLAYABLEMANAGER_EXPORT vtkMRMLColorLegendDisplayableManager :
35{
36public:
39 void PrintSelf(ostream& os, vtkIndent indent) override;
40
45
46protected:
49
52 void Create() override;
53
56 void UpdateFromMRML() override;
57
58 void SetMRMLSceneInternal(vtkMRMLScene* newScene) override;
59 void UpdateFromMRMLScene() override;
60 void UnobserveMRMLScene() override;
61 void OnMRMLSceneNodeAdded(vtkMRMLNode* node) override;
62 void OnMRMLSceneNodeRemoved(vtkMRMLNode* node) override;
63 void ProcessMRMLNodesEvents(vtkObject *caller,
64 unsigned long event,
65 void *callData) override;
66
68 void OnMRMLDisplayableNodeModifiedEvent(vtkObject* caller) override;
69
71 void AdditionalInitializeStep() override;
72
73private:
75 void operator=(const vtkMRMLColorLegendDisplayableManager&) = delete;
76
77 class vtkInternal;
78 vtkInternal* Internal;
79};
80
81#endif
Class describing how to display a color legend.
void PrintSelf(ostream &os, vtkIndent indent) override
void ProcessMRMLNodesEvents(vtkObject *caller, unsigned long event, void *callData) override
void OnMRMLDisplayableNodeModifiedEvent(vtkObject *caller) override
Called when the SliceNode or Three3DViewNode are modified. May cause ColorLegend to remap its positio...
void OnMRMLSceneNodeRemoved(vtkMRMLNode *node) override
void OnMRMLSceneNodeAdded(vtkMRMLNode *node) override
vtkSlicerScalarBarActor * GetColorLegendActor(vtkMRMLColorLegendDisplayNode *dispNode) const
Get scalar bar actor.
void AdditionalInitializeStep() override
Method to perform additional initialization.
void SetMRMLSceneInternal(vtkMRMLScene *newScene) override
static vtkMRMLColorLegendDisplayableManager * New()
Abstract Superclass for all specific types of MRML nodes.
A set of MRML Nodes that supports serialization and undo/redo.