GME
13
|
Go to the source code of this file.
Classes | |
class | CustomPathData |
class | CArFindNearestLine |
class | CPointListPath |
Defines | |
#define | CONNECTIONCUSTOMIZATIONDATAVERSION 0 |
#define | EMPTYCONNECTIONCUSTOMIZATIONDATAMAGIC "-1" |
Enumerations | |
enum | RoutingDirection { Dir_None = -1, Dir_Top = 0, Dir_Right = 1, Dir_Bottom = 2, Dir_Left = 3, Dir_Skew = 4 } |
enum | PathCustomizationType { Invalid = 0, SimpleEdgeDisplacement = 1, CustomPointCustomization = 2, NURBSEdgeCustomization = 3, NumOfPathCustomizationTypes = 4 } |
Functions | |
CRect | InflatedRect (const CRect &rect, int a) |
CRect | DeflatedRect (const CRect &rect, int a) |
bool | IsPointNear (const CPoint &p1, const CPoint &p2, int nearness=0) |
bool | IsPointIn (const CPoint &point, const CRect &rect, int nearness=0) |
bool | IsRectIn (const CRect &r1, const CRect &r2) |
bool | IsRectClip (const CRect &r1, const CRect &r2) |
bool | IsPointNearHLine (const CPoint &p, long x1, long x2, long y, int nearness=0) |
bool | IsPointNearVLine (const CPoint &p, long y1, long y2, long x, int nearness=0) |
int | DistanceFromHLine (const CPoint &p, long x1, long x2, long y) |
int | DistanceFromVLine (const CPoint &p, long y1, long y2, long x) |
double | DistanceSquareFromLine (const CPoint &start, const CPoint &end, const CPoint &pt) |
bool | IsOnEdge (const CPoint &start, const CPoint &end, const CPoint &pt, int nearness=3) |
bool | IsPointNearLine (const CPoint &point, const CPoint &start, const CPoint &end, int nearness=0) |
bool | IsLineMeetHLine (const CPoint &start, const CPoint &end, long x1, long x2, long y) |
bool | IsLineMeetVLine (const CPoint &start, const CPoint &end, long y1, long y2, long x) |
bool | IsLineClipRect (const CPoint &start, const CPoint &end, const CRect &rect) |
bool | Intersect (long first_x1, long first_x2, long second_x1, long second_x2) |
bool | IsHorizontal (RoutingDirection dir) |
bool | IsVertical (RoutingDirection dir) |
bool | IsRightAngle (RoutingDirection dir) |
bool | IsTopLeft (RoutingDirection dir) |
bool | IsBottomRight (RoutingDirection dir) |
bool | AreInRightAngle (RoutingDirection dir1, RoutingDirection dir2) |
RoutingDirection | NextClockwiseDir (RoutingDirection dir) |
RoutingDirection | PrevClockwiseDir (RoutingDirection dir) |
RoutingDirection | ReverseDir (RoutingDirection dir) |
CPoint | StepOneInDir (const CPoint &point, RoutingDirection dir) |
long & | GetRectCoord (CRect &rect, RoutingDirection dir) |
long | GetRectOuterCoord (const CRect &rect, RoutingDirection dir) |
long & | GetPointCoord (CPoint &point, bool ishorizontal) |
long & | GetPointCoord (CPoint &point, RoutingDirection dir) |
long | ChooseInDir (long a, long b, RoutingDirection dir) |
RoutingDirection | GetMajorDir (const CSize &offset) |
RoutingDirection | GetMinorDir (const CSize &offset) |
RoutingDirection | ExGetMajorDir (const CSize &offset) |
RoutingDirection | ExGetMinorDir (const CSize &offset) |
RoutingDirection | GetDir (const CSize &offset, RoutingDirection nodir=Dir_None) |
RoutingDirection | GetSkewDir (const CSize &offset, RoutingDirection nodir=Dir_None) |
bool | IsPointInDirFrom (const CPoint &point, const CPoint &from, RoutingDirection dir) |
bool | IsPointInDirFrom (const CPoint &point, const CRect &rect, RoutingDirection dir) |
bool | IsPointBetweenSides (const CPoint &point, const CRect &rect, bool ishorizontal=true) |
bool | IsPointBetweenSides (const CPoint &point, const CRect &rect, RoutingDirection dir) |
RoutingDirection | PointOnSide (const CPoint &point, const CRect &rect) |
bool | IsCoordInDirFrom (long coord, long from, RoutingDirection dir) |
RoutingDirection | OnWhichEdge (const CRect &rect, const CPoint &point) |
Variables | |
static const CPoint | emptyPoint = CPoint(-100000, -100000) |
#define CONNECTIONCUSTOMIZATIONDATAVERSION 0 |
Definition at line 37 of file ArHelper.h.
#define EMPTYCONNECTIONCUSTOMIZATIONDATAMAGIC "-1" |
Definition at line 38 of file ArHelper.h.
Invalid | |
SimpleEdgeDisplacement | |
CustomPointCustomization | |
NURBSEdgeCustomization | |
NumOfPathCustomizationTypes |
Definition at line 27 of file ArHelper.h.
enum RoutingDirection |
Definition at line 16 of file ArHelper.h.
bool AreInRightAngle | ( | RoutingDirection | dir1, |
RoutingDirection | dir2 | ||
) |
Definition at line 442 of file ArHelper.cpp.
long ChooseInDir | ( | long | a, |
long | b, | ||
RoutingDirection | dir | ||
) | [inline] |
Definition at line 132 of file ArHelper.h.
CRect DeflatedRect | ( | const CRect & | rect, |
int | a | ||
) |
Definition at line 240 of file ArHelper.cpp.
int DistanceFromHLine | ( | const CPoint & | p, |
long | x1, | ||
long | x2, | ||
long | y | ||
) |
Definition at line 288 of file ArHelper.cpp.
int DistanceFromVLine | ( | const CPoint & | p, |
long | y1, | ||
long | y2, | ||
long | x | ||
) |
Definition at line 295 of file ArHelper.cpp.
double DistanceSquareFromLine | ( | const CPoint & | start, |
const CPoint & | end, | ||
const CPoint & | pt | ||
) |
Definition at line 302 of file ArHelper.cpp.
RoutingDirection ExGetMajorDir | ( | const CSize & | offset | ) |
Definition at line 695 of file ArHelper.cpp.
RoutingDirection ExGetMinorDir | ( | const CSize & | offset | ) |
Definition at line 721 of file ArHelper.cpp.
RoutingDirection GetDir | ( | const CSize & | offset, |
RoutingDirection | nodir = Dir_None |
||
) |
Definition at line 726 of file ArHelper.cpp.
RoutingDirection GetMajorDir | ( | const CSize & | offset | ) |
Definition at line 560 of file ArHelper.cpp.
RoutingDirection GetMinorDir | ( | const CSize & | offset | ) |
Definition at line 577 of file ArHelper.cpp.
long& GetPointCoord | ( | CPoint & | point, |
bool | ishorizontal | ||
) | [inline] |
Definition at line 130 of file ArHelper.h.
long& GetPointCoord | ( | CPoint & | point, |
RoutingDirection | dir | ||
) | [inline] |
Definition at line 131 of file ArHelper.h.
long& GetRectCoord | ( | CRect & | rect, |
RoutingDirection | dir | ||
) |
Definition at line 499 of file ArHelper.cpp.
long GetRectOuterCoord | ( | const CRect & | rect, |
RoutingDirection | dir | ||
) |
Definition at line 518 of file ArHelper.cpp.
RoutingDirection GetSkewDir | ( | const CSize & | offset, |
RoutingDirection | nodir = Dir_None |
||
) |
Definition at line 750 of file ArHelper.cpp.
CRect InflatedRect | ( | const CRect & | rect, |
int | a | ||
) |
Definition at line 233 of file ArHelper.cpp.
bool Intersect | ( | long | first_x1, |
long | first_x2, | ||
long | second_x1, | ||
long | second_x2 | ||
) |
Definition at line 433 of file ArHelper.cpp.
bool IsBottomRight | ( | RoutingDirection | dir | ) | [inline] |
Definition at line 121 of file ArHelper.h.
bool IsCoordInDirFrom | ( | long | coord, |
long | from, | ||
RoutingDirection | dir | ||
) |
Definition at line 846 of file ArHelper.cpp.
bool IsHorizontal | ( | RoutingDirection | dir | ) | [inline] |
Definition at line 117 of file ArHelper.h.
bool IsLineClipRect | ( | const CPoint & | start, |
const CPoint & | end, | ||
const CRect & | rect | ||
) |
Definition at line 422 of file ArHelper.cpp.
bool IsLineMeetHLine | ( | const CPoint & | start, |
const CPoint & | end, | ||
long | x1, | ||
long | x2, | ||
long | y | ||
) |
Definition at line 382 of file ArHelper.cpp.
bool IsLineMeetVLine | ( | const CPoint & | start, |
const CPoint & | end, | ||
long | y1, | ||
long | y2, | ||
long | x | ||
) |
Definition at line 402 of file ArHelper.cpp.
Definition at line 314 of file ArHelper.cpp.
bool IsPointBetweenSides | ( | const CPoint & | point, |
const CRect & | rect, | ||
bool | ishorizontal = true |
||
) |
Definition at line 819 of file ArHelper.cpp.
bool IsPointBetweenSides | ( | const CPoint & | point, |
const CRect & | rect, | ||
RoutingDirection | dir | ||
) | [inline] |
Definition at line 143 of file ArHelper.h.
Definition at line 253 of file ArHelper.cpp.
bool IsPointInDirFrom | ( | const CPoint & | point, |
const CPoint & | from, | ||
RoutingDirection | dir | ||
) |
Definition at line 775 of file ArHelper.cpp.
bool IsPointInDirFrom | ( | const CPoint & | point, |
const CRect & | rect, | ||
RoutingDirection | dir | ||
) |
Definition at line 797 of file ArHelper.cpp.
bool IsPointNear | ( | const CPoint & | p1, |
const CPoint & | p2, | ||
int | nearness = 0 |
||
) |
Definition at line 247 of file ArHelper.cpp.
bool IsPointNearHLine | ( | const CPoint & | p, |
long | x1, | ||
long | x2, | ||
long | y, | ||
int | nearness = 0 |
||
) |
Definition at line 272 of file ArHelper.cpp.
bool IsPointNearLine | ( | const CPoint & | point, |
const CPoint & | start, | ||
const CPoint & | end, | ||
int | nearness = 0 |
||
) |
Definition at line 349 of file ArHelper.cpp.
bool IsPointNearVLine | ( | const CPoint & | p, |
long | y1, | ||
long | y2, | ||
long | x, | ||
int | nearness = 0 |
||
) |
Definition at line 280 of file ArHelper.cpp.
bool IsRectClip | ( | const CRect & | r1, |
const CRect & | r2 | ||
) |
Definition at line 266 of file ArHelper.cpp.
bool IsRectIn | ( | const CRect & | r1, |
const CRect & | r2 | ||
) |
Definition at line 260 of file ArHelper.cpp.
bool IsRightAngle | ( | RoutingDirection | dir | ) | [inline] |
Definition at line 119 of file ArHelper.h.
bool IsTopLeft | ( | RoutingDirection | dir | ) | [inline] |
Definition at line 120 of file ArHelper.h.
bool IsVertical | ( | RoutingDirection | dir | ) | [inline] |
Definition at line 118 of file ArHelper.h.
Definition at line 448 of file ArHelper.cpp.
RoutingDirection OnWhichEdge | ( | const CRect & | rect, |
const CPoint & | point | ||
) |
Definition at line 856 of file ArHelper.cpp.
RoutingDirection PointOnSide | ( | const CPoint & | point, |
const CRect & | rect | ||
) |
Definition at line 827 of file ArHelper.cpp.
Definition at line 456 of file ArHelper.cpp.
Definition at line 464 of file ArHelper.cpp.
CPoint StepOneInDir | ( | const CPoint & | point, |
RoutingDirection | dir | ||
) |
Definition at line 472 of file ArHelper.cpp.
const CPoint emptyPoint = CPoint(-100000, -100000) [static] |
Definition at line 93 of file ArHelper.h.