![]() |
![]() |
![]() |
![]() |
DefaultXform
Synopsis
define the Graphics Display Kit transformation
group+OPort GDxform_templ {
float+opt+read mat<animate=1>[4][4];
float+opt xlate<animate=1>[3];
float+opt center<animate=1>[3];
float+nonotify+opt ocenter<NEvisible=0>[3];
float+nonotify+opt dcenter<NEvisible=0>[3];
int rspace<NEvisible=0>;
};GDxform_templ GDxform<NEsmallPixmapName="xform.bmx",
cxx_name="GDXxform">;GDxform DefaultXform {
mat<animate=1>[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<animate=1>[3] = {0.0, 0.0, 0.0};
center<animate=1>[3] = {0.0, 0.0, 0.0};
ocenter[3] = {0.0, 0.0, 0.0};
dcenter[3] = {0.0, 0.0, 0.0};
rspace = GD_DEFAULT_RSPACE;
};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.ocenter - old center, used to help calculate dcenter.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
![]() |
![]() |
![]() |
![]() |