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 "vtkPolyDataAlgorithm.h"
35 
36 #define VTK_MAX_SPHERE_RESOLUTION 1024
37 
39 {
40 public:
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
46  static vtkTexturedSphereSource *New();
47 
49 
50  vtkSetClampMacro(Radius,double,0.0,VTK_DOUBLE_MAX);
51  vtkGetMacro(Radius,double);
53 
55 
56  vtkSetClampMacro(ThetaResolution,int,4,VTK_MAX_SPHERE_RESOLUTION);
57  vtkGetMacro(ThetaResolution,int);
59 
61 
62  vtkSetClampMacro(PhiResolution,int,4,VTK_MAX_SPHERE_RESOLUTION);
63  vtkGetMacro(PhiResolution,int);
65 
67 
68  vtkSetClampMacro(Theta,double,0.0,360.0);
69  vtkGetMacro(Theta,double);
71 
73 
74  vtkSetClampMacro(Phi,double,0.0,180.0);
75  vtkGetMacro(Phi,double);
77 
78 protected:
79  vtkTexturedSphereSource(int res=8);
81 
83  double Radius;
84  double Theta;
85  double Phi;
88 
89 private:
90  vtkTexturedSphereSource(const vtkTexturedSphereSource&); // Not implemented.
91  void operator=(const vtkTexturedSphereSource&); // Not implemented.
92 };
93 
94 #endif