VTK
vtkTexturedSphereSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTexturedSphereSource.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 =========================================================================*/
31 #ifndef vtkTexturedSphereSource_h
32 #define vtkTexturedSphereSource_h
33 
34 #include "vtkFiltersSourcesModule.h" // For export macro
35 #include "vtkPolyDataAlgorithm.h"
36 
37 #define VTK_MAX_SPHERE_RESOLUTION 1024
38 
40 {
41 public:
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
48 
50 
51  vtkSetClampMacro(Radius,double,0.0,VTK_DOUBLE_MAX);
52  vtkGetMacro(Radius,double);
54 
56 
58  vtkGetMacro(ThetaResolution,int);
60 
62 
64  vtkGetMacro(PhiResolution,int);
66 
68 
69  vtkSetClampMacro(Theta,double,0.0,360.0);
70  vtkGetMacro(Theta,double);
72 
74 
75  vtkSetClampMacro(Phi,double,0.0,180.0);
76  vtkGetMacro(Phi,double);
78 
80 
84  vtkSetMacro(OutputPointsPrecision,int);
85  vtkGetMacro(OutputPointsPrecision,int);
87 
88 protected:
91 
93  double Radius;
94  double Theta;
95  double Phi;
99 
100 private:
101  vtkTexturedSphereSource(const vtkTexturedSphereSource&); // Not implemented.
102  void operator=(const vtkTexturedSphereSource&); // Not implemented.
103 };
104 
105 #endif
vtkTexturedSphereSource::PhiResolution
int PhiResolution
Definition: vtkTexturedSphereSource.h:97
vtkTexturedSphereSource
create a sphere centered at the origin
Definition: vtkTexturedSphereSource.h:40
vtkTexturedSphereSource::Radius
double Radius
Definition: vtkTexturedSphereSource.h:93
vtkTexturedSphereSource::~vtkTexturedSphereSource
~vtkTexturedSphereSource()
Definition: vtkTexturedSphereSource.h:90
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTexturedSphereSource::Theta
double Theta
Definition: vtkTexturedSphereSource.h:94
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkTexturedSphereSource::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkTexturedSphereSource.h:98
vtkFiltersSourcesModule.h
vtkPolyDataAlgorithm.h
vtkSetClampMacro
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:143
vtkTexturedSphereSource::New
static vtkTexturedSphereSource * New()
vtkTexturedSphereSource::ThetaResolution
int ThetaResolution
Definition: vtkTexturedSphereSource.h:96
VTKFILTERSSOURCES_EXPORT
#define VTKFILTERSSOURCES_EXPORT
Definition: vtkFiltersSourcesModule.h:15
vtkTexturedSphereSource::vtkTexturedSphereSource
vtkTexturedSphereSource(int res=8)
vtkgl::res
GLuint res
Definition: vtkgl.h:16902
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkTexturedSphereSource::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
VTK_MAX_SPHERE_RESOLUTION
#define VTK_MAX_SPHERE_RESOLUTION
Definition: vtkTexturedSphereSource.h:37
vtkTexturedSphereSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
VTK_DOUBLE_MAX
#define VTK_DOUBLE_MAX
Definition: vtkType.h:142
vtkTexturedSphereSource::Phi
double Phi
Definition: vtkTexturedSphereSource.h:95
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44