|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.render.states.StateSortable
org.xith3d.render.preprocessing.RenderAtom<T>
public abstract class RenderAtom<T extends Node>
A render atom is a discrete chunk of geometry and shader that will be drawn. Render atoms are submitted to a rendering peer which is API specific.
| Field Summary | |
|---|---|
protected boolean |
translucent
|
| Constructor Summary | |
|---|---|
RenderAtom(int stateType,
T node,
boolean hasOrderedState)
|
|
| Method Summary | ||
|---|---|---|
void |
clearStateUnits()
Removes all shaders from the list |
|
org.openmali.spatial.bodies.Classifier.Classification |
getClassification()
|
|
ClipperInfo |
getClipper()
|
|
java.lang.Comparable |
getCustomComparable()
Returns the custom comparable object. |
|
float |
getDistanceToView()
|
|
T |
getNode()
|
|
int |
getNumStateUnits()
|
|
OrderedState |
getOrderedState()
|
|
abstract
|
getPosition(Tup p)
Gets the position of the geometry (usually from transformed bounds |
|
ScissorRect |
getScissorRect()
|
|
StateSortableMap |
getSortableStates()
|
|
float |
getSquaredDistanceToView()
|
|
long |
getStateId()
|
|
StateUnit |
getStateUnit(int index)
|
|
StateUnit[] |
getStateUnits()
|
|
float |
getZValue()
|
|
boolean |
isTranslucent()
|
|
void |
setClassification(org.openmali.spatial.bodies.Classifier.Classification classify)
|
|
void |
setCompareIndicators(float squaredDistanceToView,
float zValue,
java.lang.Comparable customComparable)
Sets the values to compare by. |
|
protected void |
updateStateMap(StateUnit stateUnit)
|
|
void |
updateStateUnit(StateUnit stateUnit)
updates a shader to the atom's list of shaders. |
|
| Methods inherited from class org.xith3d.render.states.StateSortable |
|---|
getCachedStateId, getStateType, updateCachedStateId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean translucent
| Constructor Detail |
|---|
public RenderAtom(int stateType,
T node,
boolean hasOrderedState)
| Method Detail |
|---|
public final void setCompareIndicators(float squaredDistanceToView,
float zValue,
java.lang.Comparable customComparable)
squaredDistanceToView - the absolute distance to the current View.zValue - the z-value of the absolute translationcustomComparable - the custom comparable objectpublic final float getSquaredDistanceToView()
public final float getDistanceToView()
public final float getZValue()
public final java.lang.Comparable getCustomComparable()
public void setClassification(org.openmali.spatial.bodies.Classifier.Classification classify)
public org.openmali.spatial.bodies.Classifier.Classification getClassification()
public abstract <Tup extends org.openmali.vecmath2.Tuple3f> Tup getPosition(Tup p)
p - public final ScissorRect getScissorRect()
public final ClipperInfo getClipper()
public final T getNode()
public final int getNumStateUnits()
public void clearStateUnits()
protected final void updateStateMap(StateUnit stateUnit)
public void updateStateUnit(StateUnit stateUnit)
stateUnit - public final StateSortableMap getSortableStates()
public final StateUnit[] getStateUnits()
public final StateUnit getStateUnit(int index)
public final boolean isTranslucent()
public final long getStateId()
getStateId in class StateSortablepublic final OrderedState getOrderedState()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||