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 
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:
104  ~vtkTexturedSphereSource() VTK_OVERRIDE {}
105 
107  double Radius;
108  double Theta;
109  double Phi;
113 
114 private:
115  vtkTexturedSphereSource(const vtkTexturedSphereSource&) VTK_DELETE_FUNCTION;
116  void operator=(const vtkTexturedSphereSource&) VTK_DELETE_FUNCTION;
117 };
118 
119 #endif
vtkTexturedSphereSource::PhiResolution
int PhiResolution
Definition: vtkTexturedSphereSource.h:111
vtkTexturedSphereSource
create a sphere centered at the origin
Definition: vtkTexturedSphereSource.h:41
vtkTexturedSphereSource::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkTexturedSphereSource::Radius
double Radius
Definition: vtkTexturedSphereSource.h:107
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkTexturedSphereSource::Theta
double Theta
Definition: vtkTexturedSphereSource.h:108
vtkTexturedSphereSource::~vtkTexturedSphereSource
~vtkTexturedSphereSource() override
Definition: vtkTexturedSphereSource.h:104
vtkTexturedSphereSource::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkTexturedSphereSource.h:112
vtkTexturedSphereSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPolyDataAlgorithm.h
vtkTexturedSphereSource::New
static vtkTexturedSphereSource * New()
Construct sphere with radius=0.5 and default resolution 8 in both Phi and Theta directions.
vtkTexturedSphereSource::ThetaResolution
int ThetaResolution
Definition: vtkTexturedSphereSource.h:110
vtkTexturedSphereSource::vtkTexturedSphereSource
vtkTexturedSphereSource(int res=8)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
VTK_MAX_SPHERE_RESOLUTION
#define VTK_MAX_SPHERE_RESOLUTION
Definition: vtkTexturedSphereSource.h:38
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
VTK_DOUBLE_MAX
#define VTK_DOUBLE_MAX
Definition: vtkType.h:163
vtkTexturedSphereSource::Phi
double Phi
Definition: vtkTexturedSphereSource.h:109
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:45