GLG Toolkit, JavaScript Library  Version 4.6
GlgMatrixData Class Reference

Contains matrix data used by GetMatrixData and SetMatrixData. More...

Detailed Description

Contains matrix data used by GetMatrixData and SetMatrixData.

Public Attributes

Float64Array matrix
 4x4 array of matrix coefficients. More...
 
GlgXformType type
 Matrix type, may have the following values: More...
 

Public Member Functions

GlgMatrixData CreateGlgMatrixData (GlgXformType type, Float64Array array)
 Constructor. More...
 

Static Public Member Functions

static void ReleaseToCache (GlgMatrixData obj)
 Returns the object to the internal cache for reuse. More...
 

Member Data Documentation

◆ matrix

Float64Array matrix

4x4 array of matrix coefficients.

◆ type

Matrix type, may have the following values:

Member Function Documentation

◆ CreateGlgMatrixData()

GlgMatrixData CreateGlgMatrixData ( GlgXformType  type,
Float64Array  array 
)

Constructor.

Creates a matrix data object that can be used as a parameter of the SetMatrixData method.

The static method is invoked on the GLG Toolkit handle obtained via a 'new GlgToolkit()' call at the application start-up.

Parameters
typeA type of the matrix (one of constants defined in the GlgXformType enum).
arrayAn array of 16 (4x4) matrix coefficients.
Returns
A new GlgMatrixData object.

◆ ReleaseToCache()

static void ReleaseToCache ( GlgMatrixData  obj)
static

Returns the object to the internal cache for reuse.

The object should not be accessed after it is released to the cache.

The static method is invoked on the GLG Toolkit handle obtained via a 'new GlgToolkit()' call at the application start-up.

Parameters
objThe object to release.