TSvgFourPointRect Class Reference

class TSvgFourPointRect : public MRect

This class implements the interface for a MRect object

SVGEngine.lib
Since
1.0

Inherits from

Constructor & Destructor Documentation

TSvgFourPointRect()

TSvgFourPointRect()

Construct a rectangle.

Since
1.0

TSvgFourPointRect(TPoint, TPoint, TPoint, TPoint)

TSvgFourPointRect(TPointaPoint1,
TPointaPoint2,
TPointaPoint3,
TPointaPoint4
)

Parameters

TPoint aPoint1
TPoint aPoint2
TPoint aPoint3
TPoint aPoint4

TSvgFourPointRect(TGfxRectangle2D)

TSvgFourPointRect(TGfxRectangle2DaRect)

Parameters

TGfxRectangle2D aRect

TSvgFourPointRect(TGfxPoint2D, TGfxPoint2D, TGfxPoint2D, TGfxPoint2D)

TSvgFourPointRect(TGfxPoint2DaPoint1,
TGfxPoint2DaPoint2,
TGfxPoint2DaPoint3,
TGfxPoint2DaPoint4
)

Parameters

TGfxPoint2D aPoint1
TGfxPoint2D aPoint2
TGfxPoint2D aPoint3
TGfxPoint2D aPoint4

TSvgFourPointRect(TFloatFixPt, TFloatFixPt, TFloatFixPt, TFloatFixPt)

TSvgFourPointRect(TFloatFixPtaX,
TFloatFixPtaY,
TFloatFixPtaWidth,
TFloatFixPtaHeight
)

Parameters

TFloatFixPt aX
TFloatFixPt aY
TFloatFixPt aWidth
TFloatFixPt aHeight

Member Functions Documentation

Center(TPoint &)

voidCenter(TPoint &aCenter)[virtual]

Determine the center point of this rectangle

Since
1.0

Parameters

TPoint & aCenterthe center point

GetPoints(TPoint &, TPoint &, TPoint &, TPoint &)

voidGetPoints(TPoint &aPoint1,
TPoint &aPoint2,
TPoint &aPoint3,
TPoint &aPoint4
)const [virtual]

Get the four points for a rectangle

Since
1.0

Parameters

TPoint & aPoint1
TPoint & aPoint2
TPoint & aPoint3
TPoint & aPoint4

GetPoints(TGfxPoint2D &, TGfxPoint2D &, TGfxPoint2D &, TGfxPoint2D &)

voidGetPoints(TGfxPoint2D &aPoint1,
TGfxPoint2D &aPoint2,
TGfxPoint2D &aPoint3,
TGfxPoint2D &aPoint4
)

Parameters

TGfxPoint2D & aPoint1
TGfxPoint2D & aPoint2
TGfxPoint2D & aPoint3
TGfxPoint2D & aPoint4

GetTRect(TRect &)

voidGetTRect(TRect &aRect)

Parameters

TRect & aRect

GetTRect(TGfxRectangle2D &)

voidGetTRect(TGfxRectangle2D &aRect)

Parameters

TGfxRectangle2D & aRect

Intersects(const MRect &)

TBool Intersects(const MRect &aRect)[virtual]

Determine if the given rectangle intersects with this rectangle.

Since
1.0

Parameters

const MRect & aRect: rectangle to check for intersection.

SetRectPoints(TFloatFixPt, TFloatFixPt, TFloatFixPt, TFloatFixPt)

voidSetRectPoints(TFloatFixPtaX,
TFloatFixPtaY,
TFloatFixPtaWidth,
TFloatFixPtaHeight
)

Parameters

TFloatFixPt aX
TFloatFixPt aY
TFloatFixPt aWidth
TFloatFixPt aHeight

SetRectPoints(TPoint, TPoint, TPoint, TPoint)

voidSetRectPoints(TPointaPoint1,
TPointaPoint2,
TPointaPoint3,
TPointaPoint4
)

Parameters

TPoint aPoint1
TPoint aPoint2
TPoint aPoint3
TPoint aPoint4

SetRectPoints(TGfxPoint2D, TGfxPoint2D, TGfxPoint2D, TGfxPoint2D)

voidSetRectPoints(TGfxPoint2DaPoint1,
TGfxPoint2DaPoint2,
TGfxPoint2DaPoint3,
TGfxPoint2DaPoint4
)

Parameters

TGfxPoint2D aPoint1
TGfxPoint2D aPoint2
TGfxPoint2D aPoint3
TGfxPoint2D aPoint4

SetRectPoints(TGfxRectangle2D)

voidSetRectPoints(TGfxRectangle2DaRect)

Parameters

TGfxRectangle2D aRect

Member Data Documentation

TGfxPoint2D iPoint1

TGfxPoint2D iPoint1

Determine if the given point is contained within this rectangle.

Since
1.0

TGfxPoint2D iPoint2

TGfxPoint2D iPoint2

TGfxPoint2D iPoint3

TGfxPoint2D iPoint3

TGfxPoint2D iPoint4

TGfxPoint2D iPoint4