Class vxlActorGroup

Constructor

vxlActorGroup(scene, name, list)
Sometimes it makes sense to associate actors in a scene to perform operations as a unit. For instance you can have a bicycle composed by several actors and you want to change its color or its position on the scene. You could accomplish that calling the respective methods for each one of the actors that make part of the bicycle or you can create an actor group named bycicle and call just the setColor and translate operations on the actor group.
Author: Diego Cantor.

Parameters:

scene

name

list

Methods

.add(actor)
Adds one actor to the actor group

Parameters:

Type Name Description
vxlActor actor

the actor to be added

.addList(list)
Add a list of actors to the actor group

Parameters:

Type Name Description
Object list

a list of actors

.flipNormals()
Flip normals
.hasActor(actor)
Returns true if the actor is associated to this actor group. False otherwise

Parameters:

Type Name Description
actor

.remove(actor)

Parameters:

Type Name Description
actor

.reset(list)
Resets the contents of this actor group

Parameters:

Type Name Description
list

.rotateX(angle)
Rotation on the X axis

Parameters:

Type Name Description
float angle

angle in degrees

.rotateY(angle)
Rotation on the Y axis

Parameters:

Type Name Description
float angle

angle in degrees

.rotateZ(angle)
Rotation on the Z axis

Parameters:

Type Name Description
float angle

angle in degrees

.setColor(color)
Sets the material diffuse color of the group

Parameters:

Type Name Description
list color

in rgb decimal format

.setLookupTable(lutID, min, max)
Sets the lookup table for this group

Parameters:

Type Name Description
lutID

min

max

.setOpacity(opacity)
Sets the opacity for this group

Parameters:

Type Name Description
opacity

.setPicker(type, callback)
Sets the picker for this group

Parameters:

Type Name Description
type

callback

See:

.setPosition(x, y, z)
Sets the position for this group

Parameters:

Type Name Description
x

y

z

See:

.setProperty(property, value)
Set a property for actors in the group. Please notice that by design actor groups only set actor level properties instead of model level properties.

Parameters:

Type Name Description
property

value

.setScale(x, y, z)
Sets the scale for this group

Parameters:

Type Name Description
x

y

z

See:

.setShading(shading)
Sets the shading for this group

Parameters:

Type Name Description
shading

See:

.setShininess(shine)
Sets the shininess for this group

Parameters:

Type Name Description
shine

See:

.setVisible(visible)
Sets the visibility for this group

Parameters:

Type Name Description
visible

See:

.setVisualizationMode(mode)
Sets the visualization mode for this group

Parameters:

Type Name Description
mode

See:

Number .size()
Returns the size of the actor group

Returns:

{Number} the lenght of the actor group
.translate(x, y, z)
Translation by a given vector

Parameters:

Type Name Description
x

y

z