com.threerings.tudey.shape.config
Class ShapeConfig.Compound

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.tudey.shape.config.ShapeConfig
          extended by com.threerings.tudey.shape.config.ShapeConfig.Compound
All Implemented Interfaces:
Exportable, Streamable, Copyable, Cloneable
Enclosing class:
ShapeConfig

public static class ShapeConfig.Compound
extends ShapeConfig

A compound shape.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.tudey.shape.config.ShapeConfig
ShapeConfig.Capsule, ShapeConfig.Circle, ShapeConfig.Compound, ShapeConfig.Global, ShapeConfig.None, ShapeConfig.Point, ShapeConfig.Polygon, ShapeConfig.Rectangle, ShapeConfig.Segment, ShapeConfig.TransformedShape, ShapeConfig.Vertex
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
Streamable.Closure
 
Field Summary
 ShapeConfig.TransformedShape[] shapes
          The component shapes.
 
Fields inherited from class com.threerings.tudey.shape.config.ShapeConfig
_bounds, _outlineList, _shape, _solidList, CIRCLE_INCREMENT, CIRCLE_SEGMENTS
 
Constructor Summary
ShapeConfig.Compound()
           
 
Method Summary
protected  Shape createShape()
          Creates the untransformed shape corresponding to this config.
protected  void draw(boolean outline)
          Draws this shape in immediate mode.
 void invalidate()
          Invalidates any cached data.
 
Methods inherited from class com.threerings.tudey.shape.config.ShapeConfig
getBounds, getList, getShape
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

shapes

@Editable
public ShapeConfig.TransformedShape[] shapes
The component shapes.

Constructor Detail

ShapeConfig.Compound

public ShapeConfig.Compound()
Method Detail

invalidate

public void invalidate()
Description copied from class: ShapeConfig
Invalidates any cached data.

Overrides:
invalidate in class ShapeConfig

createShape

protected Shape createShape()
Description copied from class: ShapeConfig
Creates the untransformed shape corresponding to this config.

Specified by:
createShape in class ShapeConfig

draw

protected void draw(boolean outline)
Description copied from class: ShapeConfig
Draws this shape in immediate mode.

Specified by:
draw in class ShapeConfig
Parameters:
outline - if true, draw the outline of the shape; otherwise, draw the solid form.