Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CameraComponent

The Component that represents a camera.

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

Properties

__currentProcessStage: ProcessStageEnum = ProcessStage.Create
__entityRepository: EntityRepository

the instance of EntityRepository

__entityUid: number

the entity unique Id which this component belongs to

__frustum: Frustum = ...
__isProjectionMatrixUpToDate: boolean = false
__isViewMatrixUpToDate: boolean = false
__memoryManager: MemoryManager

the instance of MemoryManager

__sceneGraphComponent?: SceneGraphComponent
__type: EnumIO = CameraType.Perspective
_corner: MutableVector4 = ...
_cornerInner: MutableVector4 = ...
_direction: MutableVector3 = ...
_directionInner: MutableVector3 = ...
_eyeInner: MutableVector3 = ...
_filmHeight: number = 24
_filmWidth: number = 36
_focalLength: number = 20
_isAlive: boolean = true
_parameters: MutableVector4 = ...
_parametersInner: MutableVector4 = ...
_projectionMatrix: MutableMatrix44 = ...
_up: MutableVector3 = ...
_upInner: MutableVector3 = ...
_viewMatrix: MutableMatrix44 = ...
_xrLeft: boolean = false
_xrRight: boolean = false
isSyncToLight: boolean = false
primitiveMode: boolean = false
InvalidObjectUID: -1 = -1
__biasMatrix: Matrix44 = ...
__componentsOfProcessStages: Map<ProcessStageEnum, Int32Array> = ...
__current: number = -1
__globalDataRepository: GlobalDataRepository = ...
__lengthOfArrayOfProcessStages: Map<ProcessStageEnum, number> = ...
__tmpMatrix44_0: MutableMatrix44 = ...
__tmpMatrix44_1: MutableMatrix44 = ...
__tmpVector3_0: MutableVector3 = ...
__tmpVector3_1: MutableVector3 = ...
__tmpVector3_2: MutableVector3 = ...
_eye: Vector3 = ...
_processStages: ProcessStageEnum[] = ...
currentMaxObjectCount: number = 0
invalidComponentSID: -1 = -1
returnVector3: MutableVector3 = ...

Accessors

  • get aspect(): number
  • set aspect(val: number): void
  • get aspectInner(): number
  • set aspectInner(val: number): void
  • get bottom(): number
  • set bottom(value: number): void
  • set bottomInner(value: number): void
  • get componentSID(): number
  • get entityUID(): number
  • get focalLength(): number
  • set focalLength(val: number): void
  • get fovy(): number
  • set fovyInner(val: number): void
  • get left(): number
  • set left(value: number): void
  • set leftInner(value: number): void
  • get maxNumberOfComponent(): number
  • get objectUID(): number
  • get projectionMatrix(): Matrix44
  • set projectionMatrix(projectionMatrix: Matrix44): void
  • get right(): number
  • set right(value: number): void
  • set rightInner(value: number): void
  • get top(): number
  • set top(value: number): void
  • set topInner(value: number): void
  • get uniqueName(): string
  • get xMag(): number
  • set xMag(val: number): void
  • get yMag(): number
  • set yMag(val: number): void
  • get zFar(): number
  • set zFar(val: number): void
  • get zFarInner(): number
  • set zFarInner(val: number): void
  • get zNear(): number
  • set zNear(val: number): void
  • get zNearInner(): number
  • set zNearInner(val: number): void
  • get componentTID(): number
  • get current(): number
  • set current(componentSID: number): void

Methods

  • $create(): void
  • $logic(__namedParameters: { renderPass: RenderPass }): void
  • _destroy(): void
  • _setMaxNumberOfComponent(value: number): void
  • addThisComponentToEntity<EntityBaseClass, SomeComponentClass>(base: EntityBaseClass, _componentClass: SomeComponentClass): IsThisSparkGear<SomeComponentClass, IsThisEffekseer<SomeComponentClass, IsThisPhysics<SomeComponentClass, IsThisBlendShape<SomeComponentClass, IsThisSkeletal<SomeComponentClass, IsThisLight<SomeComponentClass, IsThisCamera<SomeComponentClass, IsThisCameraController<SomeComponentClass, IsThisMeshRenderer<SomeComponentClass, IsThisMesh<SomeComponentClass, IsThisSceneGraph<SomeComponentClass, IsThisTransform<SomeComponentClass, IsThisAnimation<SomeComponentClass, AllWellKnownComponentMethodsTypes>>>>>>>>>>>>> & EntityBaseClass
  • override

    Add this component to the entity

    Type Parameters

    Parameters

    • base: EntityBaseClass

      the target entity

    • _componentClass: SomeComponentClass

      the component class to add

    Returns IsThisSparkGear<SomeComponentClass, IsThisEffekseer<SomeComponentClass, IsThisPhysics<SomeComponentClass, IsThisBlendShape<SomeComponentClass, IsThisSkeletal<SomeComponentClass, IsThisLight<SomeComponentClass, IsThisCamera<SomeComponentClass, IsThisCameraController<SomeComponentClass, IsThisMeshRenderer<SomeComponentClass, IsThisMesh<SomeComponentClass, IsThisSceneGraph<SomeComponentClass, IsThisTransform<SomeComponentClass, IsThisAnimation<SomeComponentClass, AllWellKnownComponentMethodsTypes>>>>>>>>>>>>> & EntityBaseClass

  • getDataByteInfo(memberName: string): { byteLength: number; byteOffsetInBuffer: number; byteOffsetInThisComponent: any; componentNumber: number; locationOffsetInBuffer: number; locationOffsetInThisComponent: any; thisComponentByteOffsetInBuffer: number; thisComponentLocationOffsetInBuffer: number }
  • get the bytes Information of the member

    Parameters

    • memberName: string

      the member of component in string

    Returns { byteLength: number; byteOffsetInBuffer: number; byteOffsetInThisComponent: any; componentNumber: number; locationOffsetInBuffer: number; locationOffsetInThisComponent: any; thisComponentByteOffsetInBuffer: number; thisComponentLocationOffsetInBuffer: number }

    bytes information

    • byteLength: number
    • byteOffsetInBuffer: number
    • byteOffsetInThisComponent: any
    • componentNumber: number
    • locationOffsetInBuffer: number
    • locationOffsetInThisComponent: any
    • thisComponentByteOffsetInBuffer: number
    • thisComponentLocationOffsetInBuffer: number
  • getTag(tagName: string): Tag
  • getTagValue(tagName: string): any
  • hasTag(tagName: string): boolean
  • matchTag(tagName: string, tagValue: string): boolean
  • matchTags(tags: RnTags): boolean
  • matchTagsAsFreeStrings(stringArray: string[]): boolean
  • registerDependency(component: Component, isMust: boolean): void
  • registerMember(bufferUse: EnumIO, memberName: string, dataClassType: unknown, componentType: ComponentTypeEnum, initValues: number[]): void
  • removeTag(tagName: string): void
  • setFovyAndChangeFilmSize(degree: number): void
  • setFovyAndChangeFocalLength(degree: number): void
  • setValuesToGlobalDataRepository(): void
  • setValuesToGlobalDataRepositoryOnlyMatrices(): void
  • submitToAllocation(count: number): void
  • takeOne(memberName: string, dataClassType: any, initValues: number[]): any
  • take one memory area for the specified member for all same type of the component instances.

    Parameters

    • memberName: string
    • dataClassType: any
    • initValues: number[]

    Returns any

  • tryToSetTag(tag: Tag): boolean
  • tryToSetUniqueName(name: string, toAddNameIfConflict: boolean): boolean
  • Try to set a unique name of the entity.

    Parameters

    • name: string
    • toAddNameIfConflict: boolean

      If true, force to add name string to the current unique name string. If false, give up to change name.

    Returns boolean

  • updateFrustum(): void
  • validateTagString(val: string): boolean
  • _reset(): void
  • getAccessor(memberName: string, componentClass: Function): Accessor
  • getByteLengthSumOfMembers(bufferUse: EnumIO, componentClass: Function): number
  • getByteOffsetOfFirstOfThisMemberInBuffer(memberName: string, componentClass: Function): number
  • getByteOffsetOfFirstOfThisMemberInBufferView(memberName: string, componentClass: Function): number
  • getByteOffsetOfThisComponentTypeInBuffer(bufferUse: EnumIO, componentClass: Function): number
  • getComponentTypeOfMember(memberName: string, componentClass: Function): undefined | ComponentTypeEnum
  • getCompositionTypeOfMember(memberName: string, componentClass: Function): undefined | CompositionTypeEnum
  • getDataByteInfoByComponentSID(componentType: typeof Component, componentSID: number, memberName: string): undefined | { byteLength: number; byteOffsetInBuffer: number; byteOffsetInThisComponent: any; componentNumber: number; locationOffsetInBuffer: number; locationOffsetInThisComponent: any; thisComponentByteOffsetInBuffer: number; thisComponentLocationOffsetInBuffer: number }
  • get the bytes Information of the member (static version) by ComponentSID

    Parameters

    • componentType: typeof Component

      the Component type

    • componentSID: number

      the ComponentSID of the component

    • memberName: string

      the member of component in string

    Returns undefined | { byteLength: number; byteOffsetInBuffer: number; byteOffsetInThisComponent: any; componentNumber: number; locationOffsetInBuffer: number; locationOffsetInThisComponent: any; thisComponentByteOffsetInBuffer: number; thisComponentLocationOffsetInBuffer: number }

    bytes information

  • getDataByteInfoByEntityUID(componentType: typeof Component, entityUID: number, memberName: string): undefined | { byteLength: number; byteOffsetInBuffer: number; byteOffsetInThisComponent: any; componentNumber: number; locationOffsetInBuffer: number; locationOffsetInThisComponent: any; thisComponentByteOffsetInBuffer: number; thisComponentLocationOffsetInBuffer: number }
  • get the bytes Information of the member (static version) by EntityUID

    Parameters

    • componentType: typeof Component

      the component type

    • entityUID: number

      the EntityUID

    • memberName: string

      the member of component in string

    Returns undefined | { byteLength: number; byteOffsetInBuffer: number; byteOffsetInThisComponent: any; componentNumber: number; locationOffsetInBuffer: number; locationOffsetInThisComponent: any; thisComponentByteOffsetInBuffer: number; thisComponentLocationOffsetInBuffer: number }

    bytes information

  • getDataByteInfoInner(component: Component, memberName: string): { byteLength: number; byteOffsetInBuffer: number; byteOffsetInThisComponent: any; componentNumber: number; locationOffsetInBuffer: number; locationOffsetInThisComponent: any; thisComponentByteOffsetInBuffer: number; thisComponentLocationOffsetInBuffer: number }
  • get the bytes Information of the member

    Parameters

    • component: Component

      a instance of the component

    • memberName: string

      the member of component in string

    Returns { byteLength: number; byteOffsetInBuffer: number; byteOffsetInThisComponent: any; componentNumber: number; locationOffsetInBuffer: number; locationOffsetInThisComponent: any; thisComponentByteOffsetInBuffer: number; thisComponentLocationOffsetInBuffer: number }

    bytes information

    • byteLength: number
    • byteOffsetInBuffer: number
    • byteOffsetInThisComponent: any
    • componentNumber: number
    • locationOffsetInBuffer: number
    • locationOffsetInThisComponent: any
    • thisComponentByteOffsetInBuffer: number
    • thisComponentLocationOffsetInBuffer: number
  • getLocationOffsetOfMemberOfComponent(componentType: typeof Component, memberName: string): number
  • getRnObject(objectUid: number): RnObject
  • getRnObjectByName(uniqueName: string): undefined | RnObject
  • searchByTag(tag: string, value: string): undefined | RnObject

Generated using TypeDoc