Home Reference Source
public class | source

Line

Extends:

GLBoostObjectGeometry → Line

Constructor Summary

Public Constructor
public

constructor(glBoostContext: *, startPos: *, endPos: *, haveTerminalMark: *)

Member Summary

Public Members
public set

color: *

public get

color: *

public set
public get
public set
public get
Private Members
private
private
private
private

_color: *

private

_colors: *[]

private

Method Summary

Public Methods
public

update()

Private Methods
private

_setupVertexData(startPos: *, endPos: *, haveTerminalMark: *): *

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: *, startPos: *, endPos: *, haveTerminalMark: *) source

Override:

Geometry#constructor

Params:

NameTypeAttributeDescription
glBoostContext *
startPos *
  • optional
  • default: undefined
endPos *
  • optional
  • default: undefined
haveTerminalMark *
  • optional
  • default: undefined

Public Members

public set color: * source

public get color: * source

public set endPosition: * source

public get endPosition: * source

public set startPosition: * source

public get startPosition: * source

Private Members

private __endPos: * source

private __haveTerminalMark: * source

private __startPos: * source

private _color: * source

private _colors: *[] source

private _vertexData: * source

Override:

Geometry#_vertexData

Public Methods

public update() source

Private Methods

private _setupVertexData(startPos: *, endPos: *, haveTerminalMark: *): * source

Params:

NameTypeAttributeDescription
startPos *
endPos *
haveTerminalMark *

Return:

*