Skip to content
RII-Mango edited this page Feb 24, 2016 · 4 revisions

gifti : Object

gifti

Kind: global variable

gifti.DataArray : function

Kind: static class of gifti
Properties

Name Type
attributes object
metadata object
transforms Array.<Transform>
data Float32Array | Uint8Array | Int32Array

new gifti.DataArray()

The DataArray constructor.

dataArray.isPointSet() ⇒ boolean

Returns true if this data array represents a point set.

Kind: instance method of DataArray

dataArray.isTriangles() ⇒ boolean

Returns true if this data array represents triangle indices.

Kind: instance method of DataArray

dataArray.isNormals() ⇒ boolean

Returns true if this data array represents normals.

Kind: instance method of DataArray

dataArray.getDimensions() ⇒ number

Returns the number of dimensions of this data array.

Kind: instance method of DataArray

dataArray.getNumElements(dimIndex) ⇒ number

Returns the number of elements in the specified dimension.

Kind: instance method of DataArray

Param Type
dimIndex number

dataArray.isScalar() ⇒ boolean

Returns true if this data array represents scalar data.

Kind: instance method of DataArray

dataArray.isTriple() ⇒ boolean

Returns true if this data array is in triples.

Kind: instance method of DataArray

dataArray.isQuad() ⇒ boolean

Returns true if this data array is in quads.

Kind: instance method of DataArray

dataArray.isAscii() ⇒ boolean

Returns true if this data array is encoded in ASCII format.

Kind: instance method of DataArray

dataArray.isBase64Binary() ⇒ boolean

Returns true if this data array is encoded in Base64 format.

Kind: instance method of DataArray

dataArray.isGzipBase64Binary() ⇒ boolean

Returns true if this data array is encoded in GZIP-Base64 format.

Kind: instance method of DataArray

dataArray.isBase64Encoded() ⇒ boolean

Returns true if this data array uses Base64 encoding.

Kind: instance method of DataArray

dataArray.isFloat32() ⇒ boolean

Returns true if the datatype is 32-bit floating point.

Kind: instance method of DataArray

dataArray.isInt32() ⇒ boolean

Returns true if the datatype is 32-bit signed integer.

Kind: instance method of DataArray

dataArray.isUnsignedInt8() ⇒ boolean

Returns true if the datatype is 8-bit unsigned integer.

Kind: instance method of DataArray

dataArray.getData([glSafe]) ⇒ Float32Array | Uint8Array | Uint16Array | Int32Array

Returns the data as a typed array (either Float32Array, Uint8Array, Uint16Array or Int32Array)

Kind: instance method of DataArray

Param Type Description
[glSafe] boolean true to convert Int32Array to Uint16Array

gifti.GIFTI : function

Kind: static class of gifti
Properties

Name Type
attributes object
metadata object
dataArrays Array.<DataArray>

new gifti.GIFTI()

The GIFTI constructor.

giftI.getPointsDataArray() ⇒ DataArray

Returns the point set data array.

Kind: instance method of GIFTI

giftI.getTrianglesDataArray() ⇒ DataArray

Returns the triangle indices data array.

Kind: instance method of GIFTI

giftI.getNormalsDataArray() ⇒ DataArray

Returns the normals data array.

Kind: instance method of GIFTI

giftI.getNumPoints() ⇒ number

Returns the number of points.

Kind: instance method of GIFTI

giftI.getNumTriangles() ⇒ number

Returns the number of triangles.

Kind: instance method of GIFTI

gifti.Transform : function

Kind: static class of gifti
Properties

Name Type
dataSpace string
transformedSpace string
matrixData Array.<number>

new gifti.Transform()

The Transform constructor.

gifti.parse(xmlStr) ⇒ GIFTI

Parses GIFTI data.

Kind: static method of gifti

Param Type
xmlStr string
Clone this wiki locally