VTK
dox
build
vtk6-OogHnQ
vtk6-6.3.0+dfsg1
Filters
Sources
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
39
class
VTKFILTERSSOURCES_EXPORT
vtkTexturedSphereSource
:
public
vtkPolyDataAlgorithm
40
{
41
public
:
42
vtkTypeMacro
(
vtkTexturedSphereSource
,
vtkPolyDataAlgorithm
);
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);
90
~vtkTexturedSphereSource
() {}
91
92
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
93
double
Radius
;
94
double
Theta
;
95
double
Phi
;
96
int
ThetaResolution
;
97
int
PhiResolution
;
98
int
OutputPointsPrecision
;
99
100
private
:
101
vtkTexturedSphereSource
(
const
vtkTexturedSphereSource
&);
// Not implemented.
102
void
operator=(
const
vtkTexturedSphereSource
&);
// Not implemented.
103
};
104
105
#endif
vtkTexturedSphereSource::Radius
double Radius
Definition:
vtkTexturedSphereSource.h:93
vtkFiltersSourcesModule.h
VTK_DOUBLE_MAX
#define VTK_DOUBLE_MAX
Definition:
vtkType.h:142
vtkInformation
Store vtkAlgorithm input/output information.
Definition:
vtkInformation.h:85
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkGetMacro
#define vtkGetMacro(name, type)
Definition:
vtkSetGet.h:93
vtkTexturedSphereSource::~vtkTexturedSphereSource
~vtkTexturedSphereSource()
Definition:
vtkTexturedSphereSource.h:90
vtkTexturedSphereSource::ThetaResolution
int ThetaResolution
Definition:
vtkTexturedSphereSource.h:96
vtkSetClampMacro
#define vtkSetClampMacro(name, type, min, max)
Definition:
vtkSetGet.h:143
vtkTexturedSphereSource::OutputPointsPrecision
int OutputPointsPrecision
Definition:
vtkTexturedSphereSource.h:98
vtkTexturedSphereSource::Theta
double Theta
Definition:
vtkTexturedSphereSource.h:94
vtkTexturedSphereSource
create a sphere centered at the origin
Definition:
vtkTexturedSphereSource.h:39
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition:
vtkSetGet.h:642
VTK_MAX_SPHERE_RESOLUTION
#define VTK_MAX_SPHERE_RESOLUTION
Definition:
vtkTexturedSphereSource.h:37
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition:
vtkPolyDataAlgorithm.h:43
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:38
VTKFILTERSSOURCES_EXPORT
#define VTKFILTERSSOURCES_EXPORT
Definition:
vtkFiltersSourcesModule.h:15
vtkTexturedSphereSource::Phi
double Phi
Definition:
vtkTexturedSphereSource.h:95
vtkInformationVector
Store zero or more vtkInformation instances.
Definition:
vtkInformationVector.h:40
vtkPolyDataAlgorithm.h
vtkTexturedSphereSource::PhiResolution
int PhiResolution
Definition:
vtkTexturedSphereSource.h:97
vtkSetMacro
#define vtkSetMacro(name, type)
Definition:
vtkSetGet.h:79
Generated by
1.8.12