Slicer  4.11
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
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 
36 class VTK_SLICER_SEGMENTATIONS_MODULE_MRMLDISPLAYABLEMANAGER_EXPORT vtkMRMLSegmentationsDisplayableManager3D
38 {
39 public:
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 
55 protected:
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 
71  void OnMRMLSceneEndBatchProcess() override;
72 
74  void Create() override;
75 
76 private:
77 
79  void operator=(const vtkMRMLSegmentationsDisplayableManager3D&) = delete;
80 
81  class vtkInternal;
82  vtkInternal* Internal;
83  friend class vtkInternal;
84 };
85 
86 #endif
virtual void OnMRMLSceneStartClose()
virtual void OnMRMLSceneEndClose()
void PrintSelf(ostream &os, vtkIndent indent) override
virtual void OnMRMLSceneNodeAdded(vtkMRMLNode *)
virtual void UnobserveMRMLScene()
static vtkMRMLAbstractThreeDViewDisplayableManager * New()
virtual void OnMRMLSceneEndBatchProcess()
virtual void OnMRMLSceneNodeRemoved(vtkMRMLNode *)
void ProcessMRMLNodesEvents(vtkObject *caller, unsigned long event, void *callData) override
virtual const char * GetPickedNodeID()
Get the MRML ID of the picked node, returns empty string if no pick.
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:167