Slicer  5.3
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) override;
42 
43  vtkMRMLNode* CreateNodeInstance() override;
44 
46  void ReadXMLAttributes( const char** atts) override;
47 
49  void WriteXML(ostream& of, int indent) override;
50 
54 
56  const char* GetNodeTagName() override {return "CropVolumeParameters";}
57 
59  void SetInputVolumeNodeID(const char *nodeID);
61  const char *GetInputVolumeNodeID();
62  vtkMRMLVolumeNode* GetInputVolumeNode();
63 
65  void SetOutputVolumeNodeID(const char *nodeID);
67  const char* GetOutputVolumeNodeID();
68  vtkMRMLVolumeNode* GetOutputVolumeNode();
69 
72  void SetROINodeID(const char *nodeID);
74  const char* GetROINodeID();
75  vtkMRMLDisplayableNode* GetROINode();
76 
79  void SetROIAlignmentTransformNodeID(const char *nodeID);
80  const char* GetROIAlignmentTransformNodeID();
81  vtkMRMLTransformNode* GetROIAlignmentTransformNode();
82  void DeleteROIAlignmentTransformNode();
83 
84  vtkSetMacro(IsotropicResampling,bool);
85  vtkGetMacro(IsotropicResampling,bool);
86  vtkBooleanMacro(IsotropicResampling,bool);
87 
88  vtkSetMacro(VoxelBased,bool);
89  vtkGetMacro(VoxelBased,bool);
90  vtkBooleanMacro(VoxelBased,bool);
91 
92  vtkSetMacro(InterpolationMode, int);
93  vtkGetMacro(InterpolationMode, int);
94 
95  vtkSetMacro(SpacingScalingConst, double);
96  vtkGetMacro(SpacingScalingConst, double);
97 
98  vtkSetMacro(FillValue, double);
99  vtkGetMacro(FillValue, double);
100 
101 protected:
104 
107 
112  double FillValue;
113 };
114 
115 #endif
116 
MRML node for representing a transformation between this node space and a parent node space...
virtual void ReadXMLAttributes(const char **atts)
void operator=(const vtkMRMLNode &)
virtual vtkMRMLNode * CreateNodeInstance()=0
Create instance of the default node. Like New only virtual.
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Model)
MRML node for representing a volume (image stack).
virtual void WriteXML(ostream &of, int indent)
void PrintSelf(ostream &os, vtkIndent indent) override
#define vtkMRMLCopyContentMacro(thisClassName)
Definition: vtkMRMLNode.h:142
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:167