|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.opengl.util.SimpleRenderable
com.threerings.opengl.util.SimpleTransformable
com.threerings.opengl.scene.SimpleSceneElement
com.threerings.tudey.client.util.RectangleElement
public class RectangleElement
Draws a grid-aligned rectangle.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.threerings.opengl.scene.SceneElement |
|---|
SceneElement.TickPolicy |
| Field Summary | |
|---|---|
protected int |
_elevation
The elevation at which to draw the region. |
protected boolean |
_outline
Whether or not to draw the rectangle in outline mode. |
protected Rectangle |
_region
The outlined region. |
| Fields inherited from class com.threerings.opengl.scene.SimpleSceneElement |
|---|
_bounds, _influences, _lastVisit, _nbounds, _scene, _tickPolicy, _userObject |
| Fields inherited from class com.threerings.opengl.util.SimpleTransformable |
|---|
_transform |
| Fields inherited from class com.threerings.opengl.util.SimpleRenderable |
|---|
_batch, _ctx, _priority, _queue |
| Constructor Summary | |
|---|---|
RectangleElement(GlContext ctx,
boolean outline)
Creates a new rectangle element. |
|
| Method Summary | |
|---|---|
protected void |
computeBounds(Box result)
Computes the bounds of the element and places them in the provided result object. |
protected RenderState[] |
createStates()
Creates the state set for this object. |
protected void |
draw()
Draws the geometry in immediate mode. |
Color4f |
getColor()
Returns a reference to the box color. |
int |
getElevation()
Returns the elevation at which the box is being drawn. |
Rectangle |
getRegion()
Returns a reference to the outlined region. |
void |
setElevation(int elevation)
Sets the elevation at which to draw the box. |
| Methods inherited from class com.threerings.opengl.scene.SimpleSceneElement |
|---|
boundsDidChange, boundsWillChange, getBounds, getIntersection, getLocalBounds, getTickPolicy, getUserObject, setInfluences, setTickPolicy, setTransform, setUserObject, tick, updateBounds, updateLastVisit, wasAdded, willBeRemoved |
| Methods inherited from class com.threerings.opengl.util.SimpleTransformable |
|---|
enqueue, getCenter, getTransform |
| Methods inherited from class com.threerings.opengl.util.SimpleRenderable |
|---|
composite, createBatch, getStates |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.threerings.opengl.compositor.Compositable |
|---|
composite |
| Field Detail |
|---|
protected Rectangle _region
protected int _elevation
protected boolean _outline
| Constructor Detail |
|---|
public RectangleElement(GlContext ctx,
boolean outline)
| Method Detail |
|---|
public Color4f getColor()
public Rectangle getRegion()
public void setElevation(int elevation)
public int getElevation()
protected RenderState[] createStates()
SimpleRenderable
createStates in class SimpleTransformableprotected void computeBounds(Box result)
SimpleSceneElementSimpleSceneElement.getLocalBounds().
computeBounds in class SimpleSceneElementprotected void draw()
SimpleRenderable
draw in class SimpleRenderable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||