gestalt.shape
Class TransformNode
java.lang.Object
gestalt.shape.AbstractShape
gestalt.shape.TransformNode
- All Implemented Interfaces:
- AbstractBin, Drawable, java.io.Serializable
- Direct Known Subclasses:
- JoglTransformNode
public abstract class TransformNode
- extends AbstractShape
- implements AbstractBin
- See Also:
- Serialized Form
| Methods inherited from class gestalt.shape.AbstractShape |
getTransformMode, isActive, material, position, position, position, position, rotation, rotation, scale, scale, scale, setActive, setChildContainer, setMaterialRef, setPositionRef, setRotationRef, setScaleRef, setTransformMode, setTransformRef, transform |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TransformNode
public TransformNode()
children
public java.util.Vector<Drawable> children()
transformLocalPositionToWorldPosition
public TransformMatrix4f transformLocalPositionToWorldPosition(Vector3f thePosition)
add
public void add(Drawable theDrawable)
- Description copied from class:
AbstractShape
- adds a drawable to the container specified by
'setChildContainer(Vector theChildrenContainer)'
- Specified by:
add in interface AbstractBin- Specified by:
add in interface Drawable- Overrides:
add in class AbstractShape
- Parameters:
theDrawable - Drawable
getSortValue
public float getSortValue()
- Description copied from interface:
Drawable
- returns the last sort value.
- Specified by:
getSortValue in interface Drawable- Overrides:
getSortValue in class AbstractShape
- Returns:
- float
setSortValue
public void setSortValue(float theSortValue)
- Description copied from interface:
Drawable
- caches the current sort value.
- Specified by:
setSortValue in interface Drawable- Overrides:
setSortValue in class AbstractShape
- Parameters:
theSortValue - float
getSortData
public float[] getSortData()
- Description copied from class:
AbstractShape
- returns the position of the shape as an array.
this value is used to calculate a sort value.
- Specified by:
getSortData in interface Drawable- Overrides:
getSortData in class AbstractShape
- Returns:
- float[]
isSortable
public boolean isSortable()
- Description copied from class:
AbstractShape
- returns whether the this shape is transparent.
- Specified by:
isSortable in interface Drawable- Overrides:
isSortable in class AbstractShape
- Returns:
- boolean
add
public void add(Drawable[] theDrawables)
- Specified by:
add in interface AbstractBin
remove
public Drawable remove(int theIndex)
- Specified by:
remove in interface AbstractBin
remove
public void remove(Drawable[] theDrawables)
- Specified by:
remove in interface AbstractBin
remove
public Drawable remove(Drawable theDrawable)
- Specified by:
remove in interface AbstractBin
set
public void set(int theID,
Drawable theDrawable)
- Specified by:
set in interface AbstractBin
swap
public void swap(int theIDA,
int theIDB)
- Specified by:
swap in interface AbstractBin
swap
public void swap(Drawable theDrawableA,
Drawable theDrawableB)
- Specified by:
swap in interface AbstractBin
replace
public void replace(Drawable theDrawableOld,
Drawable theDrawableNew)
- Specified by:
replace in interface AbstractBin
find
public int find(Drawable theDrawable)
- Specified by:
find in interface AbstractBin
size
public int size()
- Specified by:
size in interface AbstractBin
get
public Drawable get(int theID)
- Specified by:
get in interface AbstractBin
clear
public void clear()
- Specified by:
clear in interface AbstractBin
getDataRef
public Drawable[] getDataRef()
- Specified by:
getDataRef in interface AbstractBin
toString
public java.lang.String toString()
- Specified by:
toString in interface AbstractBin- Overrides:
toString in class java.lang.Object
processing library gestalt_p5 by Patrick Kochlik + Dennis Paul. (c) 2009