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 =========================================================================*/
32 #ifndef vtkTexturedSphereSource_h
33 #define vtkTexturedSphereSource_h
34 
35 #include "vtkFiltersSourcesModule.h" // For export macro
36 #include "vtkPolyDataAlgorithm.h"
37 
38 #define VTK_MAX_SPHERE_RESOLUTION 1024
39 
40 class VTKFILTERSSOURCES_EXPORT vtkTexturedSphereSource : public vtkPolyDataAlgorithm
41 {
42 public:
44  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
45 
50  static vtkTexturedSphereSource *New();
51 
53 
56  vtkSetClampMacro(Radius,double,0.0,VTK_DOUBLE_MAX);
57  vtkGetMacro(Radius,double);
59 
61 
64  vtkSetClampMacro(ThetaResolution,int,4,VTK_MAX_SPHERE_RESOLUTION);
65  vtkGetMacro(ThetaResolution,int);
67 
69 
72  vtkSetClampMacro(PhiResolution,int,4,VTK_MAX_SPHERE_RESOLUTION);
73  vtkGetMacro(PhiResolution,int);
75 
77 
80  vtkSetClampMacro(Theta,double,0.0,360.0);
81  vtkGetMacro(Theta,double);
83 
85 
88  vtkSetClampMacro(Phi,double,0.0,180.0);
89  vtkGetMacro(Phi,double);
91 
93 
98  vtkSetMacro(OutputPointsPrecision,int);
99  vtkGetMacro(OutputPointsPrecision,int);
101 
102 protected:
103  vtkTexturedSphereSource(int res=8);
104  ~vtkTexturedSphereSource() VTK_OVERRIDE {}
105 
107  double Radius;
108  double Theta;
109  double Phi;
110  int ThetaResolution;
111  int PhiResolution;
112  int OutputPointsPrecision;
113 
114 private:
115  vtkTexturedSphereSource(const vtkTexturedSphereSource&) VTK_DELETE_FUNCTION;
116  void operator=(const vtkTexturedSphereSource&) VTK_DELETE_FUNCTION;
117 };
118 
119 #endif
#define VTK_DOUBLE_MAX
Definition: vtkType.h:163
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
create a sphere centered at the origin
#define VTK_MAX_SPHERE_RESOLUTION
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.