com.threerings.tudey.config
Class HandlerConfig.IntersectionShape

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

@EditorTypes(value={HandlerConfig.DefaultShape.class,HandlerConfig.TransformedShape.class})
@Strippable
public abstract static class HandlerConfig.IntersectionShape
extends DeepObject
implements Exportable

Base class for the intersection shapes.


Constructor Summary
HandlerConfig.IntersectionShape()
           
 
Method Summary
abstract  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
 

Constructor Detail

HandlerConfig.IntersectionShape

public HandlerConfig.IntersectionShape()
Method Detail

getShape

public abstract Shape getShape(Shape source,
                               Transform2D transform,
                               Shape result)
Returns the intersection shape based on the source shape and transform.

Parameters:
result - a result object to reuse if possible.

invalidate

public void invalidate()
Invalidates any cached data.



Copyright © 2011. All Rights Reserved.