Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

vtkParametricFunctionSource Class Reference

#include <vtkParametricFunctionSource.h>

Inheritance diagram for vtkParametricFunctionSource:

Inheritance graph
[legend]
Collaboration diagram for vtkParametricFunctionSource:

Collaboration graph
[legend]
List of all members.

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.maclean@cas.edu.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 57 of file vtkParametricFunctionSource.h.
virtual void SetParametricFunction (vtkParametricFunction *)
virtual vtkParametricFunctionGetParametricFunction ()
static vtkParametricFunctionSourceNew ()

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 const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
unsigned long GetMTime ()
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 vtkParametricFunctionSourceSafeDownCast (vtkObject *o)

Protected Member Functions

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

Protected Attributes

vtkParametricFunctionParametricFunction
int UResolution
int VResolution
int WResolution
int GenerateTextureCoordinates
int ScalarMode


Member Typedef Documentation

typedef vtkPolyDataAlgorithm vtkParametricFunctionSource::Superclass
 

Reimplemented from vtkPolyDataAlgorithm.

Definition at line 60 of file vtkParametricFunctionSource.h.


Member Enumeration Documentation

enum vtkParametricFunctionSource::SCALAR_MODE
 

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 126 of file vtkParametricFunctionSource.h.


Constructor & Destructor Documentation

vtkParametricFunctionSource::vtkParametricFunctionSource  )  [protected]
 

virtual vtkParametricFunctionSource::~vtkParametricFunctionSource  )  [protected, virtual]
 


Member Function Documentation

virtual const char* vtkParametricFunctionSource::GetClassName  )  [virtual]
 

Reimplemented from vtkPolyDataAlgorithm.

static int vtkParametricFunctionSource::IsTypeOf const char *  type  )  [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 vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkPolyDataAlgorithm.

virtual int vtkParametricFunctionSource::IsA const char *  type  )  [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 vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkPolyDataAlgorithm.

static vtkParametricFunctionSource* vtkParametricFunctionSource::SafeDownCast vtkObject o  )  [static]
 

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.

static vtkParametricFunctionSource* vtkParametricFunctionSource::New  )  [static]
 

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

Reimplemented from vtkPolyDataAlgorithm.

virtual void vtkParametricFunctionSource::SetParametricFunction vtkParametricFunction  )  [virtual]
 

Specify the parametric function to use to generate the tessellation.

virtual vtkParametricFunction* vtkParametricFunctionSource::GetParametricFunction  )  [virtual]
 

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.

virtual int vtkParametricFunctionSource::GetUResolution  )  [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.

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.

virtual int vtkParametricFunctionSource::GetVResolution  )  [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.

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.

virtual int vtkParametricFunctionSource::GetWResolution  )  [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.

virtual void vtkParametricFunctionSource::GenerateTextureCoordinatesOn  )  [virtual]
 

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::GenerateTextureCoordinatesOff  )  [virtual]
 

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::SetGenerateTextureCoordinates int   )  [virtual]
 

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 int vtkParametricFunctionSource::GetGenerateTextureCoordinates  )  [virtual]
 

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().

virtual int vtkParametricFunctionSource::GetScalarMode  )  [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().

void vtkParametricFunctionSource::SetScalarModeToNone void   )  [inline]
 

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 155 of file vtkParametricFunctionSource.h.

void vtkParametricFunctionSource::SetScalarModeToU void   )  [inline]
 

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.

void vtkParametricFunctionSource::SetScalarModeToV void   )  [inline]
 

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.

void vtkParametricFunctionSource::SetScalarModeToU0 void   )  [inline]
 

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.

void vtkParametricFunctionSource::SetScalarModeToV0 void   )  [inline]
 

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.

void vtkParametricFunctionSource::SetScalarModeToU0V0 void   )  [inline]
 

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.

void vtkParametricFunctionSource::SetScalarModeToModulus void   )  [inline]
 

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.

void vtkParametricFunctionSource::SetScalarModeToPhase void   )  [inline]
 

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.

void vtkParametricFunctionSource::SetScalarModeToQuadrant void   )  [inline]
 

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.

void vtkParametricFunctionSource::SetScalarModeToX void   )  [inline]
 

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.

void vtkParametricFunctionSource::SetScalarModeToY void   )  [inline]
 

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.

void vtkParametricFunctionSource::SetScalarModeToZ void   )  [inline]
 

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.

void vtkParametricFunctionSource::SetScalarModeToDistance void   )  [inline]
 

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.

void vtkParametricFunctionSource::SetScalarModeToFunctionDefined void   )  [inline]
 

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.

unsigned long vtkParametricFunctionSource::GetMTime  )  [virtual]
 

Return the MTime also considering the parametric function.

Reimplemented from vtkObject.

int vtkParametricFunctionSource::RequestData vtkInformation info,
vtkInformationVector **  input,
vtkInformationVector output
[protected, virtual]
 

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

Reimplemented from vtkPolyDataAlgorithm.


Member Data Documentation

vtkParametricFunction* vtkParametricFunctionSource::ParametricFunction [protected]
 

Definition at line 183 of file vtkParametricFunctionSource.h.

int vtkParametricFunctionSource::UResolution [protected]
 

Definition at line 185 of file vtkParametricFunctionSource.h.

int vtkParametricFunctionSource::VResolution [protected]
 

Definition at line 186 of file vtkParametricFunctionSource.h.

int vtkParametricFunctionSource::WResolution [protected]
 

Definition at line 187 of file vtkParametricFunctionSource.h.

int vtkParametricFunctionSource::GenerateTextureCoordinates [protected]
 

Definition at line 188 of file vtkParametricFunctionSource.h.

int vtkParametricFunctionSource::ScalarMode [protected]
 

Definition at line 189 of file vtkParametricFunctionSource.h.


The documentation for this class was generated from the following file:
Generated on Tue Jan 22 00:05:48 2008 for VTK by  doxygen 1.4.3-20050530