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

SRCollider Class Reference

#include <Collider.h>

Inheritance diagram for SRCollider:

Collider List of all members.

Public Member Functions

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

Public Attributes

double x1
double x2
double y1
double y2

Protected Member Functions

int getId ()

Detailed Description

Segment regression : This can bound a symbol looking like a segment (Slur, Beams)


Constructor & Destructor Documentation

SRCollider::SRCollider double  px1,
double  py1,
double  px2,
double  py2
 

The condition for the construction of a Collider Segment regression box is x1<x2 If those conditions are not met then a correction is applied.


Member Function Documentation

bool SRCollider::collide VLGroupCollider vlgc  )  [virtual]
 

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

Implements Collider.

bool SRCollider::collide VLCollider vl  )  [virtual]
 

Compute if a vertical line collide with a Segment regression

Implements Collider.

bool SRCollider::collide SRCollider sr  )  [virtual]
 

Returns:
true if the sr reg collide the segment regression
Parameters:
sr the sr

Implements Collider.

bool SRCollider::collide BBCollider bb  )  [virtual]
 

Returns:
true if the bounding box collide the segment regression
Parameters:
bb the bb regression

Implements Collider.

double SRCollider::xCollision  )  [virtual]
 

Returns:
the x coord a a collision

Reimplemented from Collider.

double SRCollider::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:36 2004 for Alternate Take by doxygen 1.3.6