GME  13
Functions | Variables
ArHelper.cpp File Reference

Go to the source code of this file.

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)
bool IsPointIn (const CPoint &point, const CRect &rect, int nearness)
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)
bool IsPointNearVLine (const CPoint &p, long y1, long y2, long x, int nearness)
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)
bool IsPointNearLine (const CPoint &point, const CPoint &start, const CPoint &end, int nearness)
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 a1, long a2, long b1, long b2)
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)
int GetDirTableIndex (const CSize &offset)
RoutingDirection GetMajorDir (const CSize &offset)
RoutingDirection GetMinorDir (const CSize &offset)
int ExGetDirTableIndex (const CSize &offset)
RoutingDirection ExGetMajorDir (const CSize &offset)
RoutingDirection ExGetMinorDir (const CSize &offset)
RoutingDirection GetDir (const CSize &offset, RoutingDirection nodir)
RoutingDirection GetSkewDir (const CSize &offset, RoutingDirection nodir)
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)
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

RoutingDirection majordir_table []
RoutingDirection minordir_table []
RoutingDirection exmajordir_table [17]
RoutingDirection exminordir_table [17]

Function Documentation

Definition at line 442 of file ArHelper.cpp.

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.

int ExGetDirTableIndex ( const CSize &  offset)

Definition at line 588 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 
)

Definition at line 726 of file ArHelper.cpp.

int GetDirTableIndex ( const CSize &  offset)

Definition at line 543 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& 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 
)

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  a1,
long  a2,
long  b1,
long  b2 
)

Definition at line 433 of file ArHelper.cpp.

bool IsCoordInDirFrom ( long  coord,
long  from,
RoutingDirection  dir 
)

Definition at line 846 of file ArHelper.cpp.

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.

bool IsOnEdge ( const CPoint &  start,
const CPoint &  end,
const CPoint &  pt,
int  nearness 
)

Definition at line 314 of file ArHelper.cpp.

bool IsPointBetweenSides ( const CPoint &  point,
const CRect &  rect,
bool  ishorizontal 
)

Definition at line 819 of file ArHelper.cpp.

bool IsPointIn ( const CPoint &  point,
const CRect &  rect,
int  nearness 
)

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 
)

Definition at line 247 of file ArHelper.cpp.

bool IsPointNearHLine ( const CPoint &  p,
long  x1,
long  x2,
long  y,
int  nearness 
)

Definition at line 272 of file ArHelper.cpp.

bool IsPointNearLine ( const CPoint &  point,
const CPoint &  start,
const CPoint &  end,
int  nearness 
)

Definition at line 349 of file ArHelper.cpp.

bool IsPointNearVLine ( const CPoint &  p,
long  y1,
long  y2,
long  x,
int  nearness 
)

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.

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.


Variable Documentation

Initial value:

Definition at line 548 of file ArHelper.cpp.

Initial value:

Definition at line 565 of file ArHelper.cpp.