Slicer  4.10
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkMRMLCropVolumeParametersNode.h
Go to the documentation of this file.
1 /*=auto=========================================================================
2 
3  Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH) All Rights Reserved.
4 
5  See COPYRIGHT.txt
6  or http://www.slicer.org/copyright/copyright.txt for details.
7 
8 =========================================================================auto=*/
9 // .NAME vtkMRMLVolumeRenderingParametersNode - MRML node for storing a slice through RAS space
10 // .SECTION Description
11 // This node stores the information about the currently selected volume
12 //
13 //
14 
15 #ifndef __vtkMRMLCropVolumeParametersNode_h
16 #define __vtkMRMLCropVolumeParametersNode_h
17 
18 #include "vtkMRML.h"
19 #include "vtkMRMLScene.h"
20 #include "vtkMRMLNode.h"
21 #include "vtkSlicerCropVolumeModuleMRMLExport.h"
22 
25 class vtkMRMLVolumeNode;
26 
28 class VTK_SLICER_CROPVOLUME_MODULE_MRML_EXPORT vtkMRMLCropVolumeParametersNode : public vtkMRMLNode
29 {
30 public:
31  enum
32  {
33  InterpolationNearestNeighbor = 1,
34  InterpolationLinear = 2,
35  InterpolationWindowedSinc = 3,
36  InterpolationBSpline = 4
37  };
38 
39  static vtkMRMLCropVolumeParametersNode *New();
41  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
42 
43  virtual vtkMRMLNode* CreateNodeInstance() VTK_OVERRIDE;
44 
46  virtual void ReadXMLAttributes( const char** atts) VTK_OVERRIDE;
47 
49  virtual void WriteXML(ostream& of, int indent) VTK_OVERRIDE;
50 
52  virtual void Copy(vtkMRMLNode *node) VTK_OVERRIDE;
53 
55  virtual const char* GetNodeTagName() VTK_OVERRIDE {return "CropVolumeParameters";}
56 
58  void SetInputVolumeNodeID(const char *nodeID);
60  const char *GetInputVolumeNodeID();
61  vtkMRMLVolumeNode* GetInputVolumeNode();
62 
64  void SetOutputVolumeNodeID(const char *nodeID);
66  const char* GetOutputVolumeNodeID();
67  vtkMRMLVolumeNode* GetOutputVolumeNode();
68 
70  void SetROINodeID(const char *nodeID);
72  const char* GetROINodeID();
73  vtkMRMLAnnotationROINode* GetROINode();
74 
77  void SetROIAlignmentTransformNodeID(const char *nodeID);
78  const char* GetROIAlignmentTransformNodeID();
79  vtkMRMLTransformNode* GetROIAlignmentTransformNode();
80  void DeleteROIAlignmentTransformNode();
81 
82  vtkSetMacro(IsotropicResampling,bool);
83  vtkGetMacro(IsotropicResampling,bool);
84  vtkBooleanMacro(IsotropicResampling,bool);
85 
86  vtkSetMacro(VoxelBased,bool);
87  vtkGetMacro(VoxelBased,bool);
88  vtkBooleanMacro(VoxelBased,bool);
89 
90  vtkSetMacro(InterpolationMode, int);
91  vtkGetMacro(InterpolationMode, int);
92 
93  vtkSetMacro(SpacingScalingConst, double);
94  vtkGetMacro(SpacingScalingConst, double);
95 
96  vtkSetMacro(FillValue, double);
97  vtkGetMacro(FillValue, double);
98 
99 protected:
102 
105 
110  double FillValue;
111 };
112 
113 #endif
114 
MRML node for representing a transformation between this node space and a parent node space...
void operator=(const vtkMRMLNode &)
virtual vtkMRMLNode * CreateNodeInstance()=0
Create instance of the default node. Like New only virtual.
MRML node for representing a volume (image stack).
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:138