com.jme3.scene.control
Class BillboardControl

java.lang.Object
  extended by com.jme3.scene.control.AbstractControl
      extended by com.jme3.scene.control.BillboardControl
All Implemented Interfaces:
Savable, Control

public class BillboardControl
extends AbstractControl


Nested Class Summary
static class BillboardControl.Alignment
          Determines how the billboard is aligned to the screen/camera.
 
Field Summary
 
Fields inherited from class com.jme3.scene.control.AbstractControl
enabled, spatial
 
Constructor Summary
BillboardControl()
           
 
Method Summary
 Control cloneForSpatial(Spatial spatial)
          Creates a clone of the Control, the given Spatial is the cloned version of the spatial to which this control is attached to.
protected  void controlRender(RenderManager rm, ViewPort vp)
          To be implemented in subclass.
protected  void controlUpdate(float tpf)
          To be implemented in subclass.
 BillboardControl.Alignment getAlignment()
          Returns the alignment this Billboard is set too.
 void read(JmeImporter e)
           
 void setAlignment(BillboardControl.Alignment alignment)
          Sets the type of rotation this Billboard will have.
 void write(JmeExporter e)
           
 
Methods inherited from class com.jme3.scene.control.AbstractControl
getSpatial, isEnabled, render, setEnabled, setSpatial, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BillboardControl

public BillboardControl()
Method Detail

cloneForSpatial

public Control cloneForSpatial(Spatial spatial)
Description copied from interface: Control
Creates a clone of the Control, the given Spatial is the cloned version of the spatial to which this control is attached to.

Returns:
A clone of this control for the spatial

controlUpdate

protected void controlUpdate(float tpf)
Description copied from class: AbstractControl
To be implemented in subclass.

Specified by:
controlUpdate in class AbstractControl

controlRender

protected void controlRender(RenderManager rm,
                             ViewPort vp)
Description copied from class: AbstractControl
To be implemented in subclass.

Specified by:
controlRender in class AbstractControl

getAlignment

public BillboardControl.Alignment getAlignment()
Returns the alignment this Billboard is set too.

Returns:
The alignment of rotation, AxialY, AxialZ, Camera or Screen.

setAlignment

public void setAlignment(BillboardControl.Alignment alignment)
Sets the type of rotation this Billboard will have. The alignment can be Camera, Screen, AxialY, or AxialZ. Invalid alignments will assume no billboard rotation.


write

public void write(JmeExporter e)
           throws java.io.IOException
Specified by:
write in interface Savable
Overrides:
write in class AbstractControl
Throws:
java.io.IOException

read

public void read(JmeImporter e)
          throws java.io.IOException
Specified by:
read in interface Savable
Overrides:
read in class AbstractControl
Throws:
java.io.IOException