CGfxGeneralPath Class Reference

class CGfxGeneralPath : public CBase

Implementation of a path.

Gfx2D.lib
Since
1.0

Inherits from

Public Member Functions
~CGfxGeneralPath ()
void AppendL ( CGfxPathIterator *)
TFloatFixPt AreaSize ()
CGfxGeneralPath * CloneL ()
void ClosePathL ()
TUint8 Count ()
void Count ( TUint8 )
void CubicToL ( TFloatFixPt &, TFloatFixPt &, TFloatFixPt &, TFloatFixPt &, TFloatFixPt &, TFloatFixPt &, TBool )
void GetBounds (const TGfxAffineTransform &, TGfxRectangle2D &)
void GetPathIteratorL ( TGfxAffineTransform *, CGfxPathIterator *&)
void GetPathIteratorL ( TGfxAffineTransform *, TInt , CGfxPathIterator *&)
TInt GetSegmentCount ()
TReal32 GetSegmentParameter ( TInt , TInt )
TInt GetSegmentType ( TInt )
void HorizonToL ( TFloatFixPt &, TBool )
void IsHorizontalLineOrVertical ( TInt , TBool &, TBool &)
void LineToL ( TFloatFixPt &, TFloatFixPt &, TBool )
void MoveToL ( TFloatFixPt &, TFloatFixPt &, TBool )
CGfxGeneralPath * NewL ()
CGfxGeneralPath * NewLC ()
unsigned char * PathSegmentTypeArray ()
void PathSegmentTypeArray (unsigned char *)
TFloatFixPt * PointCoordsArray ()
RArray < TFloatFixPt > * PointCoordsArrayAll ()
RArray < TUint32 > * PointTypeArray ()
void QuadToL ( TFloatFixPt &, TFloatFixPt &, TFloatFixPt &, TFloatFixPt &, TBool )
void QuadToLWithNoControlPoint ( TFloatFixPt , TFloatFixPt )
void RemoveLastPathCommand ()
void Reset ()
void SetPointCoordsArrayL ( RArray < TFloatFixPt > *)
void SetPointCoordsArrayRef ( RArray < TFloatFixPt > *&)
void SetPointTypeArrayL ( RArray < TUint32 > *)
void SetPointTypeArrayRef ( RArray < TUint32 > *&)
TInt ShapeType ()
void ShortCubicToL ( TFloatFixPt &, TFloatFixPt &, TFloatFixPt &, TFloatFixPt &, TBool )
void ShortQuadToL ( TFloatFixPt &, TFloatFixPt &, TBool )
void VertToL ( TFloatFixPt &, TBool )
Protected Member Functions
CGfxGeneralPath ()
void ConstructL ()
void GetCurveRefPoint ( 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 *)

void AppendL ( 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()

void ClosePathL ( )

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

Since
1.0

ConstructL()

void ConstructL ( ) [protected]

Second phase of construction.

Since
1.0

Count()

TUint8 Count ( )

Count(TUint8)

void Count ( TUint8 aCount )

Parameters

TUint8 aCount

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

void CubicToL ( TFloatFixPt & aX1,
TFloatFixPt & aY1,
TFloatFixPt & aX2,
TFloatFixPt & aY2,
TFloatFixPt & aX3,
TFloatFixPt & aY3,
TBool aAbsolute
)

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 &)

void GetBounds ( 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 &)

void GetCurveRefPoint ( 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 *&)

void GetPathIteratorL ( 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 *&)

void GetPathIteratorL ( TGfxAffineTransform * aAt,
TInt aLimit,
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 ( TInt aSegmentIndex,
TInt aParameterIndex
)

Parameters

TInt aSegmentIndex
TInt aParameterIndex

GetSegmentType(TInt)

TInt GetSegmentType ( TInt aSegmentIndex )

Parameters

TInt aSegmentIndex

HorizonToL(TFloatFixPt &, TBool)

void HorizonToL ( TFloatFixPt & aX,
TBool aAbsolute
)

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 &)

void IsHorizontalLineOrVertical ( TInt aSegmentIndex,
TBool & aHorizontal,
TBool & aVertical
)

Parameters

TInt aSegmentIndex
TBool & aHorizontal
TBool & aVertical

LineToL(TFloatFixPt &, TFloatFixPt &, TBool)

void LineToL ( TFloatFixPt & aX,
TFloatFixPt & aY,
TBool aAbsolute
)

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)

void MoveToL ( TFloatFixPt & aX,
TFloatFixPt & aY,
TBool aAbsolute
)

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 *)

void PathSegmentTypeArray ( 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)

void QuadToL ( TFloatFixPt & aX1,
TFloatFixPt & aY1,
TFloatFixPt & aX2,
TFloatFixPt & aY2,
TBool aAbsolute
)

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)

void QuadToLWithNoControlPoint ( TFloatFixPt aX,
TFloatFixPt aY
)

RemoveLastPathCommand()

void RemoveLastPathCommand ( )

Reset()

void Reset ( )

Clear all path info.

Since
1.0

SetPointCoordsArrayL(RArray< TFloatFixPt > *)

void SetPointCoordsArrayL ( RArray < TFloatFixPt > * aPointCoords )

Set the pointer to the coordinate array.

Since
1.0

Parameters

RArray < TFloatFixPt > * aPointCoords : coordinate array.

SetPointCoordsArrayRef(RArray< TFloatFixPt > *&)

void SetPointCoordsArrayRef ( RArray < TFloatFixPt > *& aPointCoords )

Parameters

RArray < TFloatFixPt > *& aPointCoords

SetPointTypeArrayL(RArray< TUint32 > *)

void SetPointTypeArrayL ( RArray < TUint32 > * aTypesArray )

Set the pointer to the type array.

Since
1.0

Parameters

RArray < TUint32 > * aTypesArray : type info array pointer

SetPointTypeArrayRef(RArray< TUint32 > *&)

void SetPointTypeArrayRef ( RArray < TUint32 > *& aTypesArray )

Parameters

RArray < TUint32 > *& aTypesArray

ShapeType()

TInt ShapeType ( ) [inline, virtual]

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

void ShortCubicToL ( TFloatFixPt & aX2,
TFloatFixPt & aY2,
TFloatFixPt & aX3,
TFloatFixPt & aY3,
TBool aAbsolute
)

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)

void ShortQuadToL ( TFloatFixPt & aX2,
TFloatFixPt & aY2,
TBool aAbsolute
)

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)

void VertToL ( TFloatFixPt & aY,
TBool aAbsolute
)

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]