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 "vtkImageAlgorithm.h"
30 
32 {
33 public:
34  static vtkImageEllipsoidSource *New();
36  void PrintSelf(ostream& os, vtkIndent indent);
37 
39 
40  void SetWholeExtent(int extent[6]);
41  void SetWholeExtent(int minX, int maxX, int minY, int maxY,
42  int minZ, int maxZ);
43  void GetWholeExtent(int extent[6]);
44  int *GetWholeExtent() {return this->WholeExtent;}
46 
48 
49  vtkSetVector3Macro(Center, double);
50  vtkGetVector3Macro(Center, double);
52 
54 
55  vtkSetVector3Macro(Radius, double);
56  vtkGetVector3Macro(Radius, double);
58 
60 
61  vtkSetMacro(InValue,double);
62  vtkGetMacro(InValue,double);
64 
66 
67  vtkSetMacro(OutValue,double);
68  vtkGetMacro(OutValue,double);
70 
72 
73  vtkSetMacro(OutputScalarType,int);
74  vtkGetMacro(OutputScalarType,int);
75  void SetOutputScalarTypeToFloat()
76  {this->SetOutputScalarType(VTK_FLOAT);}
77  void SetOutputScalarTypeToDouble()
78  {this->SetOutputScalarType(VTK_DOUBLE);}
79  void SetOutputScalarTypeToLong()
80  {this->SetOutputScalarType(VTK_LONG);}
81  void SetOutputScalarTypeToUnsignedLong()
82  {this->SetOutputScalarType(VTK_UNSIGNED_LONG);};
83  void SetOutputScalarTypeToInt()
84  {this->SetOutputScalarType(VTK_INT);}
85  void SetOutputScalarTypeToUnsignedInt()
86  {this->SetOutputScalarType(VTK_UNSIGNED_INT);}
87  void SetOutputScalarTypeToShort()
88  {this->SetOutputScalarType(VTK_SHORT);}
89  void SetOutputScalarTypeToUnsignedShort()
90  {this->SetOutputScalarType(VTK_UNSIGNED_SHORT);}
91  void SetOutputScalarTypeToChar()
92  {this->SetOutputScalarType(VTK_CHAR);}
93  void SetOutputScalarTypeToUnsignedChar()
94  {this->SetOutputScalarType(VTK_UNSIGNED_CHAR);}
96 
97 protected:
100 
101  int WholeExtent[6];
102  double Center[3];
103  double Radius[3];
104  double InValue;
105  double OutValue;
107 
108  virtual int RequestInformation (vtkInformation *,
111 
112  virtual int RequestData(vtkInformation *,
114 
115 private:
116  vtkImageEllipsoidSource(const vtkImageEllipsoidSource&); // Not implemented.
117  void operator=(const vtkImageEllipsoidSource&); // Not implemented.
118 };
119 
120 
121 #endif
122 
123