GeometryStyleSystem

GeometryStyleSystem ⇐ MRSystem

Handles geometry updates for all items.

Kind: global class
Extends: MRSystem

geometryStyleSystem.GeometryStyleSystem

Kind: instance class of GeometryStyleSystem

new exports.GeometryStyleSystem()

StyleSystem’s default constructor with a starting framerate of 1/30.

geometryStyleSystem._updateSpecificEntity(entity)

The per entity triggered update call. Handles updating all 3D items to match whatever geometry/style is expected whether that be a 2D setup or a 3D change.

Kind: instance method of GeometryStyleSystem

Param Type Description
entity object the MREntity to be updated by this function.

geometryStyleSystem.eventUpdate()

The per global scene event update call. Handles updating all 3D items to match whatever geometry/style is expected whether that be a 2D setup or a 3D change.

Kind: instance method of GeometryStyleSystem

geometryStyleSystem.update(deltaTime, frame)

The per-frame system update call.

Kind: instance method of GeometryStyleSystem

Param Type Description
deltaTime number given timestep to be used for any feature changes
frame object given frame information to be used for any feature changes

geometryStyleSystem.onNewEntity(entity)

Called when a new entity is added to the scene. Adds said new entity to the style’s system registry.

Kind: instance method of GeometryStyleSystem

Param Type Description
entity MREntity the entity being added.

geometryStyleSystem.setScale(entity) ⇒ boolean

Sets the scale of the MREntity based on its css scale value, otherwise defaults to 1.

Kind: instance method of GeometryStyleSystem
Returns: boolean - true if updated, false otherwise.

Param Type Description
entity object the MREntity to be updated by this function.

geometryStyleSystem.setUpdatedBorder(entity) ⇒ boolean

Sets the border of the UI based on compStyle and inputted css elements.

Kind: instance method of GeometryStyleSystem
Returns: boolean - true if updated, false otherwise

Param Type Description
entity object the MREntity to be updated by this function.

geometryStyleSystem.setUpdatedMediaPlane(entity) ⇒ boolean

Updates the Media Plane for this geometry. Specific to the MRMedia subclasses.

Kind: instance method of GeometryStyleSystem
Returns: boolean - true if updated, false otherwise

Param Type Description
entity object the MRMediaEntity to be updated by this function.