Facemorph.haar
Interface CascadeListener

All Known Implementing Classes:
HaarDemo, HaarDemoApplet

public interface CascadeListener

Listener for animating the Haar wavelet search


Method Summary
 void addRect(int x, int y, int w, int h, double weight)
          Add the given rectangle (for drawing)
 void addTiltedRect(int x, int y, int w, int h, double weight)
          Add the given tilted rectangle (for drawing)
 void clearRects()
          clear the rectangles
 void drawRects()
          Draw the rectangles
 void setSearchRect(int x, int y, int w, int h)
          Sets the search rectangle (for drawing)
 

Method Detail

clearRects

void clearRects()
clear the rectangles


drawRects

void drawRects()
Draw the rectangles


addRect

void addRect(int x,
             int y,
             int w,
             int h,
             double weight)
Add the given rectangle (for drawing)

Parameters:
x - the x-coord
y - the y-ccord
w - the width
h - the height
weight - the weighting

addTiltedRect

void addTiltedRect(int x,
                   int y,
                   int w,
                   int h,
                   double weight)
Add the given tilted rectangle (for drawing)

Parameters:
x - the x-coord
y - the y-ccord
w - the width
h - the height
weight - the weighting

setSearchRect

void setSearchRect(int x,
                   int y,
                   int w,
                   int h)
Sets the search rectangle (for drawing)

Parameters:
x - the x-coord
y - the y-ccord
w - the width
h - the height