VTK
|
tessellate parametric functions More...
#include <vtkParametricFunctionSource.h>
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.
Definition at line 58 of file vtkParametricFunctionSource.h.
Reimplemented from vtkPolyDataAlgorithm.
Definition at line 61 of file vtkParametricFunctionSource.h.
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().
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.
vtkParametricFunctionSource::vtkParametricFunctionSource | ( | ) | [protected] |
virtual vtkParametricFunctionSource::~vtkParametricFunctionSource | ( | ) | [protected, virtual] |
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.
static vtkParametricFunctionSource* vtkParametricFunctionSource::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
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.
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 156 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 157 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 158 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 159 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 160 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 161 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 162 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 163 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 164 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 165 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 166 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 167 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 168 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 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.
Definition at line 184 of file vtkParametricFunctionSource.h.
int vtkParametricFunctionSource::UResolution [protected] |
Definition at line 186 of file vtkParametricFunctionSource.h.
int vtkParametricFunctionSource::VResolution [protected] |
Definition at line 187 of file vtkParametricFunctionSource.h.
int vtkParametricFunctionSource::WResolution [protected] |
Definition at line 188 of file vtkParametricFunctionSource.h.
Definition at line 189 of file vtkParametricFunctionSource.h.
int vtkParametricFunctionSource::ScalarMode [protected] |
Definition at line 190 of file vtkParametricFunctionSource.h.