Class vxlTransforms

Encapsulates the matrices required to perform 3D rendering

Constructor

vxlTransforms(p_view)
This is a class that interfaces between the current camera and the rendering engine.It contains the matrices used by the current camera and that will be used for performing rendering calculations.This class also keeps track of the push-pop operations on the model-view matrix stack.This is required to combine local and global transformations.
Author: Diego Cantor.

Parameters:

vxlView p_view

the view that this object will refer to.

Methods

.calculateCamera()
Calculates the current camera matrix from the current model-view matrix
.calculateModelView()
Calculates the current model-view transform.This reference is updated whenever the active camera changes.
.calculateNormal()
Calculates the normal matrix corresponding to the current Model-View matrix
.calculateProjection()
Calculates the projection matrix given the current camera.The projection may be orthographic or perspective
.calculateProjectionModelView()
Calculates the projection-model-view matrix
.pop()
Retrieves the last Model-View transformation in the matrix stack.This operation is called by vxlActor.updateMatrixStack
.push()
Saves the current Model-View matrix in the stack. Thisoperation is called by vxlActor.updateMatrixStack

See:

vxlActor#updateMatrixStack
.update()
Calculate the transforms for the current view.renderer