|
|||||||||
| 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.AreaElement
public class AreaElement
Displays a solid area.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.threerings.opengl.scene.SceneElement |
|---|
SceneElement.TickPolicy |
| Field Summary | |
|---|---|
protected Vector3f |
_center
The model space center. |
protected Triangle |
_triangle
Triangle used for intersection testing. |
protected TudeySceneModel.Vertex[] |
_vertices
The vertices of the area. |
protected boolean |
_visible
Are we visible? |
| 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 | |
|---|---|
AreaElement(GlContext ctx)
Creates a new area 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. |
protected Vector3f |
getCenter()
Returns the transformable's model space center. |
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). |
void |
setVertices(TudeySceneModel.Vertex[] vertices)
Sets the vertices of the area. |
void |
setVisible(boolean visible)
Update the visibility. |
| Methods inherited from class com.threerings.opengl.scene.SimpleSceneElement |
|---|
boundsDidChange, boundsWillChange, getBounds, getLocalBounds, getTickPolicy, getUserObject, setInfluences, setTickPolicy, setTransform, setUserObject, tick, updateBounds, updateLastVisit, wasAdded, willBeRemoved |
| Methods inherited from class com.threerings.opengl.util.SimpleTransformable |
|---|
enqueue, 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 TudeySceneModel.Vertex[] _vertices
protected Vector3f _center
protected Triangle _triangle
protected boolean _visible
| Constructor Detail |
|---|
public AreaElement(GlContext ctx)
| Method Detail |
|---|
public void setVertices(TudeySceneModel.Vertex[] vertices)
public Color4f getColor()
public void setVisible(boolean visible)
public boolean getIntersection(Ray3D ray,
Vector3f result)
Intersectable
getIntersection in interface IntersectablegetIntersection in class SimpleSceneElementprotected RenderState[] createStates()
SimpleRenderable
createStates in class SimpleTransformableprotected void computeBounds(Box result)
SimpleSceneElementSimpleSceneElement.getLocalBounds().
computeBounds in class SimpleSceneElementprotected void draw()
SimpleRenderable
draw in class SimpleRenderableprotected Vector3f getCenter()
SimpleTransformable
getCenter in class SimpleTransformable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||