svgtopt/gfx2d/inc/GfxPathIterator.h
changeset 0 d46562c3d99d
equal deleted inserted replaced
-1:000000000000 0:d46562c3d99d
       
     1 /*
       
     2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Graphics Extension Library header file
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef GFXPATHITERATOR_H
       
    20 #define GFXPATHITERATOR_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <e32std.h>
       
    24 #include "GfxFloatFixPt.h"
       
    25 
       
    26 class TGfxAffineTransform;
       
    27 class MGfxShape;
       
    28 class CGfxEdgeListP;
       
    29 
       
    30 
       
    31 /**
       
    32  * This class defines the methods to cycle through points in a path.
       
    33  *
       
    34  *  @lib Gfx2D.lib
       
    35  *  @since 1.0
       
    36  */
       
    37 class CGfxPathIterator : public CBase
       
    38     {
       
    39     public:
       
    40 
       
    41         /**
       
    42          * Get the point defining the current segment.
       
    43          *
       
    44          * @since 1.0
       
    45          * @param aCoords : storage for points.
       
    46          * @return segment type.
       
    47          */
       
    48         virtual TGfxSegType CurrentSegment( TFloatFixPt* aCoords ) = 0;
       
    49 
       
    50         /**
       
    51          * Determine if end of iterator has been reached.
       
    52          *
       
    53          * @since 1.0
       
    54          * @return true, if iterator reached end.
       
    55          */
       
    56         virtual TBool       IsDone() = 0;
       
    57 
       
    58         /**
       
    59          * Cycle to the next segment of the path.
       
    60          *
       
    61          * @since 1.0
       
    62          * @return
       
    63          */
       
    64         virtual void        NextL() = 0;
       
    65 
       
    66         /**
       
    67          * Convert to a polygon.
       
    68          *
       
    69          * @since 1.0
       
    70          * @param aRenderer : storage for points of polygon.
       
    71          * @param aFlatness : level of smoothness.
       
    72          * @return true, if iterator reached end.
       
    73          */
       
    74         virtual void        PolygonizeL( CGfxEdgeListP* /*aRenderer*/,
       
    75 			TInt /*aFlatness*/ ) {};
       
    76 
       
    77 
       
    78     protected:
       
    79         TGfxAffineTransform*    iTransform;
       
    80     };
       
    81 
       
    82 #endif      // GFXPATHITERATOR_H