DefaultXform
Synopsis
define the Graphics Display Kit transformation
group+OPort_ GDxform_templ
{
float+opt _mat[4][4];
float+opt _xlate[3];
float+opt _center[3];
float+nonotify+opt ocenter[3];
float+nonotify+opt dcenter[3];
};
GDxform_templ_ GDxform<NE
smallPixmapName="xform.bmx">};
GDxform _DefaultXform
{
mat[4][4] = {{1.0, 0.0, 0.0, 0.0},
{0.0, 1.0, 0.0, 0.0},
{0.0, 0.0, 1.0, 0.0},
{0.0, 0.0, 0.0, 1.0}};
xlate[3] = {0.0, 0.0, 0.0};
center[3] = {0.0, 0.0, 0.0};
ocenter[3] = {0.0, 0.0, 0.0};
dcenter[3] = {0.0, 0.0, 0.0};
};Description
These templates define a Graphics Display Kit transformation. GDxform_templ and GDxform define an instanceable version without default values. DefaultXform defines an instanceable version with default values.
You can connect a DefaultXform to an object, light, or camera.
Subobjects
A position vector. This vector defines the current position. It is added to the transformation matrix. It is kept separate so a fixed center position can be defined.
The next two variables are GD internal objects which generally should not be modified by a user application.
dcenter - delta center, used to keep the object from moving in the view when the object's center is changed.
Example
Libraries.Graphics_Display.Objects.GroupObject
File
See also related modules