Home Reference Source
public class | source

JointPrimitive

Extends:

GLBoostObjectGeometry → JointPrimitive

Constructor Summary

Public Constructor
public

constructor(glBoostContext: *, length: *, lineCount: *)

Member Summary

Public Members
public set

color: *

public get

color: *

public set
public set

width: *

public get

width: *

public set
public get
public set
public get
Private Members
private

_color: *

private

_colors: *[]

private

_mesh: *

private
private
private
private

Method Summary

Public Methods
public

update()

Private Methods
private

Inherited Summary

From class GLBoostObject
public static
private static
private static
public get
public get
public get

Return the simple class-specific number.

public get
public get
public get
public get
public get
public get
public set
private
private
private
private
private
private
private
private
private
private
public
public
public
public

Return instance name.

public
private

_copy(instance: *)

private
From class Geometry
public get

AABB: *

public get
public get
public set
public get

rawAABB: *

private

_AABB: *

private
private
private
private
private
private

_materials: *[]

private
private
private

_vboObj: {}

private
private
private
public

draw(data: *)

public
public

getExtraDataForShader(name: *): *

public
public

getTriangleCount(mesh: *): *

public
public

isIndexed(): *

public

isTransparent(mesh: *): *

public

merge(geometrys: *)

public

mergeHarder(geometrys: *)

public

mergeHarderInner(geometry: *, typedArrayDic: *, isFirst: *)

take no thought geometry's materials

public

mergeInner(geometry: *, typedArrayDic: *, isFirst: *)

public

prepareGLSLProgram(expression: *, material: *, existCamera_f: *, lights: *, shaderClass: *, argShaderInstance: *): *

public

prepareToRender(expression: *, existCamera_f: *, lights: *, meshMaterial: *, mesh: *, shaderClass: *, argMaterials: *): *

public

rayCast(origVec3: *, dirVec3: *, isFrontFacePickable: *, isBackFacePickable: *): undefined[]

public

setExtraDataForShader(name: *, value: *)

public

setUpDisableAllVertexAttribArrays(gl: *, glslProgram: *)

public

setUpDisableVertexAttribArrays(gl: *, glslProgram: *, allVertexAttribs: *)

public

setUpEnableVertexAttribArrays(gl: *, glslProgram: *, allVertexAttribs: *)

public

setUpVertexAttribs(gl: *, glslProgram: *, allVertexAttribs: *)

public

setVerticesData(vertices: *, indicesArray: *, primitiveType: *, performanceHint: *)

public

updateVerticesData(vertices: *, skipUpdateAABB: *): boolean

private

_allVertexAttribs(vertices: *): *

return all vertex attribute name list

private

_calcArenbergInverseMatrices(primitiveType: *)

private

_calcArenbergMatrixFor3Vertices(vertexIndices: *, i: *, pos0IndexBase: *, pos1IndexBase: *, pos2IndexBase: *, incrementNum: *): number

private

_calcBaryCentricCoord(vertexNum: *, positionElementNumPerVertex: *)

private

_calcTangent(vertexNum: *, positionElementNumPerVertex: *, texcoordElementNumPerVertex: *, primitiveType: *)

private

_calcTangentFor3Vertices(vertexIndices: *, i: *, pos0IndexBase: *, pos1IndexBase: *, pos2IndexBase: *, uv0IndexBase: *, uv1IndexBase: *, uv2IndexBase: *, incrementNum: *)

private

_calcTangentPerVertex(pos0Vec3: *, pos1Vec3: *, pos2Vec3: *, uv0Vec2: *, uv1Vec2: *, uv2Vec2: *): *

private

_checkAndSetVertexComponentNumber(allVertexAttribs: *)

private

_createShaderInstance(glBoostContext: *, shaderClass: *): *

private
private
private

_getVAO(): *

private

_rayCastInner(origVec3: *, dirVec3: *, i: *, pos0IndexBase: *, pos1IndexBase: *, pos2IndexBase: *, isFrontFacePickable: *, isBackFacePickable: *): undefined[]

private

_setUpVertexAttibsWrapper(glslProgram: *)

private

_setVertexNtoSingleMaterial(material: *, index: *)

Public Constructors

public constructor(glBoostContext: *, length: *, lineCount: *) source

Override:

Geometry#constructor

Params:

NameTypeAttributeDescription
glBoostContext *
length *
lineCount *
  • optional
  • default: 1

Public Members

public set color: * source

public get color: * source

public set meshContainingSelf: * source

public set width: * source

public get width: * source

public set worldPositionOfParentJoint: * source

public get worldPositionOfParentJoint: * source

public set worldPositionOfThisJoint: * source

public get worldPositionOfThisJoint: * source

Private Members

private _color: * source

private _colors: *[] source

private _mesh: * source

private _vertexData: * source

Override:

Geometry#_vertexData

private _width: number source

private _worldPositionOfParentJoint: * source

private _worldPositionOfThisJoint: * source

Public Methods

public update() source

Private Methods

private _setupVertexData(): * source

Return:

*