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
vtkMRMLSegmentationsDisplayableManager3D.h
Go to the documentation of this file.
1/*==============================================================================
2
3 Copyright (c) Laboratory for Percutaneous Surgery (PerkLab)
4 Queen's University, Kingston, ON, Canada. All Rights Reserved.
5
6 See COPYRIGHT.txt
7 or http://www.slicer.org/copyright/copyright.txt for details.
8
9 Unless required by applicable law or agreed to in writing, software
10 distributed under the License is distributed on an "AS IS" BASIS,
11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 See the License for the specific language governing permissions and
13 limitations under the License.
14
15 This file was originally developed by Csaba Pinter, PerkLab, Queen's University
16 and was supported through the Applied Cancer Research Unit program of Cancer Care
17 Ontario with funds provided by the Ontario Ministry of Health and Long-Term Care
18
19==============================================================================*/
20
21#ifndef __vtkMRMLSegmentationsDisplayableManager3D_h
22#define __vtkMRMLSegmentationsDisplayableManager3D_h
23
24// MRMLDisplayableManager includes
26
27#include "vtkSlicerSegmentationsModuleMRMLDisplayableManagerExport.h"
28
36class VTK_SLICER_SEGMENTATIONS_MODULE_MRMLDISPLAYABLEMANAGER_EXPORT vtkMRMLSegmentationsDisplayableManager3D
38{
39public:
40
43 void PrintSelf(ostream& os, vtkIndent indent) override;
44
47 int Pick3D(double ras[3]) override;
48
50 const char* GetPickedNodeID() override;
51
53 virtual const char* GetPickedSegmentID();
54
55protected:
56
59
60 void UnobserveMRMLScene() override;
61 void OnMRMLSceneNodeAdded(vtkMRMLNode* node) override;
62 void OnMRMLSceneNodeRemoved(vtkMRMLNode* node) override;
63 void ProcessMRMLNodesEvents(vtkObject* caller, unsigned long event, void* callData) override;
64
66 void UpdateFromMRML() override;
67
68 void OnMRMLSceneStartClose() override;
69 void OnMRMLSceneEndClose() override;
70
72
74 void Create() override;
75
76private:
77
79 void operator=(const vtkMRMLSegmentationsDisplayableManager3D&) = delete;
80
81 class vtkInternal;
82 vtkInternal* Internal;
83 friend class vtkInternal;
84};
85
86#endif
Abstract Superclass for all specific types of MRML nodes.
void Create() override
Initialize the displayable manager.
static vtkMRMLSegmentationsDisplayableManager3D * New()
void OnMRMLSceneNodeAdded(vtkMRMLNode *node) override
void ProcessMRMLNodesEvents(vtkObject *caller, unsigned long event, void *callData) override
void PrintSelf(ostream &os, vtkIndent indent) override
void OnMRMLSceneNodeRemoved(vtkMRMLNode *node) override
int Pick3D(double ras[3]) override
void UpdateFromMRML() override
Update actors based on segmentations in the scene.
virtual const char * GetPickedSegmentID()
Get the ID of the picked segment, returns empty string if no pick.
const char * GetPickedNodeID() override
Get the MRML ID of the picked node, returns empty string if no pick.