#include <transfer.h>
Public Methods | |
TLine (TLinePoint s, TLinePoint e, THistogram *h, int pd) | |
TLine (TLine &l) | |
TLine (const TLine &l) | |
const TLine & | operator= (const TLine &l) |
int __fastcall | getStartX (TPaintBox *pb) |
int __fastcall | getStartY (TPaintBox *pb) |
int __fastcall | getEndX (TPaintBox *pb) |
int __fastcall | getEndY (TPaintBox *pb) |
float __fastcall | getSlope (TPaintBox *pb) |
bool __fastcall | highSlope (TPaintBox *pb) |
bool __fastcall | isNear (TPaintBox *pb, int x, int y) |
void __fastcall | drawTo (TPaintBox *pb) |
Public Attributes | |
__property TLinePoint | Start = { read=_start, write=_start } |
__property TLinePoint | End = { read=_end, write=_end } |
__property bool | Selected = { read=_selected, write=_selected } |
Private Methods | |
void __fastcall | _drawMarker (TCanvas *c, TColor col, int x, int y, int width) |
void __fastcall | _drawCross (TCanvas *c, TColor col, int x, int y) |
Private Attributes | |
TLinePoint | _start |
TLinePoint | _end |
bool | _selected |
The class has to a start- and an endpoint.
|
Constructor. |
|
Constructor. |
|
Constructor. |
|
Draws a endpoint of an unselected line. |
|
Draws a marker, which should show that the line (or point) is selected. |
|
Draw the line to the TPaintBox pb. |
|
Returns the end points X in TPaintBox coordinates. |
|
Returns the end points Y in TPaintBox coordinates. |
|
Get the line slope in TPaintBox coordinates. |
|
Returns the start points X in TPaintBox coordinates. |
|
Returns the start points Y in TPaintBox coordinates. |
|
Is slope in TPaintBox coordinates greater than 1.0 . |
|
Returns true if the distance to the point (x,y) is smaler than DEF_DIST. |
|
Asignment Operator. |
|
The end point. |
|
Is the line selected. |
|
The start point. |
|
The end point. |
|
Is the line selected. |
|
The start point. |