com.threerings.tudey.config
Class HandlerConfig.DefaultShape

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.tudey.config.HandlerConfig.IntersectionShape
          extended by com.threerings.tudey.config.HandlerConfig.DefaultShape
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Enclosing class:
HandlerConfig

public static class HandlerConfig.DefaultShape
extends HandlerConfig.IntersectionShape

Uses the source's shape with an optional expansion.


Field Summary
 float expansion
          The amount to expand the shape.
 
Constructor Summary
HandlerConfig.DefaultShape()
           
 
Method Summary
 Shape getShape(Shape source, Transform2D transform, Shape result)
          Returns the intersection shape based on the source shape and transform.
 
Methods inherited from class com.threerings.tudey.config.HandlerConfig.IntersectionShape
invalidate
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

expansion

@Editable(step=0.01)
public float expansion
The amount to expand the shape.

Constructor Detail

HandlerConfig.DefaultShape

public HandlerConfig.DefaultShape()
Method Detail

getShape

public Shape getShape(Shape source,
                      Transform2D transform,
                      Shape result)
Description copied from class: HandlerConfig.IntersectionShape
Returns the intersection shape based on the source shape and transform.

Specified by:
getShape in class HandlerConfig.IntersectionShape
result - a result object to reuse if possible.


Copyright © 2011. All Rights Reserved.