Slicer  4.11
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 
71  void SetROINodeID(const char *nodeID);
73  const char* GetROINodeID();
74  vtkMRMLAnnotationROINode* GetROINode();
75 
78  void SetROIAlignmentTransformNodeID(const char *nodeID);
79  const char* GetROIAlignmentTransformNodeID();
80  vtkMRMLTransformNode* GetROIAlignmentTransformNode();
81  void DeleteROIAlignmentTransformNode();
82 
83  vtkSetMacro(IsotropicResampling,bool);
84  vtkGetMacro(IsotropicResampling,bool);
85  vtkBooleanMacro(IsotropicResampling,bool);
86 
87  vtkSetMacro(VoxelBased,bool);
88  vtkGetMacro(VoxelBased,bool);
89  vtkBooleanMacro(VoxelBased,bool);
90 
91  vtkSetMacro(InterpolationMode, int);
92  vtkGetMacro(InterpolationMode, int);
93 
94  vtkSetMacro(SpacingScalingConst, double);
95  vtkGetMacro(SpacingScalingConst, double);
96 
97  vtkSetMacro(FillValue, double);
98  vtkGetMacro(FillValue, double);
99 
100 protected:
103 
106 
111  double FillValue;
112 };
113 
114 #endif
115 
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