VTK  9.0.20210409
vtkImageEllipsoidSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageEllipsoidSource.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
24 #ifndef vtkImageEllipsoidSource_h
25 #define vtkImageEllipsoidSource_h
26 
27 #include "vtkImageAlgorithm.h"
28 #include "vtkImagingSourcesModule.h" // For export macro
29 
30 class VTKIMAGINGSOURCES_EXPORT vtkImageEllipsoidSource : public vtkImageAlgorithm
31 {
32 public:
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
38 
41  void SetWholeExtent(int extent[6]);
42  void SetWholeExtent(int minX, int maxX, int minY, int maxY, int minZ, int maxZ);
43  void GetWholeExtent(int extent[6]);
44  int* GetWholeExtent() VTK_SIZEHINT(6) { return this->WholeExtent; }
46 
48 
51  vtkSetVector3Macro(Center, double);
52  vtkGetVector3Macro(Center, double);
54 
56 
59  vtkSetVector3Macro(Radius, double);
60  vtkGetVector3Macro(Radius, double);
62 
64 
67  vtkSetMacro(InValue, double);
68  vtkGetMacro(InValue, double);
70 
72 
75  vtkSetMacro(OutValue, double);
76  vtkGetMacro(OutValue, double);
78 
80 
83  vtkSetMacro(OutputScalarType, int);
84  vtkGetMacro(OutputScalarType, int);
85  void SetOutputScalarTypeToFloat() { this->SetOutputScalarType(VTK_FLOAT); }
86  void SetOutputScalarTypeToDouble() { this->SetOutputScalarType(VTK_DOUBLE); }
87  void SetOutputScalarTypeToLong() { this->SetOutputScalarType(VTK_LONG); }
88  void SetOutputScalarTypeToUnsignedLong() { this->SetOutputScalarType(VTK_UNSIGNED_LONG); }
89  void SetOutputScalarTypeToInt() { this->SetOutputScalarType(VTK_INT); }
90  void SetOutputScalarTypeToUnsignedInt() { this->SetOutputScalarType(VTK_UNSIGNED_INT); }
91  void SetOutputScalarTypeToShort() { this->SetOutputScalarType(VTK_SHORT); }
92  void SetOutputScalarTypeToUnsignedShort() { this->SetOutputScalarType(VTK_UNSIGNED_SHORT); }
93  void SetOutputScalarTypeToChar() { this->SetOutputScalarType(VTK_CHAR); }
94  void SetOutputScalarTypeToUnsignedChar() { this->SetOutputScalarType(VTK_UNSIGNED_CHAR); }
96 
97 protected:
100 
101  int WholeExtent[6];
102  double Center[3];
103  double Radius[3];
104  double InValue;
105  double OutValue;
107 
109 
111 
112 private:
114  void operator=(const vtkImageEllipsoidSource&) = delete;
115 };
116 
117 #endif
vtkImageEllipsoidSource::SetOutputScalarTypeToShort
void SetOutputScalarTypeToShort()
Definition: vtkImageEllipsoidSource.h:91
vtkImageEllipsoidSource::SetWholeExtent
void SetWholeExtent(int extent[6])
Set/Get the extent of the whole output image.
vtkImageEllipsoidSource::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called in response to a REQUEST_DATA request from the executive.
vtkImageEllipsoidSource::SetOutputScalarTypeToLong
void SetOutputScalarTypeToLong()
Definition: vtkImageEllipsoidSource.h:87
VTK_UNSIGNED_INT
#define VTK_UNSIGNED_INT
Definition: vtkType.h:51
vtkImageEllipsoidSource::InValue
double InValue
Definition: vtkImageEllipsoidSource.h:104
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:36
VTK_UNSIGNED_SHORT
#define VTK_UNSIGNED_SHORT
Definition: vtkType.h:49
vtkImageEllipsoidSource::GetWholeExtent
int * GetWholeExtent()
Definition: vtkImageEllipsoidSource.h:44
vtkImageEllipsoidSource::SetOutputScalarTypeToUnsignedLong
void SetOutputScalarTypeToUnsignedLong()
Definition: vtkImageEllipsoidSource.h:88
vtkImageEllipsoidSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkImageAlgorithm.h
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:38
vtkImageEllipsoidSource::SetOutputScalarTypeToFloat
void SetOutputScalarTypeToFloat()
Definition: vtkImageEllipsoidSource.h:85
vtkImageEllipsoidSource::SetOutputScalarTypeToInt
void SetOutputScalarTypeToInt()
Definition: vtkImageEllipsoidSource.h:89
vtkImageEllipsoidSource::SetOutputScalarTypeToDouble
void SetOutputScalarTypeToDouble()
Definition: vtkImageEllipsoidSource.h:86
vtkImageEllipsoidSource::SetWholeExtent
void SetWholeExtent(int minX, int maxX, int minY, int maxY, int minZ, int maxZ)
VTK_SIZEHINT
#define VTK_SIZEHINT(...)
Definition: vtkWrappingHints.h:48
VTK_CHAR
#define VTK_CHAR
Definition: vtkType.h:45
vtkImageEllipsoidSource::SetOutputScalarTypeToUnsignedChar
void SetOutputScalarTypeToUnsignedChar()
Definition: vtkImageEllipsoidSource.h:94
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkImageEllipsoidSource::SetOutputScalarTypeToChar
void SetOutputScalarTypeToChar()
Definition: vtkImageEllipsoidSource.h:93
VTK_FLOAT
#define VTK_FLOAT
Definition: vtkType.h:54
VTK_DOUBLE
#define VTK_DOUBLE
Definition: vtkType.h:55
VTK_UNSIGNED_CHAR
#define VTK_UNSIGNED_CHAR
Definition: vtkType.h:47
VTK_LONG
#define VTK_LONG
Definition: vtkType.h:52
vtkImageEllipsoidSource::SetOutputScalarTypeToUnsignedInt
void SetOutputScalarTypeToUnsignedInt()
Definition: vtkImageEllipsoidSource.h:90
vtkImageEllipsoidSource::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
vtkImageEllipsoidSource::OutValue
double OutValue
Definition: vtkImageEllipsoidSource.h:105
VTK_UNSIGNED_LONG
#define VTK_UNSIGNED_LONG
Definition: vtkType.h:53
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:74
vtkImageEllipsoidSource::~vtkImageEllipsoidSource
~vtkImageEllipsoidSource() override
VTK_SHORT
#define VTK_SHORT
Definition: vtkType.h:48
vtkImageEllipsoidSource::SetOutputScalarTypeToUnsignedShort
void SetOutputScalarTypeToUnsignedShort()
Definition: vtkImageEllipsoidSource.h:92
vtkX3D::extent
@ extent
Definition: vtkX3D.h:351
vtkImageEllipsoidSource::vtkImageEllipsoidSource
vtkImageEllipsoidSource()
vtkImageEllipsoidSource
Create a binary image of an ellipsoid.
Definition: vtkImageEllipsoidSource.h:31
VTK_INT
#define VTK_INT
Definition: vtkType.h:50
vtkImageEllipsoidSource::New
static vtkImageEllipsoidSource * New()
vtkImageEllipsoidSource::GetWholeExtent
void GetWholeExtent(int extent[6])
vtkImageEllipsoidSource::OutputScalarType
int OutputScalarType
Definition: vtkImageEllipsoidSource.h:106