VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Graphics
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
38
class
VTK_GRAPHICS_EXPORT
vtkTexturedSphereSource
:
public
vtkPolyDataAlgorithm
39
{
40
public
:
41
vtkTypeMacro(
vtkTexturedSphereSource
,
vtkPolyDataAlgorithm
);
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);
80
~vtkTexturedSphereSource
() {};
81
82
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
83
double
Radius
;
84
double
Theta
;
85
double
Phi
;
86
int
ThetaResolution
;
87
int
PhiResolution
;
88
89
private
:
90
vtkTexturedSphereSource
(
const
vtkTexturedSphereSource
&);
// Not implemented.
91
void
operator=(
const
vtkTexturedSphereSource
&);
// Not implemented.
92
};
93
94
#endif
vtkTexturedSphereSource::Radius
double Radius
Definition:
vtkTexturedSphereSource.h:83
VTK_GRAPHICS_EXPORT
#define VTK_GRAPHICS_EXPORT
Definition:
vtkWin32Header.h:273
VTK_DOUBLE_MAX
#define VTK_DOUBLE_MAX
Definition:
vtkType.h:133
vtkInformation
Store vtkAlgorithm input/output information.
Definition:
vtkInformation.h:81
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkTexturedSphereSource::~vtkTexturedSphereSource
~vtkTexturedSphereSource()
Definition:
vtkTexturedSphereSource.h:80
vtkTexturedSphereSource::ThetaResolution
int ThetaResolution
Definition:
vtkTexturedSphereSource.h:86
vtkTexturedSphereSource::Theta
double Theta
Definition:
vtkTexturedSphereSource.h:84
vtkTexturedSphereSource
create a sphere centered at the origin
Definition:
vtkTexturedSphereSource.h:38
VTK_MAX_SPHERE_RESOLUTION
#define VTK_MAX_SPHERE_RESOLUTION
Definition:
vtkTexturedSphereSource.h:36
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:48
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:37
vtkTexturedSphereSource::Phi
double Phi
Definition:
vtkTexturedSphereSource.h:85
vtkInformationVector
Store zero or more vtkInformation instances.
Definition:
vtkInformationVector.h:39
vtkPolyDataAlgorithm.h
vtkTexturedSphereSource::PhiResolution
int PhiResolution
Definition:
vtkTexturedSphereSource.h:87
Generated by
1.8.9.1