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 
47  static vtkTexturedSphereSource *New();
48 
50 
51  vtkSetClampMacro(Radius,double,0.0,VTK_DOUBLE_MAX);
52  vtkGetMacro(Radius,double);
54 
56 
57  vtkSetClampMacro(ThetaResolution,int,4,VTK_MAX_SPHERE_RESOLUTION);
58  vtkGetMacro(ThetaResolution,int);
60 
62 
63  vtkSetClampMacro(PhiResolution,int,4,VTK_MAX_SPHERE_RESOLUTION);
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:
89  vtkTexturedSphereSource(int res=8);
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
#define VTK_DOUBLE_MAX
Definition: vtkType.h:142
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
create a sphere centered at the origin
#define VTK_MAX_SPHERE_RESOLUTION
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKFILTERSSOURCES_EXPORT
Store zero or more vtkInformation instances.