VTK
vtkSphereSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSphereSource.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 =========================================================================*/
37 #ifndef vtkSphereSource_h
38 #define vtkSphereSource_h
39 
40 #include "vtkFiltersSourcesModule.h" // For export macro
41 #include "vtkPolyDataAlgorithm.h"
42 
43 #define VTK_MAX_SPHERE_RESOLUTION 1024
44 
46 {
47 public:
49  void PrintSelf(ostream& os, vtkIndent indent);
50 
54  static vtkSphereSource *New();
55 
57 
58  vtkSetClampMacro(Radius,double,0.0,VTK_DOUBLE_MAX);
59  vtkGetMacro(Radius,double);
61 
63 
64  vtkSetVector3Macro(Center,double);
65  vtkGetVectorMacro(Center,double,3);
67 
69 
72  vtkGetMacro(ThetaResolution,int);
74 
76 
79  vtkGetMacro(PhiResolution,int);
81 
83 
84  vtkSetClampMacro(StartTheta,double,0.0,360.0);
85  vtkGetMacro(StartTheta,double);
87 
89 
90  vtkSetClampMacro(EndTheta,double,0.0,360.0);
91  vtkGetMacro(EndTheta,double);
93 
95 
97  vtkSetClampMacro(StartPhi,double,0.0,360.0);
98  vtkGetMacro(StartPhi,double);
100 
102 
103  vtkSetClampMacro(EndPhi,double,0.0,360.0);
104  vtkGetMacro(EndPhi,double);
106 
108 
114  vtkSetMacro(LatLongTessellation,int);
115  vtkGetMacro(LatLongTessellation,int);
116  vtkBooleanMacro(LatLongTessellation,int);
118 
120 
124  vtkSetMacro(OutputPointsPrecision,int);
125  vtkGetMacro(OutputPointsPrecision,int);
127 
128 protected:
131 
134 
135  double Radius;
136  double Center[3];
139  double StartTheta;
140  double EndTheta;
141  double StartPhi;
142  double EndPhi;
145 
146 private:
147  vtkSphereSource(const vtkSphereSource&); // Not implemented.
148  void operator=(const vtkSphereSource&); // Not implemented.
149 };
150 
151 #endif
VTK_MAX_SPHERE_RESOLUTION
#define VTK_MAX_SPHERE_RESOLUTION
Definition: vtkSphereSource.h:43
vtkSphereSource::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkSphereSource::New
static vtkSphereSource * New()
vtkSphereSource::EndTheta
double EndTheta
Definition: vtkSphereSource.h:140
vtkSphereSource::PhiResolution
int PhiResolution
Definition: vtkSphereSource.h:138
vtkSetVector3Macro
#define vtkSetVector3Macro(name, type)
Definition: vtkSetGet.h:287
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkSphereSource::StartTheta
double StartTheta
Definition: vtkSphereSource.h:139
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkFiltersSourcesModule.h
vtkGetVectorMacro
#define vtkGetVectorMacro(name, type, count)
Definition: vtkSetGet.h:424
vtkSphereSource::Radius
double Radius
Definition: vtkSphereSource.h:135
vtkPolyDataAlgorithm.h
vtkSphereSource::vtkSphereSource
vtkSphereSource(int res=8)
vtkSphereSource::StartPhi
double StartPhi
Definition: vtkSphereSource.h:141
vtkSetClampMacro
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:143
VTKFILTERSSOURCES_EXPORT
#define VTKFILTERSSOURCES_EXPORT
Definition: vtkFiltersSourcesModule.h:15
vtkSphereSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkSphereSource
create a polygonal sphere centered at the origin
Definition: vtkSphereSource.h:46
vtkgl::res
GLuint res
Definition: vtkgl.h:16902
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSphereSource::~vtkSphereSource
~vtkSphereSource()
Definition: vtkSphereSource.h:130
vtkSphereSource::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkSphereSource.h:144
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkSphereSource::LatLongTessellation
int LatLongTessellation
Definition: vtkSphereSource.h:143
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkSphereSource::ThetaResolution
int ThetaResolution
Definition: vtkSphereSource.h:137
vtkSphereSource::EndPhi
double EndPhi
Definition: vtkSphereSource.h:142
VTK_DOUBLE_MAX
#define VTK_DOUBLE_MAX
Definition: vtkType.h:142
vtkSphereSource::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44