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 =========================================================================*/
24 #ifndef vtkImageEllipsoidSource_h
25 #define vtkImageEllipsoidSource_h
26 
27 #include "vtkImagingSourcesModule.h" // For export macro
28 #include "vtkImageAlgorithm.h"
29 
30 class VTKIMAGINGSOURCES_EXPORT vtkImageEllipsoidSource : public vtkImageAlgorithm
31 {
32 public:
33  static vtkImageEllipsoidSource *New();
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,
43  int minZ, int maxZ);
44  void GetWholeExtent(int extent[6]);
45  int *GetWholeExtent() VTK_SIZEHINT(6) {return this->WholeExtent;}
47 
49 
52  vtkSetVector3Macro(Center, double);
53  vtkGetVector3Macro(Center, double);
55 
57 
60  vtkSetVector3Macro(Radius, double);
61  vtkGetVector3Macro(Radius, double);
63 
65 
68  vtkSetMacro(InValue,double);
69  vtkGetMacro(InValue,double);
71 
73 
76  vtkSetMacro(OutValue,double);
77  vtkGetMacro(OutValue,double);
79 
81 
84  vtkSetMacro(OutputScalarType,int);
85  vtkGetMacro(OutputScalarType,int);
87  {this->SetOutputScalarType(VTK_FLOAT);}
89  {this->SetOutputScalarType(VTK_DOUBLE);}
91  {this->SetOutputScalarType(VTK_LONG);}
93  {this->SetOutputScalarType(VTK_UNSIGNED_LONG);};
95  {this->SetOutputScalarType(VTK_INT);}
97  {this->SetOutputScalarType(VTK_UNSIGNED_INT);}
99  {this->SetOutputScalarType(VTK_SHORT);}
101  {this->SetOutputScalarType(VTK_UNSIGNED_SHORT);}
103  {this->SetOutputScalarType(VTK_CHAR);}
105  {this->SetOutputScalarType(VTK_UNSIGNED_CHAR);}
107 
108 protected:
110  ~vtkImageEllipsoidSource() override;
111 
112  int WholeExtent[6];
113  double Center[3];
114  double Radius[3];
115  double InValue;
116  double OutValue;
118 
121  vtkInformationVector *) override;
122 
125 
126 private:
128  void operator=(const vtkImageEllipsoidSource&) = delete;
129 };
130 
131 
132 #endif
133 
134 
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:98
vtkImageEllipsoidSource::SetOutputScalarTypeToLong
void SetOutputScalarTypeToLong()
Definition: vtkImageEllipsoidSource.h:90
VTK_UNSIGNED_INT
#define VTK_UNSIGNED_INT
Definition: vtkType.h:55
vtkImageEllipsoidSource::InValue
double InValue
Definition: vtkImageEllipsoidSource.h:115
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
VTK_UNSIGNED_SHORT
#define VTK_UNSIGNED_SHORT
Definition: vtkType.h:53
vtkImageEllipsoidSource::GetWholeExtent
int * GetWholeExtent()
Definition: vtkImageEllipsoidSource.h:45
vtkImageEllipsoidSource::SetOutputScalarTypeToUnsignedLong
void SetOutputScalarTypeToUnsignedLong()
Definition: vtkImageEllipsoidSource.h:92
vtkImageAlgorithm.h
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:37
vtkImageEllipsoidSource::SetOutputScalarTypeToFloat
void SetOutputScalarTypeToFloat()
Definition: vtkImageEllipsoidSource.h:86
vtkImageEllipsoidSource::SetOutputScalarTypeToInt
void SetOutputScalarTypeToInt()
Definition: vtkImageEllipsoidSource.h:94
vtkImageEllipsoidSource::SetOutputScalarTypeToDouble
void SetOutputScalarTypeToDouble()
Definition: vtkImageEllipsoidSource.h:88
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:104
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkImageEllipsoidSource::SetOutputScalarTypeToChar
void SetOutputScalarTypeToChar()
Definition: vtkImageEllipsoidSource.h:102
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:96
vtkImageEllipsoidSource::OutValue
double OutValue
Definition: vtkImageEllipsoidSource.h:116
VTK_UNSIGNED_LONG
#define VTK_UNSIGNED_LONG
Definition: vtkType.h:57
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
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:100
vtkX3D::extent
Definition: vtkX3D.h:345
vtkImageEllipsoidSource
Create a binary image of an ellipsoid.
Definition: vtkImageEllipsoidSource.h:30
VTK_INT
#define VTK_INT
Definition: vtkType.h:54
vtkImageEllipsoidSource::OutputScalarType
int OutputScalarType
Definition: vtkImageEllipsoidSource.h:117