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 
#define VTK_UNSIGNED_INT
Definition: vtkType.h:55
Store vtkAlgorithm input/output information.
void SetOutputScalarTypeToLong()
Set what type of scalar data this source should generate.
int * GetWholeExtent()
Set/Get the extent of the whole output image.
#define VTK_UNSIGNED_SHORT
Definition: vtkType.h:53
Create a binary image of an ellipsoid.
void SetOutputScalarTypeToInt()
Set what type of scalar data this source should generate.
void SetOutputScalarTypeToUnsignedLong()
Set what type of scalar data this source should generate.
void SetOutputScalarTypeToFloat()
Set what type of scalar data this source should generate.
void SetOutputScalarTypeToUnsignedChar()
Set what type of scalar data this source should generate.
#define VTK_DOUBLE
Definition: vtkType.h:59
#define VTK_FLOAT
Definition: vtkType.h:58
a simple class to control print indentation
Definition: vtkIndent.h:39
void SetOutputScalarTypeToChar()
Set what type of scalar data this source should generate.
void SetOutputScalarTypeToDouble()
Set what type of scalar data this source should generate.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
#define VTK_SHORT
Definition: vtkType.h:52
#define VTK_CHAR
Definition: vtkType.h:49
#define VTK_LONG
Definition: vtkType.h:56
#define VTK_SIZEHINT(...)
void SetOutputScalarTypeToUnsignedShort()
Set what type of scalar data this source should generate.
void SetOutputScalarTypeToUnsignedInt()
Set what type of scalar data this source should generate.
#define VTK_UNSIGNED_CHAR
Definition: vtkType.h:51
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define VTK_UNSIGNED_LONG
Definition: vtkType.h:57
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.
#define VTK_INT
Definition: vtkType.h:54
void SetOutputScalarTypeToShort()
Set what type of scalar data this source should generate.