Slicer  4.10
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkMRMLSegmentationsDisplayableManager2D.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 __vtkMRMLSegmentationsDisplayableManager2D_h
22 #define __vtkMRMLSegmentationsDisplayableManager2D_h
23 
24 // MRMLDisplayableManager includes
26 
27 #include "vtkSlicerSegmentationsModuleMRMLDisplayableManagerExport.h"
28 
30 class vtkStringArray;
31 class vtkDoubleArray;
32 
37 class VTK_SLICER_SEGMENTATIONS_MODULE_MRMLDISPLAYABLEMANAGER_EXPORT vtkMRMLSegmentationsDisplayableManager2D
39 {
40 
41 public:
44  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
45 
48  virtual std::string GetDataProbeInfoStringForPosition(double xyz[3]) VTK_OVERRIDE;
49 
52  virtual void GetVisibleSegmentsForPosition(double ras[3], vtkMRMLSegmentationDisplayNode* displayNode,
53  vtkStringArray* segmentIDs, vtkDoubleArray* segmentValues = NULL);
54 
55 protected:
56  virtual void UnobserveMRMLScene() VTK_OVERRIDE;
57  virtual void OnMRMLSceneNodeAdded(vtkMRMLNode* node) VTK_OVERRIDE;
58  virtual void OnMRMLSceneNodeRemoved(vtkMRMLNode* node) VTK_OVERRIDE;
59  virtual void ProcessMRMLNodesEvents(vtkObject* caller, unsigned long event, void* callData) VTK_OVERRIDE;
60 
62  virtual void UpdateFromMRML() VTK_OVERRIDE;
63 
64  virtual void OnMRMLSceneStartClose() VTK_OVERRIDE;
65  virtual void OnMRMLSceneEndClose() VTK_OVERRIDE;
66 
67  virtual void OnMRMLSceneEndBatchProcess() VTK_OVERRIDE;
68 
70  virtual void Create() VTK_OVERRIDE;
71 
72 protected:
75 
76 private:
78  void operator=(const vtkMRMLSegmentationsDisplayableManager2D&); // Not Implemented
79 
80  class vtkInternal;
81  vtkInternal * Internal;
82  friend class vtkInternal;
83 };
84 
85 #endif
Displayable manager for showing segmentations in slice (2D) views.
virtual void UnobserveMRMLScene()
MRML node for representing segmentation display attributes.
virtual std::string GetDataProbeInfoStringForPosition(double vtkNotUsed(xyz)[3])
static vtkMRMLAbstractSliceViewDisplayableManager * New()
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:138