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 =========================================================================*/
29 #ifndef vtkTexturedSphereSource_h
30 #define vtkTexturedSphereSource_h
31 
32 #include "vtkFiltersSourcesModule.h" // For export macro
33 #include "vtkPolyDataAlgorithm.h"
34 
35 #define VTK_MAX_SPHERE_RESOLUTION 1024
36 
37 class VTKFILTERSSOURCES_EXPORT vtkTexturedSphereSource : public vtkPolyDataAlgorithm
38 {
39 public:
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
47  static vtkTexturedSphereSource *New();
48 
50 
53  vtkSetClampMacro(Radius,double,0.0,VTK_DOUBLE_MAX);
54  vtkGetMacro(Radius,double);
56 
58 
61  vtkSetClampMacro(ThetaResolution,int,4,VTK_MAX_SPHERE_RESOLUTION);
62  vtkGetMacro(ThetaResolution,int);
64 
66 
69  vtkSetClampMacro(PhiResolution,int,4,VTK_MAX_SPHERE_RESOLUTION);
70  vtkGetMacro(PhiResolution,int);
72 
74 
77  vtkSetClampMacro(Theta,double,0.0,360.0);
78  vtkGetMacro(Theta,double);
80 
82 
85  vtkSetClampMacro(Phi,double,0.0,180.0);
86  vtkGetMacro(Phi,double);
88 
90 
95  vtkSetMacro(OutputPointsPrecision,int);
96  vtkGetMacro(OutputPointsPrecision,int);
98 
99 protected:
100  vtkTexturedSphereSource(int res=8);
102 
104  double Radius;
105  double Theta;
106  double Phi;
110 
111 private:
113  void operator=(const vtkTexturedSphereSource&) = delete;
114 };
115 
116 #endif
vtkTexturedSphereSource::PhiResolution
int PhiResolution
Definition: vtkTexturedSphereSource.h:108
vtkTexturedSphereSource
create a sphere centered at the origin
Definition: vtkTexturedSphereSource.h:37
vtkTexturedSphereSource::Radius
double Radius
Definition: vtkTexturedSphereSource.h:104
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTexturedSphereSource::Theta
double Theta
Definition: vtkTexturedSphereSource.h:105
vtkTexturedSphereSource::~vtkTexturedSphereSource
~vtkTexturedSphereSource() override
Definition: vtkTexturedSphereSource.h:101
vtkTexturedSphereSource::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkTexturedSphereSource.h:109
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPolyDataAlgorithm.h
vtkTexturedSphereSource::ThetaResolution
int ThetaResolution
Definition: vtkTexturedSphereSource.h:107
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
VTK_MAX_SPHERE_RESOLUTION
#define VTK_MAX_SPHERE_RESOLUTION
Definition: vtkTexturedSphereSource.h:35
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
VTK_DOUBLE_MAX
#define VTK_DOUBLE_MAX
Definition: vtkType.h:169
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkTexturedSphereSource::Phi
double Phi
Definition: vtkTexturedSphereSource.h:106
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44