Aria
2.8.0
|
Class for ArLineFinder to hold more info than an ArLineSegment. More...
#include <ArLineFinder.h>
Inherits ArLineSegment.
Public Member Functions | |
ArLineFinderSegment (double x1, double y1, double x2, double y2, int numPoints=0, int startPoint=0, int endPoint=0) | |
double | getAveDistFromLine (void) |
int | getEndPoint (void) |
double | getLength (void) |
double | getLineAngle (void) |
int | getNumPoints (void) |
int | getStartPoint (void) |
void | newEndPoints (double x1, double y1, double x2, double y2, int numPoints=0, int startPoint=0, int endPoint=0) |
void | setAveDistFromLine (double aveDistFromLine) |
Public Member Functions inherited from ArLineSegment | |
ArLineSegment () | |
ArLineSegment (double x1, double y1, double x2, double y2) | |
Constructor with endpoints. More... | |
ArLineSegment (ArPose pose1, ArPose pose2) | |
Constructor with endpoints as ArPose objects. Only X and Y components of the poses will be used. | |
double | getA (void) const |
Gets the A line parameter (see ArLine) | |
double | getB (void) const |
Gets the B line parameter (see ArLine) | |
double | getC (void) const |
Gets the C line parameter (see ArLine) | |
double | getDistToLine (const ArPose &pose) const |
Gets the distance from this line segment to a point. More... | |
ArPose | getEndPoint1 (void) const |
Get the first endpoint (X1, Y1) | |
ArPose | getEndPoint2 (void) const |
Get the second endpoint of (X2, Y2) | |
double | getLengthOf () const |
Determines the length of the line segment. | |
const ArLine * | getLine (void) const |
ArPose | getMidPoint () const |
Determines the mid point of the line segment. | |
virtual double | getPerpDist (const ArPose &pose) const |
Calculate the distance from the given point to (its projection on) this line segment. More... | |
bool | getPerpPoint (const ArPose &pose, ArPose *perpPoint) const |
Determine the intersection point between this line segment, and a perpendicular line passing through the given pose (i.e. projects the given pose onto this line segment.) More... | |
bool | getPerpPoint (const ArPose *pose, ArPose *perpPoint) const |
virtual double | getPerpSquaredDist (const ArPose &pose) const |
Calculate the squared distance from the given point to (its projection on) this line segment. More... | |
double | getX1 (void) const |
Gets the x coordinate of the first endpoint. | |
double | getX2 (void) const |
Gets the x coordinate of the second endpoint. | |
double | getY1 (void) const |
Gets the y coordinate of the first endpoint. | |
double | getY2 (void) const |
Gets the y coordinate of the second endpoint. | |
bool | intersects (const ArLine *line, ArPose *pose) const |
Determine where a line intersects this line segment. More... | |
bool | intersects (ArLineSegment *line, ArPose *pose) const |
Determine where a line intersects this line segment. More... | |
bool | linePointIsInSegment (ArPose *pose) const |
Internal function for seeing if a point on our line is within our segment. | |
void | newEndPoints (double x1, double y1, double x2, double y2) |
Set new end points for this line segment. | |
void | newEndPoints (const ArPose &pt1, const ArPose &pt2) |
Set new end points for this line segment. | |
virtual bool | operator!= (const ArLineSegment &other) const |
virtual bool | operator< (const ArLineSegment &other) const |
Less than operator (for sets) | |
virtual bool | operator== (const ArLineSegment &other) const |
Equality operator (for sets) | |
Protected Attributes | |
double | myAveDistFromLine |
int | myEndPoint |
double | myLength |
double | myLineAngle |
int | myNumPoints |
int | myStartPoint |
Protected Attributes inherited from ArLineSegment | |
ArLine | myLine |
double | myX1 |
double | myX2 |
double | myY1 |
double | myY2 |
Class for ArLineFinder to hold more info than an ArLineSegment.