com.threerings.tudey.client.util
Class AreaElement
java.lang.Object
com.threerings.opengl.util.SimpleRenderable
com.threerings.opengl.util.SimpleTransformable
com.threerings.opengl.scene.SimpleSceneElement
com.threerings.tudey.client.util.AreaElement
- All Implemented Interfaces:
- Compositable, Enqueueable, SceneElement, SceneObject, Intersectable, Tickable
public class AreaElement
- extends SimpleSceneElement
Displays a solid area.
| Methods inherited from class com.threerings.opengl.scene.SimpleSceneElement |
getBounds, getTickPolicy, getUserObject, setInfluences, setTickPolicy, setTransform, setUserObject, tick, updateBounds, updateLastVisit, wasAdded, willBeRemoved |
AreaElement
public AreaElement(GlContext ctx)
- Creates a new area element.
setVertices
public void setVertices(TudeySceneModel.Vertex[] vertices)
- Sets the vertices of the area.
getColor
public Color4f getColor()
- Returns a reference to the outline color.
setVisible
public void setVisible(boolean visible)
- Update the visibility.
getIntersection
public boolean getIntersection(Ray3D ray,
Vector3f result)
- Description copied from interface:
Intersectable
- Finds the intersection of a ray with this object and places it in the supplied vector
(if it exists).
- Specified by:
getIntersection in interface Intersectable- Overrides:
getIntersection in class SimpleSceneElement
- Returns:
- true if the ray intersected the object (in which case the result will contain the
point of intersection), false otherwise.
Copyright © 2011. All Rights Reserved.