com.threerings.tudey.client.util
Class ShapeSceneElement

java.lang.Object
  extended by com.threerings.opengl.util.SimpleRenderable
      extended by com.threerings.opengl.util.SimpleTransformable
          extended by com.threerings.opengl.scene.SimpleSceneElement
              extended by com.threerings.tudey.client.util.ShapeSceneElement
All Implemented Interfaces:
Compositable, Enqueueable, SceneElement, SceneObject, Intersectable, Tickable

public class ShapeSceneElement
extends SimpleSceneElement

Draws a shape in the scene.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.threerings.opengl.scene.SceneElement
SceneElement.TickPolicy
 
Constructor Summary
ShapeSceneElement(GlContext ctx, boolean outline)
          Creates a new shape scene element.
 
Method Summary
 Color4f getColor()
          Returns a reference to the color.
 Shape getShape()
          Returns a reference to the shape being drawn.
 void setShape(Shape shape)
          Sets the shape to draw.
 
Methods inherited from class com.threerings.opengl.scene.SimpleSceneElement
getBounds, getIntersection, 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, getStates
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.threerings.opengl.compositor.Compositable
composite
 

Constructor Detail

ShapeSceneElement

public ShapeSceneElement(GlContext ctx,
                         boolean outline)
Creates a new shape scene element.

Method Detail

setShape

public void setShape(Shape shape)
Sets the shape to draw.


getShape

public Shape getShape()
Returns a reference to the shape being drawn.


getColor

public Color4f getColor()
Returns a reference to the color.



Copyright © 2011. All Rights Reserved.