Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
vtkImageRectangularSource.h
Go to the documentation of this file.
1
6
7#ifndef __vtkImageRectangularSource_h
8#define __vtkImageRectangularSource_h
9
10#include "vtkImageAlgorithm.h"
11#include "vtkSlicerBaseLogic.h"
12#include <vtkVersion.h>
13
14class VTK_SLICER_BASE_LOGIC_EXPORT vtkImageRectangularSource : public vtkImageAlgorithm
15{
16public:
18 vtkTypeMacro(vtkImageRectangularSource, vtkImageAlgorithm);
19 void PrintSelf(ostream& os, vtkIndent indent) override;
20
23 void SetWholeExtent(int extent[6]);
24 void SetWholeExtent(int minX, int maxX, int minY, int maxY, int minZ, int maxZ);
25 void GetWholeExtent(int extent[6]);
26 int* GetWholeExtent() { return this->WholeExtent; }
27
30 vtkSetVector3Macro(Center, int);
31 vtkGetVector3Macro(Center, int);
32
35 vtkSetVector3Macro(Size, int);
36 vtkGetVector3Macro(Size, int);
37
40 vtkSetMacro(InValue, float);
41 vtkGetMacro(InValue, float);
42
45 vtkSetMacro(OutValue, float);
46 vtkGetMacro(OutValue, float);
47
50 vtkSetMacro(InsideGraySlopeFlag, int);
51 vtkGetMacro(InsideGraySlopeFlag, int);
52
55 vtkSetMacro(OutputScalarType, int);
56 vtkGetMacro(OutputScalarType, int);
60 void SetOutputScalarTypeToUnsignedLong() { this->SetOutputScalarType(VTK_UNSIGNED_LONG); };
62 void SetOutputScalarTypeToUnsignedInt() { this->SetOutputScalarType(VTK_UNSIGNED_INT); }
64 void SetOutputScalarTypeToUnsignedShort() { this->SetOutputScalarType(VTK_UNSIGNED_SHORT); }
66 void SetOutputScalarTypeToUnsignedChar() { this->SetOutputScalarType(VTK_UNSIGNED_CHAR); }
67
69 void SetCorners(int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4);
70
71protected:
74
75 int** Corners;
76
78 int Center[3];
79 int Size[3];
80 float InValue;
81 float OutValue;
84
85 int RequestInformation(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
86 void ExecuteDataWithInformation(vtkDataObject* output, vtkInformation* outInfo) override;
87
88private:
90 void operator=(const vtkImageRectangularSource&) = delete;
91};
92
93#endif
void SetWholeExtent(int extent[6])
Set/Get the extent of the whole output image.
~vtkImageRectangularSource() override
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
static vtkImageRectangularSource * New()
void SetWholeExtent(int minX, int maxX, int minY, int maxY, int minZ, int maxZ)
void PrintSelf(ostream &os, vtkIndent indent) override
void ExecuteDataWithInformation(vtkDataObject *output, vtkInformation *outInfo) override
void SetCorners(int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4)
If you do no want to define a rectangular with edges of 90 degree.
void GetWholeExtent(int extent[6])
virtual void SetOutputScalarType(int)
Set what type of scalar data this source should generate.