Slicer 5.9
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
27class VTK_SLICER_CROPVOLUME_MODULE_MRML_EXPORT vtkMRMLCropVolumeParametersNode : public vtkMRMLNode
28{
29public:
30 enum
31 {
36 };
37
38 enum
39 {
44 };
45
48 void PrintSelf(ostream& os, vtkIndent indent) override;
49
51
53 void ReadXMLAttributes(const char** atts) override;
54
56 void WriteXML(ostream& of, int indent) override;
57
61
63 const char* GetNodeTagName() override { return "CropVolumeParameters"; }
64
66 void SetInputVolumeNodeID(const char* nodeID);
68 const char* GetInputVolumeNodeID();
70
72 void SetOutputVolumeNodeID(const char* nodeID);
74 const char* GetOutputVolumeNodeID();
76
79 void SetROINodeID(const char* nodeID);
81 const char* GetROINodeID();
83
86 void SetROIAlignmentTransformNodeID(const char* nodeID);
90
91 vtkSetMacro(IsotropicResampling, bool);
92 vtkGetMacro(IsotropicResampling, bool);
93 vtkBooleanMacro(IsotropicResampling, bool);
94
95 vtkSetMacro(VoxelBased, bool);
96 vtkGetMacro(VoxelBased, bool);
97 vtkBooleanMacro(VoxelBased, bool);
98
99 vtkSetMacro(InterpolationMode, int);
100 vtkGetMacro(InterpolationMode, int);
101
102 vtkSetMacro(SpacingScalingConst, double);
103 vtkGetMacro(SpacingScalingConst, double);
104
105 vtkSetMacro(FillValue, double);
106 vtkGetMacro(FillValue, double);
107
113 vtkSetMacro(FitROIMode, int);
114 vtkGetMacro(FitROIMode, int);
115 static const char* GetFitROIModeAsString(int slabReconstructionType);
116 static int GetFitROIModeFromString(const char* name);
117
118protected:
121
124
129 double FillValue;
131};
132
133#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.
static int GetFitROIModeFromString(const char *name)
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.
@ FitROI_Last
PositionStatus_Last: indicates the end of the enum (int first = 0, int last = FitROI_Last)
@ FitROIAlignToWorld
Before resizing the ROI, ROI orientation is adjusted to align with the world coordinate system axes.
@ FitROIAlignToVolume
Before resizing the ROI, ROI orientation is adjusted to align with the axes of the input volume.
@ FitROIKeepOrientation
The ROI orientation is not modified during fitting.
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.
static const char * GetFitROIModeAsString(int slabReconstructionType)
MRML node for representing a transformation between this node space and a parent node space.
MRML node for representing a volume (image stack).