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:
38  void PrintSelf(ostream& os, vtkIndent indent);
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() {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:
114 
115  int WholeExtent[6];
116  double Center[3];
117  double Radius[3];
118  double InValue;
119  double OutValue;
121 
125 
128 
129 private:
130  vtkImageEllipsoidSource(const vtkImageEllipsoidSource&) VTK_DELETE_FUNCTION;
131  void operator=(const vtkImageEllipsoidSource&) VTK_DELETE_FUNCTION;
132 };
133 
134 
135 #endif
136 
137 
Generic algorithm superclass for image algs.
Create a binary image of an ellipsoid.
static vtkImageEllipsoidSource * New()
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called in response to a REQUEST_DATA request from the executive.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void GetWholeExtent(int extent[6])
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to collect information from their inputs and set information f...
void SetWholeExtent(int minX, int maxX, int minY, int maxY, int minZ, int maxZ)
void SetWholeExtent(int extent[6])
Set/Get the extent of the whole output image.
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ extent
Definition: vtkX3D.h:345
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
#define VTK_SHORT
Definition: vtkType.h:52
#define VTK_UNSIGNED_INT
Definition: vtkType.h:55
#define VTK_DOUBLE
Definition: vtkType.h:59
#define VTK_UNSIGNED_CHAR
Definition: vtkType.h:51
#define VTK_UNSIGNED_SHORT
Definition: vtkType.h:53
#define VTK_INT
Definition: vtkType.h:54
#define VTK_FLOAT
Definition: vtkType.h:58
#define VTK_CHAR
Definition: vtkType.h:49
#define VTK_UNSIGNED_LONG
Definition: vtkType.h:57
#define VTK_LONG
Definition: vtkType.h:56