VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkParametricFunctionSource Class Reference

tessellate parametric functions More...

#include <vtkParametricFunctionSource.h>

Inheritance diagram for vtkParametricFunctionSource:
Inheritance graph
[legend]
Collaboration diagram for vtkParametricFunctionSource:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkPolyDataAlgorithm Superclass
enum  SCALAR_MODE {
  SCALAR_NONE = 0, SCALAR_U, SCALAR_V, SCALAR_U0,
  SCALAR_V0, SCALAR_U0V0, SCALAR_MODULUS, SCALAR_PHASE,
  SCALAR_QUADRANT, SCALAR_X, SCALAR_Y, SCALAR_Z,
  SCALAR_DISTANCE, SCALAR_FUNCTION_DEFINED
}

Public Member Functions

virtual int IsA (const char *type)
vtkParametricFunctionSourceNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
unsigned long GetMTime ()
virtual void SetParametricFunction (vtkParametricFunction *)
virtual vtkParametricFunctionGetParametricFunction ()
virtual void SetUResolution (int)
virtual int GetUResolution ()
virtual void SetVResolution (int)
virtual int GetVResolution ()
virtual void SetWResolution (int)
virtual int GetWResolution ()
virtual void GenerateTextureCoordinatesOn ()
virtual void GenerateTextureCoordinatesOff ()
virtual void SetGenerateTextureCoordinates (int)
virtual int GetGenerateTextureCoordinates ()
virtual void SetScalarMode (int)
virtual int GetScalarMode ()
void SetScalarModeToNone (void)
void SetScalarModeToU (void)
void SetScalarModeToV (void)
void SetScalarModeToU0 (void)
void SetScalarModeToV0 (void)
void SetScalarModeToU0V0 (void)
void SetScalarModeToModulus (void)
void SetScalarModeToPhase (void)
void SetScalarModeToQuadrant (void)
void SetScalarModeToX (void)
void SetScalarModeToY (void)
void SetScalarModeToZ (void)
void SetScalarModeToDistance (void)
void SetScalarModeToFunctionDefined (void)

Static Public Member Functions

static int IsTypeOf (const char *type)
static
vtkParametricFunctionSource
SafeDownCast (vtkObjectBase *o)
static
vtkParametricFunctionSource
New ()

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkParametricFunctionSource ()
virtual ~vtkParametricFunctionSource ()
int RequestData (vtkInformation *info, vtkInformationVector **input, vtkInformationVector *output)

Protected Attributes

vtkParametricFunctionParametricFunction
int UResolution
int VResolution
int WResolution
int GenerateTextureCoordinates
int ScalarMode

Detailed Description

tessellate parametric functions

This class tessellates parametric functions. The user must specify how many points in the parametric coordinate directions are required (i.e., the resolution), and the mode to use to generate scalars.

Thanks:
Andrew Maclean a.mac.nosp@m.lean.nosp@m.@cas..nosp@m.edu..nosp@m.au for creating and contributing the class.
See also:
vtkParametricFunction
Implementation of parametrics for 1D lines: vtkParametricSpline
Subclasses of vtkParametricFunction implementing non-orentable surfaces: vtkParametricBoy vtkParametricCrossCap vtkParametricFigure8Klein vtkParametricKlein vtkParametricMobius vtkParametricRoman
Subclasses of vtkParametricFunction implementing orientable surfaces: vtkParametricConicSpiral vtkParametricDini vtkParametricEllipsoid vtkParametricEnneper vtkParametricRandomHills vtkParametricSuperEllipsoid vtkParametricSuperToroid vtkParametricTorus
Tests:
vtkParametricFunctionSource (Tests)

Definition at line 58 of file vtkParametricFunctionSource.h.


Member Typedef Documentation

Reimplemented from vtkPolyDataAlgorithm.

Definition at line 61 of file vtkParametricFunctionSource.h.


Member Enumeration Documentation

Enumerate the supported scalar generation modes.

 SCALAR_NONE,
      (default) scalars are not generated. SCALAR_U, the scalar is set to
      the u-value. SCALAR_V, the scalar is set to the v-value. SCALAR_U0,
      the scalar is set to 1 if u = (u_max - u_min)/2 = u_avg, 0 otherwise.
      SCALAR_V0, the scalar is set to 1 if v = (v_max - v_min)/2 = v_avg, 0
      otherwise. SCALAR_U0V0, the scalar is set to 1 if u == u_avg, 2 if v
      == v_avg, 3 if u = u_avg && v = v_avg, 0 otherwise. SCALAR_MODULUS,
      the scalar is set to (sqrt(u*u+v*v)), this is measured relative to
      (u_avg,v_avg). SCALAR_PHASE, the scalar is set to (atan2(v,u)) (in
      degrees, 0 to 360), this is measured relative to (u_avg,v_avg).
      SCALAR_QUADRANT, the scalar is set to 1, 2, 3 or 4 depending upon the
      quadrant of the point (u,v). SCALAR_X, the scalar is set to the
      x-value. SCALAR_Y, the scalar is set to the y-value. SCALAR_Z, the
      scalar is set to the z-value. SCALAR_DISTANCE, the scalar is set to
      (sqrt(x*x+y*y+z*z)). I.e. distance from the origin.
      SCALAR_USER_DEFINED, the scalar is set to the value returned from
      EvaluateScalar(). 
Enumerator:
SCALAR_NONE 
SCALAR_U 
SCALAR_V 
SCALAR_U0 
SCALAR_V0 
SCALAR_U0V0 
SCALAR_MODULUS 
SCALAR_PHASE 
SCALAR_QUADRANT 
SCALAR_X 
SCALAR_Y 
SCALAR_Z 
SCALAR_DISTANCE 
SCALAR_FUNCTION_DEFINED 

Definition at line 127 of file vtkParametricFunctionSource.h.


Constructor & Destructor Documentation


Member Function Documentation

static int vtkParametricFunctionSource::IsTypeOf ( const char *  name) [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkPolyDataAlgorithm.

virtual int vtkParametricFunctionSource::IsA ( const char *  name) [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkPolyDataAlgorithm.

Reimplemented from vtkPolyDataAlgorithm.

virtual vtkObjectBase* vtkParametricFunctionSource::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkPolyDataAlgorithm.

Reimplemented from vtkPolyDataAlgorithm.

void vtkParametricFunctionSource::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkPolyDataAlgorithm.

Create a new instance with (50,50,50) points in the (u-v-w) directions.

Reimplemented from vtkPolyDataAlgorithm.

Specify the parametric function to use to generate the tessellation.

Specify the parametric function to use to generate the tessellation.

virtual void vtkParametricFunctionSource::SetUResolution ( int  ) [virtual]

Set/Get the number of subdivisions / tessellations in the u parametric direction. Note that the number of tessellant points in the u direction is the UResolution + 1.

Set/Get the number of subdivisions / tessellations in the u parametric direction. Note that the number of tessellant points in the u direction is the UResolution + 1.

virtual void vtkParametricFunctionSource::SetVResolution ( int  ) [virtual]

Set/Get the number of subdivisions / tessellations in the v parametric direction. Note that the number of tessellant points in the v direction is the VResolution + 1.

Set/Get the number of subdivisions / tessellations in the v parametric direction. Note that the number of tessellant points in the v direction is the VResolution + 1.

virtual void vtkParametricFunctionSource::SetWResolution ( int  ) [virtual]

Set/Get the number of subdivisions / tessellations in the w parametric direction. Note that the number of tessellant points in the w direction is the WResolution + 1.

Set/Get the number of subdivisions / tessellations in the w parametric direction. Note that the number of tessellant points in the w direction is the WResolution + 1.

Set/Get the generation of texture coordinates. This is off by default. Note that this is only applicable to parametric surfaces whose parametric dimension is 2. Note that texturing may fail in some cases.

Set/Get the generation of texture coordinates. This is off by default. Note that this is only applicable to parametric surfaces whose parametric dimension is 2. Note that texturing may fail in some cases.

Set/Get the generation of texture coordinates. This is off by default. Note that this is only applicable to parametric surfaces whose parametric dimension is 2. Note that texturing may fail in some cases.

Set/Get the generation of texture coordinates. This is off by default. Note that this is only applicable to parametric surfaces whose parametric dimension is 2. Note that texturing may fail in some cases.

virtual void vtkParametricFunctionSource::SetScalarMode ( int  ) [virtual]

Get/Set the mode used for the scalar data. The options are: SCALAR_NONE, (default) scalars are not generated. SCALAR_U, the scalar is set to the u-value. SCALAR_V, the scalar is set to the v-value. SCALAR_U0, the scalar is set to 1 if u = (u_max - u_min)/2 = u_avg, 0 otherwise. SCALAR_V0, the scalar is set to 1 if v = (v_max - v_min)/2 = v_avg, 0 otherwise. SCALAR_U0V0, the scalar is set to 1 if u == u_avg, 2 if v == v_avg, 3 if u = u_avg && v = v_avg, 0 otherwise. SCALAR_MODULUS, the scalar is set to (sqrt(u*u+v*v)), this is measured relative to (u_avg,v_avg). SCALAR_PHASE, the scalar is set to (atan2(v,u)) (in degrees, 0 to 360), this is measured relative to (u_avg,v_avg). SCALAR_QUADRANT, the scalar is set to 1, 2, 3 or 4 depending upon the quadrant of the point (u,v). SCALAR_X, the scalar is set to the x-value. SCALAR_Y, the scalar is set to the y-value. SCALAR_Z, the scalar is set to the z-value. SCALAR_DISTANCE, the scalar is set to (sqrt(x*x+y*y+z*z)). I.e. distance from the origin. SCALAR_FUNCTION_DEFINED, the scalar is set to the value returned from EvaluateScalar().

Get/Set the mode used for the scalar data. The options are: SCALAR_NONE, (default) scalars are not generated. SCALAR_U, the scalar is set to the u-value. SCALAR_V, the scalar is set to the v-value. SCALAR_U0, the scalar is set to 1 if u = (u_max - u_min)/2 = u_avg, 0 otherwise. SCALAR_V0, the scalar is set to 1 if v = (v_max - v_min)/2 = v_avg, 0 otherwise. SCALAR_U0V0, the scalar is set to 1 if u == u_avg, 2 if v == v_avg, 3 if u = u_avg && v = v_avg, 0 otherwise. SCALAR_MODULUS, the scalar is set to (sqrt(u*u+v*v)), this is measured relative to (u_avg,v_avg). SCALAR_PHASE, the scalar is set to (atan2(v,u)) (in degrees, 0 to 360), this is measured relative to (u_avg,v_avg). SCALAR_QUADRANT, the scalar is set to 1, 2, 3 or 4 depending upon the quadrant of the point (u,v). SCALAR_X, the scalar is set to the x-value. SCALAR_Y, the scalar is set to the y-value. SCALAR_Z, the scalar is set to the z-value. SCALAR_DISTANCE, the scalar is set to (sqrt(x*x+y*y+z*z)). I.e. distance from the origin. SCALAR_FUNCTION_DEFINED, the scalar is set to the value returned from EvaluateScalar().

Get/Set the mode used for the scalar data. The options are: SCALAR_NONE, (default) scalars are not generated. SCALAR_U, the scalar is set to the u-value. SCALAR_V, the scalar is set to the v-value. SCALAR_U0, the scalar is set to 1 if u = (u_max - u_min)/2 = u_avg, 0 otherwise. SCALAR_V0, the scalar is set to 1 if v = (v_max - v_min)/2 = v_avg, 0 otherwise. SCALAR_U0V0, the scalar is set to 1 if u == u_avg, 2 if v == v_avg, 3 if u = u_avg && v = v_avg, 0 otherwise. SCALAR_MODULUS, the scalar is set to (sqrt(u*u+v*v)), this is measured relative to (u_avg,v_avg). SCALAR_PHASE, the scalar is set to (atan2(v,u)) (in degrees, 0 to 360), this is measured relative to (u_avg,v_avg). SCALAR_QUADRANT, the scalar is set to 1, 2, 3 or 4 depending upon the quadrant of the point (u,v). SCALAR_X, the scalar is set to the x-value. SCALAR_Y, the scalar is set to the y-value. SCALAR_Z, the scalar is set to the z-value. SCALAR_DISTANCE, the scalar is set to (sqrt(x*x+y*y+z*z)). I.e. distance from the origin. SCALAR_FUNCTION_DEFINED, the scalar is set to the value returned from EvaluateScalar().

Definition at line 156 of file vtkParametricFunctionSource.h.

Get/Set the mode used for the scalar data. The options are: SCALAR_NONE, (default) scalars are not generated. SCALAR_U, the scalar is set to the u-value. SCALAR_V, the scalar is set to the v-value. SCALAR_U0, the scalar is set to 1 if u = (u_max - u_min)/2 = u_avg, 0 otherwise. SCALAR_V0, the scalar is set to 1 if v = (v_max - v_min)/2 = v_avg, 0 otherwise. SCALAR_U0V0, the scalar is set to 1 if u == u_avg, 2 if v == v_avg, 3 if u = u_avg && v = v_avg, 0 otherwise. SCALAR_MODULUS, the scalar is set to (sqrt(u*u+v*v)), this is measured relative to (u_avg,v_avg). SCALAR_PHASE, the scalar is set to (atan2(v,u)) (in degrees, 0 to 360), this is measured relative to (u_avg,v_avg). SCALAR_QUADRANT, the scalar is set to 1, 2, 3 or 4 depending upon the quadrant of the point (u,v). SCALAR_X, the scalar is set to the x-value. SCALAR_Y, the scalar is set to the y-value. SCALAR_Z, the scalar is set to the z-value. SCALAR_DISTANCE, the scalar is set to (sqrt(x*x+y*y+z*z)). I.e. distance from the origin. SCALAR_FUNCTION_DEFINED, the scalar is set to the value returned from EvaluateScalar().

Definition at line 157 of file vtkParametricFunctionSource.h.

Get/Set the mode used for the scalar data. The options are: SCALAR_NONE, (default) scalars are not generated. SCALAR_U, the scalar is set to the u-value. SCALAR_V, the scalar is set to the v-value. SCALAR_U0, the scalar is set to 1 if u = (u_max - u_min)/2 = u_avg, 0 otherwise. SCALAR_V0, the scalar is set to 1 if v = (v_max - v_min)/2 = v_avg, 0 otherwise. SCALAR_U0V0, the scalar is set to 1 if u == u_avg, 2 if v == v_avg, 3 if u = u_avg && v = v_avg, 0 otherwise. SCALAR_MODULUS, the scalar is set to (sqrt(u*u+v*v)), this is measured relative to (u_avg,v_avg). SCALAR_PHASE, the scalar is set to (atan2(v,u)) (in degrees, 0 to 360), this is measured relative to (u_avg,v_avg). SCALAR_QUADRANT, the scalar is set to 1, 2, 3 or 4 depending upon the quadrant of the point (u,v). SCALAR_X, the scalar is set to the x-value. SCALAR_Y, the scalar is set to the y-value. SCALAR_Z, the scalar is set to the z-value. SCALAR_DISTANCE, the scalar is set to (sqrt(x*x+y*y+z*z)). I.e. distance from the origin. SCALAR_FUNCTION_DEFINED, the scalar is set to the value returned from EvaluateScalar().

Definition at line 158 of file vtkParametricFunctionSource.h.

Get/Set the mode used for the scalar data. The options are: SCALAR_NONE, (default) scalars are not generated. SCALAR_U, the scalar is set to the u-value. SCALAR_V, the scalar is set to the v-value. SCALAR_U0, the scalar is set to 1 if u = (u_max - u_min)/2 = u_avg, 0 otherwise. SCALAR_V0, the scalar is set to 1 if v = (v_max - v_min)/2 = v_avg, 0 otherwise. SCALAR_U0V0, the scalar is set to 1 if u == u_avg, 2 if v == v_avg, 3 if u = u_avg && v = v_avg, 0 otherwise. SCALAR_MODULUS, the scalar is set to (sqrt(u*u+v*v)), this is measured relative to (u_avg,v_avg). SCALAR_PHASE, the scalar is set to (atan2(v,u)) (in degrees, 0 to 360), this is measured relative to (u_avg,v_avg). SCALAR_QUADRANT, the scalar is set to 1, 2, 3 or 4 depending upon the quadrant of the point (u,v). SCALAR_X, the scalar is set to the x-value. SCALAR_Y, the scalar is set to the y-value. SCALAR_Z, the scalar is set to the z-value. SCALAR_DISTANCE, the scalar is set to (sqrt(x*x+y*y+z*z)). I.e. distance from the origin. SCALAR_FUNCTION_DEFINED, the scalar is set to the value returned from EvaluateScalar().

Definition at line 159 of file vtkParametricFunctionSource.h.

Get/Set the mode used for the scalar data. The options are: SCALAR_NONE, (default) scalars are not generated. SCALAR_U, the scalar is set to the u-value. SCALAR_V, the scalar is set to the v-value. SCALAR_U0, the scalar is set to 1 if u = (u_max - u_min)/2 = u_avg, 0 otherwise. SCALAR_V0, the scalar is set to 1 if v = (v_max - v_min)/2 = v_avg, 0 otherwise. SCALAR_U0V0, the scalar is set to 1 if u == u_avg, 2 if v == v_avg, 3 if u = u_avg && v = v_avg, 0 otherwise. SCALAR_MODULUS, the scalar is set to (sqrt(u*u+v*v)), this is measured relative to (u_avg,v_avg). SCALAR_PHASE, the scalar is set to (atan2(v,u)) (in degrees, 0 to 360), this is measured relative to (u_avg,v_avg). SCALAR_QUADRANT, the scalar is set to 1, 2, 3 or 4 depending upon the quadrant of the point (u,v). SCALAR_X, the scalar is set to the x-value. SCALAR_Y, the scalar is set to the y-value. SCALAR_Z, the scalar is set to the z-value. SCALAR_DISTANCE, the scalar is set to (sqrt(x*x+y*y+z*z)). I.e. distance from the origin. SCALAR_FUNCTION_DEFINED, the scalar is set to the value returned from EvaluateScalar().

Definition at line 160 of file vtkParametricFunctionSource.h.

Get/Set the mode used for the scalar data. The options are: SCALAR_NONE, (default) scalars are not generated. SCALAR_U, the scalar is set to the u-value. SCALAR_V, the scalar is set to the v-value. SCALAR_U0, the scalar is set to 1 if u = (u_max - u_min)/2 = u_avg, 0 otherwise. SCALAR_V0, the scalar is set to 1 if v = (v_max - v_min)/2 = v_avg, 0 otherwise. SCALAR_U0V0, the scalar is set to 1 if u == u_avg, 2 if v == v_avg, 3 if u = u_avg && v = v_avg, 0 otherwise. SCALAR_MODULUS, the scalar is set to (sqrt(u*u+v*v)), this is measured relative to (u_avg,v_avg). SCALAR_PHASE, the scalar is set to (atan2(v,u)) (in degrees, 0 to 360), this is measured relative to (u_avg,v_avg). SCALAR_QUADRANT, the scalar is set to 1, 2, 3 or 4 depending upon the quadrant of the point (u,v). SCALAR_X, the scalar is set to the x-value. SCALAR_Y, the scalar is set to the y-value. SCALAR_Z, the scalar is set to the z-value. SCALAR_DISTANCE, the scalar is set to (sqrt(x*x+y*y+z*z)). I.e. distance from the origin. SCALAR_FUNCTION_DEFINED, the scalar is set to the value returned from EvaluateScalar().

Definition at line 161 of file vtkParametricFunctionSource.h.

Get/Set the mode used for the scalar data. The options are: SCALAR_NONE, (default) scalars are not generated. SCALAR_U, the scalar is set to the u-value. SCALAR_V, the scalar is set to the v-value. SCALAR_U0, the scalar is set to 1 if u = (u_max - u_min)/2 = u_avg, 0 otherwise. SCALAR_V0, the scalar is set to 1 if v = (v_max - v_min)/2 = v_avg, 0 otherwise. SCALAR_U0V0, the scalar is set to 1 if u == u_avg, 2 if v == v_avg, 3 if u = u_avg && v = v_avg, 0 otherwise. SCALAR_MODULUS, the scalar is set to (sqrt(u*u+v*v)), this is measured relative to (u_avg,v_avg). SCALAR_PHASE, the scalar is set to (atan2(v,u)) (in degrees, 0 to 360), this is measured relative to (u_avg,v_avg). SCALAR_QUADRANT, the scalar is set to 1, 2, 3 or 4 depending upon the quadrant of the point (u,v). SCALAR_X, the scalar is set to the x-value. SCALAR_Y, the scalar is set to the y-value. SCALAR_Z, the scalar is set to the z-value. SCALAR_DISTANCE, the scalar is set to (sqrt(x*x+y*y+z*z)). I.e. distance from the origin. SCALAR_FUNCTION_DEFINED, the scalar is set to the value returned from EvaluateScalar().

Definition at line 162 of file vtkParametricFunctionSource.h.

Get/Set the mode used for the scalar data. The options are: SCALAR_NONE, (default) scalars are not generated. SCALAR_U, the scalar is set to the u-value. SCALAR_V, the scalar is set to the v-value. SCALAR_U0, the scalar is set to 1 if u = (u_max - u_min)/2 = u_avg, 0 otherwise. SCALAR_V0, the scalar is set to 1 if v = (v_max - v_min)/2 = v_avg, 0 otherwise. SCALAR_U0V0, the scalar is set to 1 if u == u_avg, 2 if v == v_avg, 3 if u = u_avg && v = v_avg, 0 otherwise. SCALAR_MODULUS, the scalar is set to (sqrt(u*u+v*v)), this is measured relative to (u_avg,v_avg). SCALAR_PHASE, the scalar is set to (atan2(v,u)) (in degrees, 0 to 360), this is measured relative to (u_avg,v_avg). SCALAR_QUADRANT, the scalar is set to 1, 2, 3 or 4 depending upon the quadrant of the point (u,v). SCALAR_X, the scalar is set to the x-value. SCALAR_Y, the scalar is set to the y-value. SCALAR_Z, the scalar is set to the z-value. SCALAR_DISTANCE, the scalar is set to (sqrt(x*x+y*y+z*z)). I.e. distance from the origin. SCALAR_FUNCTION_DEFINED, the scalar is set to the value returned from EvaluateScalar().

Definition at line 163 of file vtkParametricFunctionSource.h.

Get/Set the mode used for the scalar data. The options are: SCALAR_NONE, (default) scalars are not generated. SCALAR_U, the scalar is set to the u-value. SCALAR_V, the scalar is set to the v-value. SCALAR_U0, the scalar is set to 1 if u = (u_max - u_min)/2 = u_avg, 0 otherwise. SCALAR_V0, the scalar is set to 1 if v = (v_max - v_min)/2 = v_avg, 0 otherwise. SCALAR_U0V0, the scalar is set to 1 if u == u_avg, 2 if v == v_avg, 3 if u = u_avg && v = v_avg, 0 otherwise. SCALAR_MODULUS, the scalar is set to (sqrt(u*u+v*v)), this is measured relative to (u_avg,v_avg). SCALAR_PHASE, the scalar is set to (atan2(v,u)) (in degrees, 0 to 360), this is measured relative to (u_avg,v_avg). SCALAR_QUADRANT, the scalar is set to 1, 2, 3 or 4 depending upon the quadrant of the point (u,v). SCALAR_X, the scalar is set to the x-value. SCALAR_Y, the scalar is set to the y-value. SCALAR_Z, the scalar is set to the z-value. SCALAR_DISTANCE, the scalar is set to (sqrt(x*x+y*y+z*z)). I.e. distance from the origin. SCALAR_FUNCTION_DEFINED, the scalar is set to the value returned from EvaluateScalar().

Definition at line 164 of file vtkParametricFunctionSource.h.

Get/Set the mode used for the scalar data. The options are: SCALAR_NONE, (default) scalars are not generated. SCALAR_U, the scalar is set to the u-value. SCALAR_V, the scalar is set to the v-value. SCALAR_U0, the scalar is set to 1 if u = (u_max - u_min)/2 = u_avg, 0 otherwise. SCALAR_V0, the scalar is set to 1 if v = (v_max - v_min)/2 = v_avg, 0 otherwise. SCALAR_U0V0, the scalar is set to 1 if u == u_avg, 2 if v == v_avg, 3 if u = u_avg && v = v_avg, 0 otherwise. SCALAR_MODULUS, the scalar is set to (sqrt(u*u+v*v)), this is measured relative to (u_avg,v_avg). SCALAR_PHASE, the scalar is set to (atan2(v,u)) (in degrees, 0 to 360), this is measured relative to (u_avg,v_avg). SCALAR_QUADRANT, the scalar is set to 1, 2, 3 or 4 depending upon the quadrant of the point (u,v). SCALAR_X, the scalar is set to the x-value. SCALAR_Y, the scalar is set to the y-value. SCALAR_Z, the scalar is set to the z-value. SCALAR_DISTANCE, the scalar is set to (sqrt(x*x+y*y+z*z)). I.e. distance from the origin. SCALAR_FUNCTION_DEFINED, the scalar is set to the value returned from EvaluateScalar().

Definition at line 165 of file vtkParametricFunctionSource.h.

Get/Set the mode used for the scalar data. The options are: SCALAR_NONE, (default) scalars are not generated. SCALAR_U, the scalar is set to the u-value. SCALAR_V, the scalar is set to the v-value. SCALAR_U0, the scalar is set to 1 if u = (u_max - u_min)/2 = u_avg, 0 otherwise. SCALAR_V0, the scalar is set to 1 if v = (v_max - v_min)/2 = v_avg, 0 otherwise. SCALAR_U0V0, the scalar is set to 1 if u == u_avg, 2 if v == v_avg, 3 if u = u_avg && v = v_avg, 0 otherwise. SCALAR_MODULUS, the scalar is set to (sqrt(u*u+v*v)), this is measured relative to (u_avg,v_avg). SCALAR_PHASE, the scalar is set to (atan2(v,u)) (in degrees, 0 to 360), this is measured relative to (u_avg,v_avg). SCALAR_QUADRANT, the scalar is set to 1, 2, 3 or 4 depending upon the quadrant of the point (u,v). SCALAR_X, the scalar is set to the x-value. SCALAR_Y, the scalar is set to the y-value. SCALAR_Z, the scalar is set to the z-value. SCALAR_DISTANCE, the scalar is set to (sqrt(x*x+y*y+z*z)). I.e. distance from the origin. SCALAR_FUNCTION_DEFINED, the scalar is set to the value returned from EvaluateScalar().

Definition at line 166 of file vtkParametricFunctionSource.h.

Get/Set the mode used for the scalar data. The options are: SCALAR_NONE, (default) scalars are not generated. SCALAR_U, the scalar is set to the u-value. SCALAR_V, the scalar is set to the v-value. SCALAR_U0, the scalar is set to 1 if u = (u_max - u_min)/2 = u_avg, 0 otherwise. SCALAR_V0, the scalar is set to 1 if v = (v_max - v_min)/2 = v_avg, 0 otherwise. SCALAR_U0V0, the scalar is set to 1 if u == u_avg, 2 if v == v_avg, 3 if u = u_avg && v = v_avg, 0 otherwise. SCALAR_MODULUS, the scalar is set to (sqrt(u*u+v*v)), this is measured relative to (u_avg,v_avg). SCALAR_PHASE, the scalar is set to (atan2(v,u)) (in degrees, 0 to 360), this is measured relative to (u_avg,v_avg). SCALAR_QUADRANT, the scalar is set to 1, 2, 3 or 4 depending upon the quadrant of the point (u,v). SCALAR_X, the scalar is set to the x-value. SCALAR_Y, the scalar is set to the y-value. SCALAR_Z, the scalar is set to the z-value. SCALAR_DISTANCE, the scalar is set to (sqrt(x*x+y*y+z*z)). I.e. distance from the origin. SCALAR_FUNCTION_DEFINED, the scalar is set to the value returned from EvaluateScalar().

Definition at line 167 of file vtkParametricFunctionSource.h.

Get/Set the mode used for the scalar data. The options are: SCALAR_NONE, (default) scalars are not generated. SCALAR_U, the scalar is set to the u-value. SCALAR_V, the scalar is set to the v-value. SCALAR_U0, the scalar is set to 1 if u = (u_max - u_min)/2 = u_avg, 0 otherwise. SCALAR_V0, the scalar is set to 1 if v = (v_max - v_min)/2 = v_avg, 0 otherwise. SCALAR_U0V0, the scalar is set to 1 if u == u_avg, 2 if v == v_avg, 3 if u = u_avg && v = v_avg, 0 otherwise. SCALAR_MODULUS, the scalar is set to (sqrt(u*u+v*v)), this is measured relative to (u_avg,v_avg). SCALAR_PHASE, the scalar is set to (atan2(v,u)) (in degrees, 0 to 360), this is measured relative to (u_avg,v_avg). SCALAR_QUADRANT, the scalar is set to 1, 2, 3 or 4 depending upon the quadrant of the point (u,v). SCALAR_X, the scalar is set to the x-value. SCALAR_Y, the scalar is set to the y-value. SCALAR_Z, the scalar is set to the z-value. SCALAR_DISTANCE, the scalar is set to (sqrt(x*x+y*y+z*z)). I.e. distance from the origin. SCALAR_FUNCTION_DEFINED, the scalar is set to the value returned from EvaluateScalar().

Definition at line 168 of file vtkParametricFunctionSource.h.

Get/Set the mode used for the scalar data. The options are: SCALAR_NONE, (default) scalars are not generated. SCALAR_U, the scalar is set to the u-value. SCALAR_V, the scalar is set to the v-value. SCALAR_U0, the scalar is set to 1 if u = (u_max - u_min)/2 = u_avg, 0 otherwise. SCALAR_V0, the scalar is set to 1 if v = (v_max - v_min)/2 = v_avg, 0 otherwise. SCALAR_U0V0, the scalar is set to 1 if u == u_avg, 2 if v == v_avg, 3 if u = u_avg && v = v_avg, 0 otherwise. SCALAR_MODULUS, the scalar is set to (sqrt(u*u+v*v)), this is measured relative to (u_avg,v_avg). SCALAR_PHASE, the scalar is set to (atan2(v,u)) (in degrees, 0 to 360), this is measured relative to (u_avg,v_avg). SCALAR_QUADRANT, the scalar is set to 1, 2, 3 or 4 depending upon the quadrant of the point (u,v). SCALAR_X, the scalar is set to the x-value. SCALAR_Y, the scalar is set to the y-value. SCALAR_Z, the scalar is set to the z-value. SCALAR_DISTANCE, the scalar is set to (sqrt(x*x+y*y+z*z)). I.e. distance from the origin. SCALAR_FUNCTION_DEFINED, the scalar is set to the value returned from EvaluateScalar().

Definition at line 169 of file vtkParametricFunctionSource.h.

unsigned long vtkParametricFunctionSource::GetMTime ( ) [virtual]

Return the MTime also considering the parametric function.

Reimplemented from vtkObject.

int vtkParametricFunctionSource::RequestData ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

This is called by the superclass. This is the method you should override.

Reimplemented from vtkPolyDataAlgorithm.


Member Data Documentation

Definition at line 184 of file vtkParametricFunctionSource.h.

Definition at line 186 of file vtkParametricFunctionSource.h.

Definition at line 187 of file vtkParametricFunctionSource.h.

Definition at line 188 of file vtkParametricFunctionSource.h.

Definition at line 189 of file vtkParametricFunctionSource.h.

Definition at line 190 of file vtkParametricFunctionSource.h.


The documentation for this class was generated from the following file: