Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TransformComponent

シーン中に存在する物体の変形を司るコンポーネント このコンポーネントによって物体の座標や回転量、拡大料などが定義されます。 シーン中の全ての物体は必ずこのコンポーネントを含まなければなりません。

Hierarchy

  • Component
    • TransformComponent

Index

Constructors

constructor

  • Returns TransformComponent

Properties

attributes

attributes: NSDictionary<Attribute>

Attributes managed by this component

type

{NSDictionary}

companion

companion: NSDictionary<any>

The dictionary which is shared in entire tree.

returns

[description]

disposed

disposed: boolean

element

element: Element

XMLElement of this component

type

{Element}

enabled

enabled: boolean

id

id: string

ID related to this instance to identify.

isActive

isActive: boolean

isDefaultComponent

isDefaultComponent: boolean

Whether this component was created by nodeDeclaration

type

{boolean}

localTransform

localTransform: Matrix = new Matrix()

Local transform matrix representing scaling,rotation and translation of attached object.

returns

[description]

name

name: NSIdentity

Name of this component

type

{NSIdentity}

node

node: GomlNode

Node this component is attached

type

{GomlNode}

position

position: Vector3

rotation

rotation: Quaternion

scale

scale: Vector3

tree

tree: GomlInterface

Tree interface for the tree this node is attached.

returns

[description]

Accessors

forward

  • get forward(): Vector3

globalPosition

  • get globalPosition(): Vector3

globalScale

  • get globalScale(): Vector3

globalTransform

  • get globalTransform(): Matrix

globalTransformInverse

  • get globalTransformInverse(): Matrix

right

  • get right(): Vector3

up

  • get up(): Vector3

Methods

$awake

  • $awake(): void

$mount

  • $mount(): void

$unmount

  • $unmount(): void

Protected ___addAtribute

  • ___addAtribute(name: string, attribute: IAttributeDeclaration): void
  • Parameters

    • name: string
    • attribute: IAttributeDeclaration

    Returns void

Protected ___addAttribute

  • ___addAttribute(name: string, attribute: IAttributeDeclaration): Attribute
  • Add additional attribute to this component.

    Parameters

    • name: string
    • attribute: IAttributeDeclaration

    Returns Attribute

Protected ___bindAttributes

  • ___bindAttributes(): void
  • Returns void

Protected ___removeAttributes

  • ___removeAttributes(name?: string): void
  • Parameters

    • Optional name: string

    Returns void

addEnabledObserver

  • addEnabledObserver(observer: function): void
  • Parameters

    • observer: function
        • (component: Component): void
        • Parameters

          • component: Component

          Returns void

    Returns void

applyMatrix

  • applyMatrix(mat: Matrix): void

awake

  • awake(): boolean
  • Returns boolean

calcPVM

calcVM

dispose

  • dispose(): void
  • Returns void

getAttribute

  • getAttribute(name: Name): any
  • Parameters

    • name: Name

    Returns any

getAttributeRaw

  • getAttributeRaw(name: Name): Attribute
  • Parameters

    • name: Name

    Returns Attribute

getTypeName

  • getTypeName(): string
  • Obtain class name

    Returns string

    Class name of the instance.

initialized

  • initialized(info: ITreeInitializedInfo): void
  • Parameters

    • info: ITreeInitializedInfo

    Returns void

notifyUpdateTransform

  • notifyUpdateTransform(): void

removeEnabledObserver

  • removeEnabledObserver(observer: function): boolean
  • Parameters

    • observer: function
        • (component: Component): void
        • Parameters

          • component: Component

          Returns void

    Returns boolean

resolveDefaultAttributes

  • resolveDefaultAttributes(nodeAttributes?: object | null): any
  • Parameters

    • Optional nodeAttributes: object | null

    Returns any

setAttribute

  • setAttribute(name: Name, value: any): void
  • Set value of attribute

    Parameters

    • name: Name
    • value: any

    Returns void

toString

  • toString(): string
  • Obtain stringfied object. If this method was not overridden, this method return class name.

    Returns string

    stringfied object

Static getUniqueRandom

  • getUniqueRandom(length: number): string
  • Generate random string

    Parameters

    • length: number

      length of random string

    Returns string

    generated string

Object literals

Static attributes

attributes: object

position

position: object

この物体の座標

converter

converter: string = "Vector3"

default

default: number[] = [0, 0, 0]

rotation

rotation: object

この物体の回転量

converter

converter: string = "Rotation3"

default

default: number[] = [0, 0, 0, 1]

scale

scale: object

この物体の拡大率

converter

converter: string = "Vector3"

default

default: number[] = [1, 1, 1]

Generated using TypeDoc