27 #ifndef __vtkSlicerSegmentationGeometryLogic_h 28 #define __vtkSlicerSegmentationGeometryLogic_h 31 #include "vtkSlicerSegmentationsModuleLogicExport.h" 45 void PrintSelf(ostream& os, vtkIndent indent)
override;
49 std::string CalculateOutputGeometry();
52 bool IsSourceSegmentationWithBinaryLabelmapMaster();
55 bool InputSegmentationCanBeResampled();
59 void ComputeSourceAxisIndexForInputAxis();
64 void ResetGeometryImageData();
72 vtkGetMacro(IsotropicSpacing,
bool);
73 vtkSetMacro(IsotropicSpacing,
bool);
74 vtkBooleanMacro(IsotropicSpacing,
bool);
76 vtkGetMacro(OversamplingFactor,
double);
77 vtkSetMacro(OversamplingFactor,
double);
79 vtkGetVectorMacro(UserSpacing,
double, 3);
80 vtkSetVectorMacro(UserSpacing,
double, 3);
82 vtkGetVectorMacro(InputAxisIndexForSourceAxis,
int, 3);
84 vtkGetVectorMacro(SourceAxisIndexForInputAxis,
int, 3);
95 std::string CalculateOutputGeometryFromImage();
101 std::string CalculateOutputGeometryFromBounds(
bool keepCurrentAxisDirections);
121 double UserSpacing[3]{ 1.0, 1.0, 1.0 };
127 int InputAxisIndexForSourceAxis[3]{ 0, 1, 2 };
129 int SourceAxisIndexForInputAxis[3]{ 0, 1, 2 };
vtkMRMLDisplayableNode * SourceGeometryNode
MRML node specifying the source geometry.
Image data containing orientation information.
double OversamplingFactor
vtkMRMLSegmentationNode * InputSegmentationNode
Input segmentation MRML node to modify the labelmap geometry of.
vtkOrientedImageData * OutputGeometryImageData
Oriented image data containing output geometry. This is what the class calculates from the inputs...
MRML node containing segmentationsSegmentation node stores a set of segments (also known as contours ...