public class BillboardNode extends Node implements NameIdInterface, StreamInterface
Spatial.CullingMode
Modifier and Type | Field and Description |
---|---|
protected Matrix3f |
m_kRotate |
protected Camera |
m_spkCamera
Camera to which the billboard is aligned
|
private static long |
serialVersionUID |
Culling, Local, m_iStartEffect, m_kEffects, m_kGlobalStates, m_kLights, m_pkParent, World, WorldBound, WorldBoundIsCurrent, WorldIsCurrent
Constructor and Description |
---|
BillboardNode()
Default constructor, uninitialized
|
BillboardNode(Camera pkCamera)
Construction and destruction.
|
Modifier and Type | Method and Description |
---|---|
void |
AlignTo(Camera pkCamera)
the camera to which the billboard is aligned
|
void |
dispose()
delete memory
|
void |
GetAllObjectsByName(String rkName,
Vector<GraphicsObject> rkObjects)
Writes all GraphicsObjects with the name that matches the input
parameter, rkName into the Vector parameter rkObjects.
|
int |
GetDiskUsed(StreamVersion rkVersion)
Returns the size of this object and it's children on disk for the
current StreamVersion parameter.
|
GraphicsObject |
GetObjectByID(int uiID)
Returns the GraphicsObject with the ID that matches the input parameter, uiID.
|
GraphicsObject |
GetObjectByName(String rkName)
Returns the GraphicsObject with the name that matches the input parameter, rkName.
|
void |
Link(Stream rkStream,
Stream.Link pkLink)
Copies this objects children objects from the input Stream's HashTable,
based on the LinkID of the child stored in the pkLink parameter.
|
void |
Load(Stream rkStream,
Stream.Link pkLink)
Loads this object from the input parameter rkStream, using the input
Stream.Link to store the IDs of children objects of this object for
linking after all objects are loaded from the Stream.
|
boolean |
Register(Stream rkStream)
Registers this object with the input Stream parameter.
|
void |
Save(Stream rkStream)
Write this object and all it's children to the Stream.
|
StringTree |
SaveStrings(String acTitle)
Write this object into a StringTree for the scene-graph visualization.
|
void |
SetLocalRotate(Matrix3f kRotate) |
protected void |
UpdateWorldData(double dAppTime)
geometric updates
|
AttachChild, DetachAllChildren, DetachChild, DetachChildAt, GetChild, GetQuantity, GetVisibleSet, SetChild, UpdateState, UpdateWorldBound
AttachEffect, AttachGlobalState, AttachLight, DetachAllEffects, DetachAllGlobalStates, DetachAllLights, DetachEffect, DetachGlobalState, DetachLight, GetEffect, GetEffectQuantity, GetGlobalState, GetGlobalState, GetGlobalStateQuantity, GetLight, GetLightQuantity, GetParent, GetStartEffect, OnGetVisibleSet, PopState, PropagateBoundToRoot, PropagateStateFromRoot, PushState, SetParent, SetStartEffect, UpdateBS, UpdateGS, UpdateGS, UpdateRS, UpdateRS
GetID, GetName, GetNextID, GetObjectByIDBase, GetObjectByNameBase, SetName
private static final long serialVersionUID
protected Camera m_spkCamera
protected Matrix3f m_kRotate
public BillboardNode(Camera pkCamera)
pkCamera
- to which the billboard is alignedpublic BillboardNode()
public void AlignTo(Camera pkCamera)
pkCamera
- to which the billboard is alignedprotected void UpdateWorldData(double dAppTime)
UpdateWorldData
in class Node
dAppTime
- animation time for updating any controllers associated
with this objectpublic GraphicsObject GetObjectByName(String rkName)
GetObjectByName
in interface NameIdInterface
GetObjectByName
in class Node
rkName
- the name of the object to return.public void GetAllObjectsByName(String rkName, Vector<GraphicsObject> rkObjects)
GetAllObjectsByName
in interface NameIdInterface
GetAllObjectsByName
in class Node
rkName
- the name of the objects to return.rkObjects
- a Vector of all objects with the matching name.public GraphicsObject GetObjectByID(int uiID)
GetObjectByID
in interface NameIdInterface
GetObjectByID
in class Node
uiID
- the ID of the object to return.public void Load(Stream rkStream, Stream.Link pkLink)
Load
in interface StreamInterface
Load
in class Node
rkStream
- the Stream from which this object is being read.pkLink
- the Link class for storing the IDs of this object's
children objects.public void Link(Stream rkStream, Stream.Link pkLink)
Link
in interface StreamInterface
Link
in class Node
rkStream
- the Stream where the child objects are stored.pkLink
- the Link class from which the child object IDs are read.public boolean Register(Stream rkStream)
Register
in interface StreamInterface
Register
in class Node
rkStream
- the Stream where the child objects are stored.public void Save(Stream rkStream)
Save
in interface StreamInterface
Save
in class Node
rkStream
- the Stream where the child objects are stored.public int GetDiskUsed(StreamVersion rkVersion)
GetDiskUsed
in interface StreamInterface
GetDiskUsed
in class Node
rkVersion
- the current version of the Stream file being created.public StringTree SaveStrings(String acTitle)
SaveStrings
in interface StreamInterface
SaveStrings
in class Node
acTitle
- the header for this object in the StringTree.public void SetLocalRotate(Matrix3f kRotate)