org.abora.white.filter
Class RegionDelta

java.lang.Object
  |
  +--org.abora.white.xpp.basic.Heaper
        |
        +--org.abora.white.filter.RegionDelta

public class RegionDelta
extends Heaper

A RegionDelta represents a change in the state of a Region, holding the state before and after some change. They are in some sense complementary to Joints: In the same way that you can use Filters to examine Joints, you can use RegionDeltas to examine Filters. See also Filter::isSwitchedBy(RegionDelta *) and related methods.


Field Summary
protected  XnRegion myAfter
           
protected  XnRegion myBefore
           
 
Constructor Summary
RegionDelta(Rcvr receiver)
           
RegionDelta(XnRegion before, XnRegion after)
           
 
Method Summary
 int actualHashForEqual()
          Defined by subclasses to produce the value returned by hashForEqual.
 XnRegion after()
          The region after the change.
 XnRegion before()
          The region before the change.
 boolean isEqual(Heaper other)
          Return true if the two objects are equal.
 boolean isSame()
          if the before and after are the same
static Heaper make(XnRegion before, XnRegion after)
           
 void sendSelfTo(Xmtr xmtr)
           
 
Methods inherited from class org.abora.white.xpp.basic.Heaper
destroy, destruct, equals, hashForEqual, printContentsOn, printOn, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

myBefore

protected XnRegion myBefore

myAfter

protected XnRegion myAfter
Constructor Detail

RegionDelta

public RegionDelta(XnRegion before,
                   XnRegion after)

RegionDelta

public RegionDelta(Rcvr receiver)
Method Detail

actualHashForEqual

public int actualHashForEqual()
Description copied from class: Heaper
Defined by subclasses to produce the value returned by hashForEqual.

Overrides:
actualHashForEqual in class Heaper

isEqual

public boolean isEqual(Heaper other)
Description copied from class: Heaper
Return true if the two objects are equal.

Specified by:
isEqual in class Heaper

isSame

public boolean isSame()
if the before and after are the same


after

public XnRegion after()
The region after the change.


before

public XnRegion before()
The region before the change.


sendSelfTo

public void sendSelfTo(Xmtr xmtr)
Overrides:
sendSelfTo in class Heaper

make

public static Heaper make(XnRegion before,
                          XnRegion after)


Copyright © 2003 David G Jones. All Rights Reserved.
Original Udanax-Gold - Copyright © 1979-1999 Udanax.com. All rights reserved.