InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
PathOutlineInfo.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Bernd Paradies
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //========================================================================================
23 
24 #ifndef __PathOutlineInfo__
25 #define __PathOutlineInfo__
26 
27 #include "IOutlineInfo.h"
28 #include "PMPoint.h"
29 #include "PMPathPoint.h"
30 
31 class IPathGeometry;
32 
33 
35 {
36 public:
37  PathOutlineInfo(IPathGeometry *pPolygon);
38  ~PathOutlineInfo();
39 
40  virtual void BeginPath();
41  virtual void EndPath();
42 
43  virtual void moveto(const PMReal& x, const PMReal& y);
44  virtual void lineto(const PMReal& x, const PMReal& y);
45  virtual void curveto(const PMReal& x1, const PMReal& y1, const PMReal& x2, const PMReal& y2, const PMReal& x3, const PMReal& y3);
46  virtual void closepath();
47 
48 private:
49  void CreateNewPath(const PMPathPoint& pathPt);
50 
51 private:
52  IPathGeometry * fPolygon;
53  int32 fCurrentPathIndex;
54  bool16 fCurrentPathCreated;
55  bool16 fBeginPathCalled;
56  PMPathPoint fLastPt;
57 
58 };
59 
60 
61 #endif
62