|
Aviatrix3D 2.0 Dev |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.j3d.aviatrix3d.SceneGraphObject
org.j3d.aviatrix3d.Node
org.j3d.aviatrix3d.Leaf
org.j3d.aviatrix3d.Background
org.j3d.aviatrix3d.ColorBackground
Background node that represents a single solid 4-component colour.
This will set the background colour to a single colour for the entire
viewport. If used, this will override the setClearColor() on
GraphicsOutputDevice
.
Field Summary |
Fields inherited from class org.j3d.aviatrix3d.Background |
color, dispListMap |
Fields inherited from class org.j3d.aviatrix3d.Node |
bounds, implicitBounds, INVALID_BOUNDS, parent |
Fields inherited from class org.j3d.aviatrix3d.SceneGraphObject |
alive, LISTENER_SET_NOT_LIVE_MESSAGE, updateHandler, WRITE_TIMING_MSG |
Constructor Summary | |
ColorBackground()
Constructs a background node for a base colour of black. |
|
ColorBackground(float[] c)
Construct a background node for a user-provided colour. |
Method Summary | |
int |
compareTo(ColorBackground bg)
Compares this object with the specified object for order. |
int |
compareTo(java.lang.Object o)
Compares this object with the specified object for order. |
boolean |
equals(ColorBackground bg)
Compares this object with the specified object to check for equivalence. |
boolean |
equals(java.lang.Object o)
Compare this object for equality to the given object. |
void |
postRender(javax.media.opengl.GL gl)
Restore all openGL state to the given drawable. |
void |
render(javax.media.opengl.GL gl)
Issue ogl commands needed for this component |
Methods inherited from class org.j3d.aviatrix3d.Background |
compareColor4, equalsColor4, getColor, getRenderable, markBoundsDirty, setColor, setColor |
Methods inherited from class org.j3d.aviatrix3d.Node |
boundsChanged, checkForCyclicParent, getBounds, getParent, recomputeBounds, removeParent, setBounds, setLive, setParent, updateBounds, updateParentBounds |
Methods inherited from class org.j3d.aviatrix3d.SceneGraphObject |
checkForCyclicChild, dataChanged, getUserData, isLive, setUpdateHandler, setUserData |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ColorBackground()
public ColorBackground(float[] c) throws java.lang.IllegalArgumentException
c
- The array of colours to use, or null
java.lang.IllegalArgumentException
- The colour array is not long enoughMethod Detail |
public void render(javax.media.opengl.GL gl)
gl
- The gl context to draw withpublic void postRender(javax.media.opengl.GL gl)
gl
- The gl context to draw withpublic int compareTo(java.lang.Object o) throws java.lang.ClassCastException
o
- The objec to be compared
java.lang.ClassCastException
- The specified object's type prevents it from
being compared to this Objectpublic boolean equals(java.lang.Object o)
o
- The object to be compared
public int compareTo(ColorBackground bg)
bg
- The argument instance to be compared
public boolean equals(ColorBackground bg)
bg
- The background instance to be compared
|
Aviatrix3D 2.0 Dev |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |