actor

vgl. actor

new actor() → {vgl.actor}

Description:
  • Create a new instance of class actor.

Source:
Returns:
Type
vgl.actor

Extends

Methods

boundsModified()

Description:
  • Mark that the bounds are modified.

Source:
Inherited From:

computeBounds()

Description:
  • Compute actor bounds.

Source:

mapper() → {vgl.mapper}

Description:
  • Return mapper where actor gets it behavior and data.

Source:
Returns:
Type
vgl.mapper

material() → {vgl.material}

Description:
  • Return active material used by the node.

Source:
Inherited From:
Returns:
Type
vgl.material

matrix() → {mat4}

Description:
  • Get transformation matrix used by the actor.

Source:
Returns:

The transformation matrix.

Type
mat4

parent() → {vgl.node}

Description:
  • Return current parent of the node.

Source:
Inherited From:
Returns:
Type
vgl.node

referenceFrame() → {string}

Description:
  • Get reference frame for the transformations.

Source:
Returns:

Possible values are Absolute or Relative

Type
string

setMapper(mapper)

Description:
  • Connect an actor to its data source.

Source:
Parameters:
Name Type Description
mapper vgl.mapper

The vlg mapper object.

setMaterial(material) → {boolean}

Description:
  • Set material to be used the node.

Source:
Inherited From:
Parameters:
Name Type Description
material vgl.material
Returns:
Type
boolean

setParent(parent) → {boolean}

Description:
  • Set parent of the node.

Source:
Inherited From:
Parameters:
Name Type Description
parent vgl.node
Returns:
Type
boolean

setVisible(flag) → {boolean}

Description:
  • Turn ON/OFF visibility of the node.

Source:
Inherited From:
Parameters:
Name Type Description
flag boolean
Returns:
Type
boolean

visible() → {boolean}

Description:
  • Check if the node is visible or node.

Source:
Inherited From:
Returns:
Type
boolean