Slicer  4.10
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkMRMLCrosshairDisplayableManager.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  This file was originally developed by Julien Finet, Kitware Inc.
17  and was partially funded by NIH grant 3P41RR013218-12S1
18 
19 ==============================================================================*/
20 
21 #ifndef __vtkMRMLCrosshairDisplayableManager_h
22 #define __vtkMRMLCrosshairDisplayableManager_h
23 
24 // MRMLDisplayableManager includes
26 #include "vtkMRMLDisplayableManagerExport.h"
27 
29 class vtkMRMLScene;
30 
34 class VTK_MRML_DISPLAYABLEMANAGER_EXPORT vtkMRMLCrosshairDisplayableManager :
36 {
37 public:
41  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
42 
43  // Utility functions (used by 2D and 3D crosshair displayable managers)
44  static vtkMRMLCrosshairNode* FindCrosshairNode(vtkMRMLScene* scene);
45 
46 protected:
49 
52  virtual void Create() VTK_OVERRIDE;
53 
55  virtual void OnMRMLSliceNodeModifiedEvent() VTK_OVERRIDE;
56 
58  virtual void AdditionalInitializeStep() VTK_OVERRIDE;
59 
60 private:
62  void operator=(const vtkMRMLCrosshairDisplayableManager&); // Not Implemented
63 
64  virtual void UnobserveMRMLScene() VTK_OVERRIDE;
65  virtual void ObserveMRMLScene() VTK_OVERRIDE;
66  virtual void UpdateFromMRMLScene() VTK_OVERRIDE;
67  virtual void OnMRMLNodeModified(vtkMRMLNode* node) VTK_OVERRIDE;
68 
69  class vtkInternal;
70  vtkInternal * Internal;
71 };
72 
73 #endif
MRML node for storing a crosshair through RAS space.
A set of MRML Nodes that supports serialization and undo/redo.
Definition: vtkMRMLScene.h:54
static vtkMRMLAbstractSliceViewDisplayableManager * New()
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:138
Displayable manager for the crosshair on slice (2D) views.