public class VgSpatial extends VgReferenced
Modifier and Type | Method and Description |
---|---|
void |
delete() |
VgAnimationRefPtr |
editAnimation(java.lang.String pName)
Edits an animation from the spatial's animation map.
|
VgAnimationConstRefPtr |
getAnimation(java.lang.String pName)
Gets an animation from the spatial's animation map.
|
void |
getAnimationNames(VgStringList pNameList)
Gets the list of the stored animation names.
|
VgOrientation |
getOrientation()
Gets spatial's orientation.
|
VgPosition |
getPosition()
Gets spatial's position.
|
float |
getScale() |
int |
getZIndex() |
boolean |
isDrawnOnTop() |
void |
setAnimation(java.lang.String pAnimationName,
VgAnimationRefPtr pAnimation) |
void |
setAnimation(VgAnimationRefPtr pAnimation)
Deprecated.
|
void |
setDrawOnTop(boolean pEnable) |
void |
setLocalAnimation(VgAnimationRefPtr pAnimation)
Deprecated.
|
void |
setOrientation(VgOrientation pOrientation)
Sets the spatial orientation.
|
void |
setPosition(VgPosition pPosition) |
void |
setPosition(VgPosition pPosition,
boolean pHaveGeographicCoherence)
Sets the spatial position.
|
void |
setScale(float pScale)
Sets the spatial's scale.
|
void |
setZIndex(int pZIndex) |
getNbReferences, ref, unref
public void delete()
delete
in class VgReferenced
public void setAnimation(java.lang.String pAnimationName, VgAnimationRefPtr pAnimation)
public void setAnimation(VgAnimationRefPtr pAnimation)
pAnimation
- An animation to animate the spatial with.public void setLocalAnimation(VgAnimationRefPtr pAnimation)
pAnimation
- An animation to animate the spatial with.public VgAnimationConstRefPtr getAnimation(java.lang.String pName)
pName
- The name of the animation to fetch.public VgAnimationRefPtr editAnimation(java.lang.String pName)
pName
- The name of the animation to fetch.public void getAnimationNames(VgStringList pNameList)
pNameList
- The list of strings to feed with the names.public VgPosition getPosition()
public void setPosition(VgPosition pPosition, boolean pHaveGeographicCoherence)
pPosition
- The position to put the spatial at.pHaveGeographicCoherence
- An optional parameter who by default is true.
Is used to determine the geographic coherence of the spatial. If set to false,
then the spatial will be coherent with the scene.public void setPosition(VgPosition pPosition)
public VgOrientation getOrientation()
public void setOrientation(VgOrientation pOrientation)
pOrientation
- The orientation to set on the spatial.public float getScale()
public void setScale(float pScale)
pScale
- The scale to set on the spatial.public int getZIndex()
public void setZIndex(int pZIndex)
public boolean isDrawnOnTop()
public void setDrawOnTop(boolean pEnable)