TGfxLine2D Class Reference

class TGfxLine2D : public MGfxShape

Implementation of a line.

Gfx2D.lib
Since
1.0

Inherits from

Constructor & Destructor Documentation

TGfxLine2D(const TFloatFixPt &, const TFloatFixPt &, const TFloatFixPt &, const TFloatFixPt &)

TGfxLine2D ( const TFloatFixPt & aX1,
const TFloatFixPt & aY1,
const TFloatFixPt & aX2,
const TFloatFixPt & aY2
)

Contructor.

Since
1.0

Parameters

const TFloatFixPt & aX1 : x coordinate of starting point.
const TFloatFixPt & aY1 : y coordinate of starting point.
const TFloatFixPt & aX2 : x coordinate of ending point.
const TFloatFixPt & aY2 : y coordinate of ending point.

TGfxLine2D(TGfxPoint2D, TGfxPoint2D)

TGfxLine2D ( TGfxPoint2D aP1,
TGfxPoint2D aP2
)

Contructor.

Since
1.0

Parameters

TGfxPoint2D aP1 : starting point.
TGfxPoint2D aP2 : ending point.

Member Functions Documentation

AreaSize()

TFloatFixPt AreaSize ( ) [virtual]

Get area of this line: zero.

Since
1.0

GetBounds(const TGfxAffineTransform &, TGfxRectangle2D &)

void GetBounds ( const TGfxAffineTransform & aAt,
TGfxRectangle2D & aRect
) [virtual]

Get the bounding box.

Since
1.0

Parameters

const TGfxAffineTransform & aAt : transform to apply.
TGfxRectangle2D & aRect : storage of bounding box info.

GetPathIteratorL(TGfxAffineTransform *, CGfxPathIterator *&)

void GetPathIteratorL ( TGfxAffineTransform * aAt,
CGfxPathIterator *& aPitr
) [virtual]

Get the path iterator for this line.

Since
1.0

Parameters

TGfxAffineTransform * aAt : transform to apply.
CGfxPathIterator *& aPitr : storage for iterator.

GetPathIteratorL(TGfxAffineTransform *, TInt, CGfxPathIterator *&)

void GetPathIteratorL ( TGfxAffineTransform * aAt,
TInt aLimit,
CGfxPathIterator *& aPitr
) [virtual]

Get the path iterator for this line.

Since
1.0

Parameters

TGfxAffineTransform * aAt : transform to apply.
TInt aLimit : maximum of point to define iterator.
CGfxPathIterator *& aPitr : storage for iterator.

Length()

TFloatFixPt Length ( )

Get the length of this line.

Since
1.0

ShapeType()

TInt ShapeType ( ) [inline, virtual]

Member Data Documentation

TFloatFixPt iX1

TFloatFixPt iX1

TFloatFixPt iX2

TFloatFixPt iX2

TFloatFixPt iY1

TFloatFixPt iY1

TFloatFixPt iY2

TFloatFixPt iY2