GINO Graphics Suite - GINO v9.0  

gSetTransform

Syntax

[C/C++:]
void gSetTransform(int sw);
void gSetTransform2D(GMAT2D a2);
void gSetTransform3D(GMAT3D a3);
[F90:]
subroutine gSetTransform(sw)
subroutine gSetTransform2D(a2)
subroutine gSetTransform3D(a3)
integer, intent(in) :: sw
real, intent(in) :: a2(6),a3(16)

Arguments

sw
Transformation switch

= GRESET, Initialize the current modelling transformation, initialize the current viewing transformation, initialize the viewing parameters (see gInitView()) and switch transforming off
= GOFF, Switch transforming off
= GON, Switch transforming on
= GINIT, Initialize the current modelling transformation and switch transforming on

a2,a3
2D or 3D transformation matrix

Description

The gSetTransform set of routines set the current modelling transformation and/or switch transforming on and off.

The routine gSetTransform() is used to either initialize the modelling transformation matrix (and the viewing transformation matrix if GRESET is used) to unity and/or switch transforming on or off without affecting the current modelling transformation matrix.

The routines gSetTransform2D(), gSetTransform3D() set the current modelling transformation according to the supplied 2D or 3D matrix and switches transforming on. The supplied matrix can either have been saved from a previous call to gGetTransform(), or composed using the gBuildMatrix() or gCombineMatrix() routines. In the case of gSetTransform2D() the remaining ten 3-D components of the complete transformation matrix are reinitialized.

See Also

gSetTransform Usage
gSetTransform2D Usage
gBuildMatrix
gCombineMatrix
gGetTransform
gInitView