|
|||||||||
| 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.ShapeConfigElement
public class ShapeConfigElement
Draws a shape from its config.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.threerings.opengl.scene.SceneElement |
|---|
SceneElement.TickPolicy |
| Field Summary | |
|---|---|
protected DisplayList |
_list
The display list containing the shape draw commands. |
protected Box |
_localBounds
The local bounds of the shape. |
protected Shape |
_shape
The untransformed shape, or null if non-intersectable. |
| 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 | |
|---|---|
ShapeConfigElement(GlContext ctx)
Creates a new shape config element. |
|
| Method Summary | |
|---|---|
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 outline color. |
boolean |
getIntersection(Ray3D ray,
Vector3f result)
Finds the intersection of a ray with this object and places it in the supplied vector (if it exists). |
protected Box |
getLocalBounds()
Returns the local bounds of the element. |
void |
setConfig(ShapeConfig config,
boolean outline)
Sets the configuration of the shape to draw. |
| Methods inherited from class com.threerings.opengl.scene.SimpleSceneElement |
|---|
boundsDidChange, boundsWillChange, computeBounds, getBounds, 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 Box _localBounds
protected DisplayList _list
protected Shape _shape
null if non-intersectable.
| Constructor Detail |
|---|
public ShapeConfigElement(GlContext ctx)
| Method Detail |
|---|
public void setConfig(ShapeConfig config,
boolean outline)
outline - if true, draw the outline of the shape; if false, draw the solid form.public Color4f getColor()
protected RenderState[] createStates()
SimpleRenderable
createStates in class SimpleTransformable
public boolean getIntersection(Ray3D ray,
Vector3f result)
Intersectable
getIntersection in interface IntersectablegetIntersection in class SimpleSceneElementprotected Box getLocalBounds()
SimpleSceneElementBox.ZERO;
override to return actual local bounds.
getLocalBounds 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 | ||||||||