VTK
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 =========================================================================*/
27 #ifndef vtkImageEllipsoidSource_h
28 #define vtkImageEllipsoidSource_h
29 
30 #include "vtkImagingSourcesModule.h" // For export macro
31 #include "vtkImageAlgorithm.h"
32 
33 class VTKIMAGINGSOURCES_EXPORT vtkImageEllipsoidSource : public vtkImageAlgorithm
34 {
35 public:
36  static vtkImageEllipsoidSource *New();
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
41 
44  void SetWholeExtent(int extent[6]);
45  void SetWholeExtent(int minX, int maxX, int minY, int maxY,
46  int minZ, int maxZ);
47  void GetWholeExtent(int extent[6]);
48  int *GetWholeExtent() VTK_SIZEHINT(6) {return this->WholeExtent;}
50 
52 
55  vtkSetVector3Macro(Center, double);
56  vtkGetVector3Macro(Center, double);
58 
60 
63  vtkSetVector3Macro(Radius, double);
64  vtkGetVector3Macro(Radius, double);
66 
68 
71  vtkSetMacro(InValue,double);
72  vtkGetMacro(InValue,double);
74 
76 
79  vtkSetMacro(OutValue,double);
80  vtkGetMacro(OutValue,double);
82 
84 
87  vtkSetMacro(OutputScalarType,int);
88  vtkGetMacro(OutputScalarType,int);
90  {this->SetOutputScalarType(VTK_FLOAT);}
92  {this->SetOutputScalarType(VTK_DOUBLE);}
94  {this->SetOutputScalarType(VTK_LONG);}
96  {this->SetOutputScalarType(VTK_UNSIGNED_LONG);};
98  {this->SetOutputScalarType(VTK_INT);}
100  {this->SetOutputScalarType(VTK_UNSIGNED_INT);}
102  {this->SetOutputScalarType(VTK_SHORT);}
104  {this->SetOutputScalarType(VTK_UNSIGNED_SHORT);}
106  {this->SetOutputScalarType(VTK_CHAR);}
108  {this->SetOutputScalarType(VTK_UNSIGNED_CHAR);}
110 
111 protected:
113  ~vtkImageEllipsoidSource() override;
114 
115  int WholeExtent[6];
116  double Center[3];
117  double Radius[3];
118  double InValue;
119  double OutValue;
121 
124  vtkInformationVector *) override;
125 
128 
129 private:
131  void operator=(const vtkImageEllipsoidSource&) = delete;
132 };
133 
134 
135 #endif
136 
137 
vtkImageAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.
vtkImageEllipsoidSource::SetOutputScalarTypeToShort
void SetOutputScalarTypeToShort()
Definition: vtkImageEllipsoidSource.h:101
vtkImageEllipsoidSource::SetOutputScalarTypeToLong
void SetOutputScalarTypeToLong()
Definition: vtkImageEllipsoidSource.h:93
VTK_UNSIGNED_INT
#define VTK_UNSIGNED_INT
Definition: vtkType.h:55
vtkImageEllipsoidSource::InValue
double InValue
Definition: vtkImageEllipsoidSource.h:118
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
VTK_UNSIGNED_SHORT
#define VTK_UNSIGNED_SHORT
Definition: vtkType.h:53
vtkImageEllipsoidSource::GetWholeExtent
int * GetWholeExtent()
Definition: vtkImageEllipsoidSource.h:48
vtkImageEllipsoidSource::SetOutputScalarTypeToUnsignedLong
void SetOutputScalarTypeToUnsignedLong()
Definition: vtkImageEllipsoidSource.h:95
vtkImageAlgorithm.h
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:40
vtkImageEllipsoidSource::SetOutputScalarTypeToFloat
void SetOutputScalarTypeToFloat()
Definition: vtkImageEllipsoidSource.h:89
vtkImageEllipsoidSource::SetOutputScalarTypeToInt
void SetOutputScalarTypeToInt()
Definition: vtkImageEllipsoidSource.h:97
vtkImageEllipsoidSource::SetOutputScalarTypeToDouble
void SetOutputScalarTypeToDouble()
Definition: vtkImageEllipsoidSource.h:91
VTK_SIZEHINT
#define VTK_SIZEHINT(...)
Definition: vtkWrappingHints.h:42
vtkImageAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
VTK_CHAR
#define VTK_CHAR
Definition: vtkType.h:49
vtkImageEllipsoidSource::SetOutputScalarTypeToUnsignedChar
void SetOutputScalarTypeToUnsignedChar()
Definition: vtkImageEllipsoidSource.h:107
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkImageEllipsoidSource::SetOutputScalarTypeToChar
void SetOutputScalarTypeToChar()
Definition: vtkImageEllipsoidSource.h:105
VTK_FLOAT
#define VTK_FLOAT
Definition: vtkType.h:58
VTK_DOUBLE
#define VTK_DOUBLE
Definition: vtkType.h:59
VTK_UNSIGNED_CHAR
#define VTK_UNSIGNED_CHAR
Definition: vtkType.h:51
VTK_LONG
#define VTK_LONG
Definition: vtkType.h:56
vtkImageEllipsoidSource::SetOutputScalarTypeToUnsignedInt
void SetOutputScalarTypeToUnsignedInt()
Definition: vtkImageEllipsoidSource.h:99
vtkImageEllipsoidSource::OutValue
double OutValue
Definition: vtkImageEllipsoidSource.h:119
VTK_UNSIGNED_LONG
#define VTK_UNSIGNED_LONG
Definition: vtkType.h:57
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkImageAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAlgorithm::New
static vtkAlgorithm * New()
VTK_SHORT
#define VTK_SHORT
Definition: vtkType.h:52
vtkImageEllipsoidSource::SetOutputScalarTypeToUnsignedShort
void SetOutputScalarTypeToUnsignedShort()
Definition: vtkImageEllipsoidSource.h:103
vtkX3D::extent
Definition: vtkX3D.h:345
vtkImageEllipsoidSource
Create a binary image of an ellipsoid.
Definition: vtkImageEllipsoidSource.h:33
VTK_INT
#define VTK_INT
Definition: vtkType.h:54
vtkImageEllipsoidSource::OutputScalarType
int OutputScalarType
Definition: vtkImageEllipsoidSource.h:120