CGfxGeneralPath Class Reference

class CGfxGeneralPath : public CBase

Implementation of a path.

Gfx2D.lib
Since
1.0

Inherits from

Public Member Functions
~CGfxGeneralPath()
voidAppendL(CGfxPathIterator *)
TFloatFixPt AreaSize()
CGfxGeneralPath *CloneL()
voidClosePathL()
TUint8 Count()
voidCount(TUint8)
voidCubicToL(TFloatFixPt &, TFloatFixPt &, TFloatFixPt &, TFloatFixPt &, TFloatFixPt &, TFloatFixPt &, TBool)
voidGetBounds(const TGfxAffineTransform &, TGfxRectangle2D &)
voidGetPathIteratorL(TGfxAffineTransform *, CGfxPathIterator *&)
voidGetPathIteratorL(TGfxAffineTransform *, TInt, CGfxPathIterator *&)
TInt GetSegmentCount()
TReal32 GetSegmentParameter(TInt, TInt)
TInt GetSegmentType(TInt)
voidHorizonToL(TFloatFixPt &, TBool)
voidIsHorizontalLineOrVertical(TInt, TBool &, TBool &)
voidLineToL(TFloatFixPt &, TFloatFixPt &, TBool)
voidMoveToL(TFloatFixPt &, TFloatFixPt &, TBool)
CGfxGeneralPath *NewL()
CGfxGeneralPath *NewLC()
unsigned char *PathSegmentTypeArray()
voidPathSegmentTypeArray(unsigned char *)
TFloatFixPt *PointCoordsArray()
RArray< TFloatFixPt > *PointCoordsArrayAll()
RArray< TUint32 > *PointTypeArray()
voidQuadToL(TFloatFixPt &, TFloatFixPt &, TFloatFixPt &, TFloatFixPt &, TBool)
voidQuadToLWithNoControlPoint(TFloatFixPt, TFloatFixPt)
voidRemoveLastPathCommand()
voidReset()
voidSetPointCoordsArrayL(RArray< TFloatFixPt > *)
voidSetPointCoordsArrayRef(RArray< TFloatFixPt > *&)
voidSetPointTypeArrayL(RArray< TUint32 > *)
voidSetPointTypeArrayRef(RArray< TUint32 > *&)
TInt ShapeType()
voidShortCubicToL(TFloatFixPt &, TFloatFixPt &, TFloatFixPt &, TFloatFixPt &, TBool)
voidShortQuadToL(TFloatFixPt &, TFloatFixPt &, TBool)
voidVertToL(TFloatFixPt &, TBool)
Protected Member Functions
CGfxGeneralPath()
voidConstructL()
voidGetCurveRefPoint(TFloatFixPt &, TFloatFixPt &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Protected Attributes
TUint8 iCount
TFloatFixPt iLastX
TFloatFixPt iLastY
unsigned char *iPathSegmentTypeArray
RArray< TFloatFixPt > *iPointCoords
RArray< TUint32 > *iPointTypes

Constructor & Destructor Documentation

CGfxGeneralPath()

CGfxGeneralPath()[protected]

Constructor

Since
1.0

~CGfxGeneralPath()

~CGfxGeneralPath()[virtual]

Destructor.

Since
1.0

Member Functions Documentation

AppendL(CGfxPathIterator *)

voidAppendL(CGfxPathIterator *aItr)

Append the given points to this path.

Since
1.0

Parameters

CGfxPathIterator * aItr: points to append.

AreaSize()

TFloatFixPt AreaSize()

Get the area for this path.

Since
1.0

CloneL()

CGfxGeneralPath *CloneL()

ClosePathL()

voidClosePathL()

Signal end of path to connect starting point to ending point.

Since
1.0

ConstructL()

voidConstructL()[protected]

Second phase of construction.

Since
1.0

Count()

TUint8 Count()

Count(TUint8)

voidCount(TUint8aCount)

Parameters

TUint8 aCount

CubicToL(TFloatFixPt &, TFloatFixPt &, TFloatFixPt &, TFloatFixPt &, TFloatFixPt &, TFloatFixPt &, TBool)

voidCubicToL(TFloatFixPt &aX1,
TFloatFixPt &aY1,
TFloatFixPt &aX2,
TFloatFixPt &aY2,
TFloatFixPt &aX3,
TFloatFixPt &aY3,
TBoolaAbsolute
)

Add a cubic curve.

Since
1.0

Parameters

TFloatFixPt & aX1: x coordinate for control point 1.
TFloatFixPt & aY1: y coordinate for control point 1.
TFloatFixPt & aX2: x coordinate for control point 2.
TFloatFixPt & aY2: y coordinate for control point 2.
TFloatFixPt & aX3: x coordinate for control point 3.
TFloatFixPt & aY3: y coordinate for control point 3.
TBool aAbsolute: flag to indicate values are absolute or not.

GetBounds(const TGfxAffineTransform &, TGfxRectangle2D &)

voidGetBounds(const TGfxAffineTransform &aAt,
TGfxRectangle2D &aRect
)

Get the bounding box for this path.

Since
1.0

Parameters

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

GetCurveRefPoint(TFloatFixPt &, TFloatFixPt &)

voidGetCurveRefPoint(TFloatFixPt &aX,
TFloatFixPt &aY
)[protected]

Get the curve reference point for this last curve.

Since
1.0

Parameters

TFloatFixPt & aX: storage for x coordinate of reference point.
TFloatFixPt & aY: storage for y coordinate of reference point.

GetPathIteratorL(TGfxAffineTransform *, CGfxPathIterator *&)

voidGetPathIteratorL(TGfxAffineTransform *aAt,
CGfxPathIterator *&aPitr
)

Get the iterator for this path.

Since
1.0

Parameters

TGfxAffineTransform * aAt: transform to apply.
CGfxPathIterator *& aPitr: iterator info for this path.

GetPathIteratorL(TGfxAffineTransform *, TInt, CGfxPathIterator *&)

voidGetPathIteratorL(TGfxAffineTransform *aAt,
TIntaLimit,
CGfxPathIterator *&aPitr
)

Get the iterator for this path.

Since
1.0

Parameters

TGfxAffineTransform * aAt: transform to apply.
TInt aLimit: maximum number of points to define path.
CGfxPathIterator *& aPitr: iterator info for this path.

GetSegmentCount()

TInt GetSegmentCount()

GetSegmentParameter(TInt, TInt)

TReal32 GetSegmentParameter(TIntaSegmentIndex,
TIntaParameterIndex
)

Parameters

TInt aSegmentIndex
TInt aParameterIndex

GetSegmentType(TInt)

TInt GetSegmentType(TIntaSegmentIndex)

Parameters

TInt aSegmentIndex

HorizonToL(TFloatFixPt &, TBool)

voidHorizonToL(TFloatFixPt &aX,
TBoolaAbsolute
)

Add a horizontal line from the current location.

Since
1.0

Parameters

TFloatFixPt & aX: x coordinate for ending point.
TBool aAbsolute: flag to indicate values are absolute or not.

IsHorizontalLineOrVertical(TInt, TBool &, TBool &)

voidIsHorizontalLineOrVertical(TIntaSegmentIndex,
TBool &aHorizontal,
TBool &aVertical
)

Parameters

TInt aSegmentIndex
TBool & aHorizontal
TBool & aVertical

LineToL(TFloatFixPt &, TFloatFixPt &, TBool)

voidLineToL(TFloatFixPt &aX,
TFloatFixPt &aY,
TBoolaAbsolute
)

Add a line.

Since
1.0

Parameters

TFloatFixPt & aX
TFloatFixPt & aY
TBool aAbsolute: flag to indicate values are absolute or not.

MoveToL(TFloatFixPt &, TFloatFixPt &, TBool)

voidMoveToL(TFloatFixPt &aX,
TFloatFixPt &aY,
TBoolaAbsolute
)

Start a new sub-path at the given location.

Since
1.0

Parameters

TFloatFixPt & aX
TFloatFixPt & aY
TBool aAbsolute: flag to indicate values are absolute or not.

NewL()

CGfxGeneralPath *NewL()[static]

Two-phase constructor.

Since
1.0

NewLC()

CGfxGeneralPath *NewLC()[static]

Two-phase constructor.

Since
1.0

PathSegmentTypeArray()

unsigned char *PathSegmentTypeArray()

PathSegmentTypeArray(unsigned char *)

voidPathSegmentTypeArray(unsigned char *aSegmentTypeArray)

Parameters

unsigned char * aSegmentTypeArray

PointCoordsArray()

TFloatFixPt *PointCoordsArray()

Get the pointer to the coordinate array.

Since
1.0

PointCoordsArrayAll()

RArray< TFloatFixPt > *PointCoordsArrayAll()

Get the pointer to the type array.

Since
1.0

PointTypeArray()

RArray< TUint32 > *PointTypeArray()

Get the pointer to the type array.

Since
1.0

QuadToL(TFloatFixPt &, TFloatFixPt &, TFloatFixPt &, TFloatFixPt &, TBool)

voidQuadToL(TFloatFixPt &aX1,
TFloatFixPt &aY1,
TFloatFixPt &aX2,
TFloatFixPt &aY2,
TBoolaAbsolute
)

Add a quadratic curve.

Since
1.0

Parameters

TFloatFixPt & aX1: x coordinate for control point 1.
TFloatFixPt & aY1: y coordinate for control point 1.
TFloatFixPt & aX2: x coordinate for control point 2.
TFloatFixPt & aY2: y coordinate for control point 2.
TBool aAbsolute: flag to indicate values are absolute or not.

QuadToLWithNoControlPoint(TFloatFixPt, TFloatFixPt)

voidQuadToLWithNoControlPoint(TFloatFixPtaX,
TFloatFixPtaY
)

Parameters

TFloatFixPt aX
TFloatFixPt aY

RemoveLastPathCommand()

voidRemoveLastPathCommand()

Reset()

voidReset()

Clear all path info.

Since
1.0

SetPointCoordsArrayL(RArray< TFloatFixPt > *)

voidSetPointCoordsArrayL(RArray< TFloatFixPt > *aPointCoords)

Set the pointer to the coordinate array.

Since
1.0

Parameters

RArray< TFloatFixPt > * aPointCoords: coordinate array.

SetPointCoordsArrayRef(RArray< TFloatFixPt > *&)

voidSetPointCoordsArrayRef(RArray< TFloatFixPt > *&aPointCoords)

Parameters

RArray< TFloatFixPt > *& aPointCoords

SetPointTypeArrayL(RArray< TUint32 > *)

voidSetPointTypeArrayL(RArray< TUint32 > *aTypesArray)

Set the pointer to the type array.

Since
1.0

Parameters

RArray< TUint32 > * aTypesArray: type info array pointer

SetPointTypeArrayRef(RArray< TUint32 > *&)

voidSetPointTypeArrayRef(RArray< TUint32 > *&aTypesArray)

Parameters

RArray< TUint32 > *& aTypesArray

ShapeType()

TInt ShapeType()[inline, virtual]

ShortCubicToL(TFloatFixPt &, TFloatFixPt &, TFloatFixPt &, TFloatFixPt &, TBool)

voidShortCubicToL(TFloatFixPt &aX2,
TFloatFixPt &aY2,
TFloatFixPt &aX3,
TFloatFixPt &aY3,
TBoolaAbsolute
)

Add a cubic curve, using the current location as the first control point.

Since
1.0

Parameters

TFloatFixPt & aX2: x coordinate for control point 2.
TFloatFixPt & aY2: y coordinate for control point 2.
TFloatFixPt & aX3: x coordinate for control point 3.
TFloatFixPt & aY3: y coordinate for control point 3.
TBool aAbsolute: flag to indicate values are absolute or not.

ShortQuadToL(TFloatFixPt &, TFloatFixPt &, TBool)

voidShortQuadToL(TFloatFixPt &aX2,
TFloatFixPt &aY2,
TBoolaAbsolute
)

Add a quadratic curve, using the current location as the first control point.

Since
1.0

Parameters

TFloatFixPt & aX2: x coordinate for control point 2.
TFloatFixPt & aY2: y coordinate for control point 2.
TBool aAbsolute: flag to indicate values are absolute or not.

VertToL(TFloatFixPt &, TBool)

voidVertToL(TFloatFixPt &aY,
TBoolaAbsolute
)

Add a vertical line from the current location.

Since
1.0

Parameters

TFloatFixPt & aY: y coordinate for ending point.
TBool aAbsolute: flag to indicate values are absolute or not.

Member Data Documentation

TUint8 iCount

TUint8 iCount[protected]

TFloatFixPt iLastX

TFloatFixPt iLastX[protected]

TFloatFixPt iLastY

TFloatFixPt iLastY[protected]

unsigned char * iPathSegmentTypeArray

unsigned char *iPathSegmentTypeArray[protected]

RArray< TFloatFixPt > * iPointCoords

RArray< TFloatFixPt > *iPointCoords[protected]

RArray< TUint32 > * iPointTypes

RArray< TUint32 > *iPointTypes[protected]