|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||
See:
Description
| Class Summary | |
|---|---|
| Rotate | Rotate is a Transformer that stores the angle and rotate values
required to perform the effective OpenGL rotation in the
ModelView Matrix. |
| Scale | Scale is a Transformer that stores the scaling factor
required to perform the effective OpenGL scaling in the
ModelView Matrix. |
| Transform | A Transform stores a sequence of Transformers, that are
of concrete type Rotate, Scale, Translate. |
| Translate | Translate is a Transformer that stores the offset
required to perform the effective OpenGL translation in the
ModelView Matrix. |
Provides management of OpenGL ModelView Matrix for objects transformations.
This package introduces Transformers that allow computing transformations
such as Rotate, Translate, and Scale.
A Transformer must be instanciated with its transformation values (either scale,
translation, or rotation) and provides an execute(GL) method that a
Drawable calls just before rendering itself with
Drawable.draw(GL,GLU,Camera).
Complex transformation may be computed by applying a sequence of
Transformers with a Transform.
Although a Transform may be considered of type Transformer since it provides
the execute() method, it does not implement the Transformer interface.
Indeed, a Transform load the identity matrix before applying the sequence
of Transformer which is not suitable for a Transformer that is an element
in a sequence.
|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||