Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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
26
27class VTK_SLICER_CROPVOLUME_MODULE_MRML_EXPORT vtkMRMLCropVolumeParametersNode : public vtkMRMLNode
28{
29public:
30 enum
31 {
36 };
37
40 void PrintSelf(ostream& os, vtkIndent indent) override;
41
43
45 void ReadXMLAttributes( const char** atts) override;
46
48 void WriteXML(ostream& of, int indent) override;
49
53
55 const char* GetNodeTagName() override {return "CropVolumeParameters";}
56
58 void SetInputVolumeNodeID(const char *nodeID);
60 const char *GetInputVolumeNodeID();
62
64 void SetOutputVolumeNodeID(const char *nodeID);
66 const char* GetOutputVolumeNodeID();
68
71 void SetROINodeID(const char *nodeID);
73 const char* GetROINodeID();
75
78 void SetROIAlignmentTransformNodeID(const char *nodeID);
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
100protected:
103
106
111 double FillValue;
112};
113
114#endif
vtkMRMLVolumeNode * GetInputVolumeNode()
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
static vtkMRMLCropVolumeParametersNode * New()
void operator=(const vtkMRMLCropVolumeParametersNode &)
vtkMRMLCropVolumeParametersNode(const vtkMRMLCropVolumeParametersNode &)
vtkMRMLTransformNode * GetROIAlignmentTransformNode()
const char * GetROINodeID()
Get cropping region of interest.
const char * GetInputVolumeNodeID()
Get volume node to be cropped.
vtkMRMLCopyContentMacro(vtkMRMLCropVolumeParametersNode)
const char * GetROIAlignmentTransformNodeID()
void PrintSelf(ostream &os, vtkIndent indent) override
void SetROINodeID(const char *nodeID)
const char * GetOutputVolumeNodeID()
Get resulting cropped volume node.
void SetOutputVolumeNodeID(const char *nodeID)
Set resulting cropped volume node.
void SetROIAlignmentTransformNodeID(const char *nodeID)
vtkMRMLVolumeNode * GetOutputVolumeNode()
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Model)
vtkMRMLDisplayableNode * GetROINode()
vtkMRMLNode * CreateNodeInstance() override
Create instance of the default node. Like New only virtual.
void ReadXMLAttributes(const char **atts) override
Set node attributes from XML attributes.
void SetInputVolumeNodeID(const char *nodeID)
Set volume node to be cropped.
MRML node for representing a transformation between this node space and a parent node space.
MRML node for representing a volume (image stack).