Generate a torus.
More...
#include <vtkParametricTorus.h>
Generate a torus.
vtkParametricTorus generates a torus.
For further information about this surface, please consult the technical description "Parametric surfaces" in http://www.vtk.org/documents.php in the "VTK Technical Documents" section in the VTk.org web pages.
- Thanks:
- Andrew Maclean a.mac.nosp@m.lean.nosp@m.@cas..nosp@m.edu..nosp@m.au for creating and contributing the class.
- Tests:
- vtkParametricTorus (Tests)
Definition at line 39 of file vtkParametricTorus.h.
vtkParametricTorus::vtkParametricTorus |
( |
| ) |
|
|
protected |
vtkParametricTorus::~vtkParametricTorus |
( |
| ) |
|
|
protected |
static int vtkParametricTorus::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
virtual int vtkParametricTorus::IsA |
( |
const char * |
type | ) |
|
|
virtual |
virtual vtkObjectBase* vtkParametricTorus::NewInstanceInternal |
( |
| ) |
const |
|
protectedvirtual |
void vtkParametricTorus::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
Construct a torus with the following parameters: MinimumU = 0, MaximumU = 2*Pi, MinimumV = 0, MaximumV = 2*Pi, JoinU = 1, JoinV = 1, TwistU = 0, TwistV = 0, ClockwiseOrdering = 1, DerivativesAvailable = 1, RingRadius = 1, CrossSectionRadius = 0.5.
virtual void vtkParametricTorus::SetRingRadius |
( |
double |
| ) |
|
|
virtual |
Set/Get the radius from the center to the middle of the ring of the torus. The default value is 1.0.
virtual double vtkParametricTorus::GetRingRadius |
( |
| ) |
|
|
virtual |
Set/Get the radius from the center to the middle of the ring of the torus. The default value is 1.0.
virtual void vtkParametricTorus::SetCrossSectionRadius |
( |
double |
| ) |
|
|
virtual |
Set/Get the radius of the cross section of ring of the torus. The default value is 0.5.
virtual double vtkParametricTorus::GetCrossSectionRadius |
( |
| ) |
|
|
virtual |
Set/Get the radius of the cross section of ring of the torus. The default value is 0.5.
virtual int vtkParametricTorus::GetDimension |
( |
| ) |
|
|
inlinevirtual |
virtual void vtkParametricTorus::Evaluate |
( |
double |
uvw[3], |
|
|
double |
Pt[3], |
|
|
double |
Duvw[9] |
|
) |
| |
|
virtual |
A torus. This function performs the mapping
, returning it as Pt. It also returns the partial derivatives Du and Dv.
. Then the normal is
.
Implements vtkParametricFunction.
virtual double vtkParametricTorus::EvaluateScalar |
( |
double |
uvw[3], |
|
|
double |
Pt[3], |
|
|
double |
Duvw[9] |
|
) |
| |
|
virtual |
Calculate a user defined scalar using one or all of uvw, Pt, Duvw. uvw are the parameters with Pt being the the Cartesian point, Duvw are the derivatives of this point with respect to u, v and w. Pt, Duvw are obtained from Evaluate(). This function is only called if the ScalarMode has the value vtkParametricFunctionSource::SCALAR_FUNCTION_DEFINED If the user does not need to calculate a scalar, then the instantiated function should return zero.
Implements vtkParametricFunction.
double vtkParametricTorus::RingRadius |
|
protected |
double vtkParametricTorus::CrossSectionRadius |
|
protected |
The documentation for this class was generated from the following file: