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 =========================================================================*/
26 #ifndef vtkImageEllipsoidSource_h
27 #define vtkImageEllipsoidSource_h
28 
29 #include "vtkImagingSourcesModule.h" // For export macro
30 #include "vtkImageAlgorithm.h"
31 
33 {
34 public:
37  void PrintSelf(ostream& os, vtkIndent indent);
38 
40 
41  void SetWholeExtent(int extent[6]);
42  void SetWholeExtent(int minX, int maxX, int minY, int maxY,
43  int minZ, int maxZ);
44  void GetWholeExtent(int extent[6]);
45  int *GetWholeExtent() {return this->WholeExtent;}
47 
49 
50  vtkSetVector3Macro(Center, double);
51  vtkGetVector3Macro(Center, double);
53 
55 
56  vtkSetVector3Macro(Radius, double);
57  vtkGetVector3Macro(Radius, double);
59 
61 
62  vtkSetMacro(InValue,double);
63  vtkGetMacro(InValue,double);
65 
67 
68  vtkSetMacro(OutValue,double);
69  vtkGetMacro(OutValue,double);
71 
73 
74  vtkSetMacro(OutputScalarType,int);
75  vtkGetMacro(OutputScalarType,int);
77  {this->SetOutputScalarType(VTK_FLOAT);}
79  {this->SetOutputScalarType(VTK_DOUBLE);}
81  {this->SetOutputScalarType(VTK_LONG);}
83  {this->SetOutputScalarType(VTK_UNSIGNED_LONG);};
85  {this->SetOutputScalarType(VTK_INT);}
87  {this->SetOutputScalarType(VTK_UNSIGNED_INT);}
89  {this->SetOutputScalarType(VTK_SHORT);}
91  {this->SetOutputScalarType(VTK_UNSIGNED_SHORT);}
93  {this->SetOutputScalarType(VTK_CHAR);}
95  {this->SetOutputScalarType(VTK_UNSIGNED_CHAR);}
97 
98 protected:
101 
102  int WholeExtent[6];
103  double Center[3];
104  double Radius[3];
105  double InValue;
106  double OutValue;
108 
112 
115 
116 private:
117  vtkImageEllipsoidSource(const vtkImageEllipsoidSource&); // Not implemented.
118  void operator=(const vtkImageEllipsoidSource&); // Not implemented.
119 };
120 
121 
122 #endif
123 
124 
vtkImageEllipsoidSource::SetOutputScalarTypeToShort
void SetOutputScalarTypeToShort()
Definition: vtkImageEllipsoidSource.h:88
vtkImageEllipsoidSource::SetWholeExtent
void SetWholeExtent(int extent[6])
vtkImageEllipsoidSource::SetOutputScalarTypeToLong
void SetOutputScalarTypeToLong()
Definition: vtkImageEllipsoidSource.h:80
vtkSetVector3Macro
#define vtkSetVector3Macro(name, type)
Definition: vtkSetGet.h:287
VTK_UNSIGNED_INT
#define VTK_UNSIGNED_INT
Definition: vtkType.h:32
vtkImageEllipsoidSource::InValue
double InValue
Definition: vtkImageEllipsoidSource.h:105
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
VTK_UNSIGNED_SHORT
#define VTK_UNSIGNED_SHORT
Definition: vtkType.h:30
vtkImageEllipsoidSource::GetWholeExtent
int * GetWholeExtent()
Definition: vtkImageEllipsoidSource.h:45
vtkImageEllipsoidSource::SetOutputScalarTypeToUnsignedLong
void SetOutputScalarTypeToUnsignedLong()
Definition: vtkImageEllipsoidSource.h:82
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkImageAlgorithm.h
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:40
vtkImageEllipsoidSource::SetOutputScalarTypeToFloat
void SetOutputScalarTypeToFloat()
Definition: vtkImageEllipsoidSource.h:76
vtkImageEllipsoidSource::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkImageEllipsoidSource::SetOutputScalarTypeToInt
void SetOutputScalarTypeToInt()
Definition: vtkImageEllipsoidSource.h:84
vtkImageEllipsoidSource::SetOutputScalarTypeToDouble
void SetOutputScalarTypeToDouble()
Definition: vtkImageEllipsoidSource.h:78
vtkImageEllipsoidSource::SetWholeExtent
void SetWholeExtent(int minX, int maxX, int minY, int maxY, int minZ, int maxZ)
vtkGetVector3Macro
#define vtkGetVector3Macro(name, type)
Definition: vtkSetGet.h:304
vtkImageEllipsoidSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
VTK_CHAR
#define VTK_CHAR
Definition: vtkType.h:26
vtkImageEllipsoidSource::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkImageEllipsoidSource::SetOutputScalarTypeToUnsignedChar
void SetOutputScalarTypeToUnsignedChar()
Definition: vtkImageEllipsoidSource.h:94
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
VTKIMAGINGSOURCES_EXPORT
#define VTKIMAGINGSOURCES_EXPORT
Definition: vtkImagingSourcesModule.h:15
vtkImageEllipsoidSource::SetOutputScalarTypeToChar
void SetOutputScalarTypeToChar()
Definition: vtkImageEllipsoidSource.h:92
VTK_FLOAT
#define VTK_FLOAT
Definition: vtkType.h:35
VTK_DOUBLE
#define VTK_DOUBLE
Definition: vtkType.h:36
vtkImageEllipsoidSource::~vtkImageEllipsoidSource
~vtkImageEllipsoidSource()
VTK_UNSIGNED_CHAR
#define VTK_UNSIGNED_CHAR
Definition: vtkType.h:28
VTK_LONG
#define VTK_LONG
Definition: vtkType.h:33
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkImageEllipsoidSource::SetOutputScalarTypeToUnsignedInt
void SetOutputScalarTypeToUnsignedInt()
Definition: vtkImageEllipsoidSource.h:86
vtkImageEllipsoidSource::OutValue
double OutValue
Definition: vtkImageEllipsoidSource.h:106
VTK_UNSIGNED_LONG
#define VTK_UNSIGNED_LONG
Definition: vtkType.h:34
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
VTK_SHORT
#define VTK_SHORT
Definition: vtkType.h:29
vtkImageEllipsoidSource::SetOutputScalarTypeToUnsignedShort
void SetOutputScalarTypeToUnsignedShort()
Definition: vtkImageEllipsoidSource.h:90
vtkX3D::extent
@ extent
Definition: vtkX3D.h:345
vtkImageEllipsoidSource::vtkImageEllipsoidSource
vtkImageEllipsoidSource()
vtkImageEllipsoidSource
Create a binary image of an ellipsoid.
Definition: vtkImageEllipsoidSource.h:33
VTK_INT
#define VTK_INT
Definition: vtkType.h:31
vtkImageEllipsoidSource::New
static vtkImageEllipsoidSource * New()
vtkImagingSourcesModule.h
vtkImageEllipsoidSource::GetWholeExtent
void GetWholeExtent(int extent[6])
vtkImageEllipsoidSource::OutputScalarType
int OutputScalarType
Definition: vtkImageEllipsoidSource.h:107