public class AbstractVisual3d extends Object
Constructor and Description |
---|
AbstractVisual3d()
Initializes the members with default values.
|
AbstractVisual3d(Object position,
Object rotation,
Object size)
Initializes the members with default values.
|
Modifier and Type | Method and Description |
---|---|
void |
bindPosition(String propId)
Binds the position of the visual to an object property.
|
void |
bindRotation(String propId)
Binds the z-rotation of the visual to an object property.
|
void |
bindSize(String propId)
Binds the size of the visual to an object property.
|
Object |
getPosition()
Get the position.
|
Object |
getRotation()
Get the rotation.
|
Object |
getSize()
Get the size.
|
boolean |
isCreated()
Is created?
|
void |
setCreated(boolean value)
Mark as created
|
void |
setPosition(IVector3 pos)
Sets the position of the visual to a fixed position.
|
void |
setRotation(IVector3 rotation)
Sets the rotation of the visual to a fixed rotation.
|
void |
setSize(IVector3 size)
Sets the size (scale) of the visual to a fixed size.
|
public AbstractVisual3d()
public void setPosition(IVector3 pos)
pos
- fixed positionpublic void setRotation(IVector3 rotation)
rotation
- the fixed rotationpublic void setSize(IVector3 size)
size
- fixed sizepublic void bindPosition(String propId)
propId
- the property IDpublic void bindRotation(String propId)
propId
- the property IDpublic void bindSize(String propId)
propId
- the property IDpublic Object getSize()
public Object getRotation()
public Object getPosition()
public void setCreated(boolean value)
public boolean isCreated()
Copyright © 2012. All Rights Reserved.