Main Page | Modules | Class Hierarchy | Class List | File List | Class Members | Related Pages

BBCollider Class Reference

#include <Collider.h>

Inheritance diagram for BBCollider:

Collider List of all members.

Public Member Functions

 BBCollider (double, double, double, double)
bool collide (BBCollider *bbc)
bool collide (SRCollider *src)
bool collide (VLCollider *vlc)
bool collide (VLGroupCollider *vlgc)
double getRightX ()
virtual double xCollision ()
virtual double yCollision ()

Public Attributes

double x1
double x2
double y1
double y2

Protected Member Functions

int getId ()

Protected Attributes

double xcl
double ycl

Detailed Description

Bounding Box Regression : This can bound a symbol looking like a box (NoteHead)


Constructor & Destructor Documentation

BBCollider::BBCollider double  px1,
double  py1,
double  px2,
double  py2
 

The condition for the construction of a Collider bounding box is x1<x2, y1<y2 If those conditions are not met then a correction is applied.


Member Function Documentation

bool BBCollider::collide VLGroupCollider vlgc  )  [virtual]
 

Returns:
true if the BB collide with the VLgroup false otherwhise

Implements Collider.

bool BBCollider::collide VLCollider sr  )  [virtual]
 

Returns:
the collision beetween a VL and a BB

Implements Collider.

bool BBCollider::collide SRCollider sr  )  [virtual]
 

Returns:
true if the bounding box collide the segment regression
Parameters:
sr sthe segment regression

Implements Collider.

double BBCollider::xCollision  )  [virtual]
 

Returns:
the x coord a a collision

Reimplemented from Collider.

double BBCollider::yCollision  )  [virtual]
 

Returns:
the y coord a collision

Reimplemented from Collider.


The documentation for this class was generated from the following files:
Generated on Tue Jun 1 21:13:31 2004 for Alternate Take by doxygen 1.3.6