com.threerings.tudey.config
Class HandlerConfig.TransformedShape

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

public static class HandlerConfig.TransformedShape
extends HandlerConfig.IntersectionShape

Uses a different shape, transformed by the source's transform.


Field Summary
 ShapeConfig shape
          The shape to use.
 
Constructor Summary
HandlerConfig.TransformedShape()
           
 
Method Summary
 Shape getShape(Shape source, Transform2D transform, Shape result)
          Returns the intersection shape based on the source shape and transform.
 void invalidate()
          Invalidates any cached data.
 
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

shape

@Editable
public ShapeConfig shape
The shape to use.

Constructor Detail

HandlerConfig.TransformedShape

public HandlerConfig.TransformedShape()
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.

invalidate

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

Overrides:
invalidate in class HandlerConfig.IntersectionShape


Copyright © 2011. All Rights Reserved.