Slicer 5.4
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
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
28class VTK_SLICER_CROPVOLUME_MODULE_MRML_EXPORT vtkMRMLCropVolumeParametersNode : public vtkMRMLNode
29{
30public:
31 enum
32 {
33 InterpolationNearestNeighbor = 1,
34 InterpolationLinear = 2,
35 InterpolationWindowedSinc = 3,
36 InterpolationBSpline = 4
37 };
38
41 void PrintSelf(ostream& os, vtkIndent indent) override;
42
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();
63
65 void SetOutputVolumeNodeID(const char *nodeID);
67 const char* GetOutputVolumeNodeID();
69
72 void SetROINodeID(const char *nodeID);
74 const char* GetROINodeID();
76
79 void SetROIAlignmentTransformNodeID(const char *nodeID);
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
101protected:
104
107
112 double FillValue;
113};
114
115#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.
Abstract Superclass for all specific types of MRML nodes.
MRML node for representing a transformation between this node space and a parent node space.
MRML node for representing a volume (image stack).