Main Page | Compound List | Compound Members

VUEFunction Class Reference


Your Ad Here


List of all members.

Public Member Functions

boolean SetEvaluationCallback (function fptrPythonEvaluationCallback=None)
 Sets a callback method that will be called each time the function must be evaluated.
boolean SetTextureMap (str filename, ProjectionType projType=Smart, tuple_of_floats_x_y_z origin=tuple_of_floats_x_y_z(0, 0, 0), int offsetX=0, int offsetY=0, boolean mirrorX=false, boolean mirrorY=false, InterpolationType interType=Bilinear)
 Sets the function to a texture map.

Member Function Documentation

boolean SetEvaluationCallback function  fptrPythonEvaluationCallback = None  ) 
 

Sets a callback method that will be called each time the function must be evaluated.

Parameters:
fptrPythonEvaluationCallback the python method that will be called each time the function must be evaluated.
Callback description:
The Python callback should accept 7 floats as arguments, and return a float in the range of 0 through 1. Values outside this range will be clamped. The callback should look like this:
float fptrPythonEvaluationCallback(float fCurrentValue, float x_position, float y_position, float z_position, float x_normal, float y_normal, float z_normal);
where:
fCurrentValue is the current value as computed by the function. This value can used by the callback to generate the final value.
x_position is the x coordinate of the evaluation point.
y_position is the y coordinate of the evaluation point.
z_position is the z coordinate of the evaluation point.
x_normal is the x coordinate of the normal vector at the evaluation point. The normal vector is normalized.
y_normal is the y coordinate of the normal vector at the evaluation point. The normal vector is normalized.
z_normal is the z coordinate of the normal vector at the evaluation point. The normal vector is normalized.
Remarks:
To remove the callback, simply call this method with no parameter.
Returns:
True if the callback was succesfully set (or removed), false otherwise.

boolean SetTextureMap str  filename,
ProjectionType  projType = Smart,
tuple_of_floats_x_y_z  origin = tuple_of_floats_x_y_z(0, 0, 0),
int  offsetX = 0,
int  offsetY = 0,
boolean  mirrorX = false,
boolean  mirrorY = false,
InterpolationType  interType = Bilinear
 

Sets the function to a texture map.

Parameters:
filename The name of the file containing the image to be used as a texture map
projType The type of projection. It is Smart by default.
origin Origin of the projection.
offsetX number of pixels by which the image is to be offset, on the X axis
offsetY number of pixels by which the image is to be offset, on the Y axis
mirrorX True means that the image is flipped horizontally when it is replicated
mirrorY True means that the image is flipped vertically when it is replicated
interType The type of interpolation. Bilinear by default.
Returns:
True if the image could be loaded and used as a texture map


Generated using doxygen on Wed Nov 29 17:50:19 2006.
©2003 e-on software, inc. All rights reserved.

Return to Vue Index


Your Ad Here