paths.h File Reference

(r1785/r942)

#include "doccoord.h"
#include "docrect.h"
#include "handles.h"
#include "pathtype.h"
#include "attr.h"
#include "gconsts.h"

Go to the source code of this file.

Classes

class  PathExtraInfo
 Creation, manipulation and use of extra information on paths, eg. Pressure. A path will have a pointer to an instance of this class if it has some extra information associated with it. The extra info is stored as a number of channels, each of which is an array of 'PathExtraElements' (currently UINTs). These channels can then be mapped to one of the known 'provider data' types, eg, Line Width, Colour etc. More...
struct  JoinInfo
class  Path
 Creation, manipulation and use of Paths. A path is an arbitary collection of MoveTo, LineTo and CurveTo segments Public Member variables :- BOOL IsFilled - TRUE if this path if filled, FALSE otherwise. More...

Defines

#define POINTFLAG_ENDPOINTS   0x0001
#define POINTFLAG_CONTROLPOINTS   0x0002
#define POINTFLAG_ENDSFIRST   0x0004

Typedefs

typedef UINT32 PathExtraElement
typedef UINT32 PathWidth

Enumerations

enum  ChannelIndex { CI_PRESSURE }
enum  JoinType { JOIN_START, JOIN_END, JOIN_MIDDLE, JOIN_NONE }
enum  PathTypeEnum { PATHTYPE_NONE, PATHTYPE_SHAPE, PATHTYPE_LINE }

Variables

const INT32 NUMEXTRACHANNELS = 1
const UINT32 MAXPATHDIFFRATE = 64
const PathExtraElement EXTRAVALUEMAX = 65535


Define Documentation

#define POINTFLAG_CONTROLPOINTS   0x0002
 

Definition at line 236 of file paths.h.

#define POINTFLAG_ENDPOINTS   0x0001
 

These are the flags that get passed to the routine FindNearestPoint to allow me to filter out control points and that sort of thing. They can be ORed together.

POINTFLAG_ENDPOINTS is set if the caller wants endpoints returned (in this context, an endpoint is any of a moveto, lineto or the third point on a curveto. Sometimes referred to as Anchor points)

POINTFLAG_CONTROLPOINTS is set if the routine should return bezier curve control points.

POINTFLAG_ENDSFIRST is set if the routine should look at all endpoints first, before it looks at control points. If clear, all points in the path are checked in order.

Definition at line 235 of file paths.h.

#define POINTFLAG_ENDSFIRST   0x0004
 

Definition at line 237 of file paths.h.


Typedef Documentation

typedef UINT32 PathExtraElement
 

Definition at line 130 of file paths.h.

typedef UINT32 PathWidth
 

Definition at line 131 of file paths.h.


Enumeration Type Documentation

enum ChannelIndex
 

Enumerator:
CI_PRESSURE 

Definition at line 125 of file paths.h.

00126 {
00127     CI_PRESSURE
00128 } ChannelIndex;

enum JoinType
 

Enumerator:
JOIN_START 
JOIN_END 
JOIN_MIDDLE 
JOIN_NONE 

Definition at line 195 of file paths.h.

00196 {
00197     JOIN_START,     // The Join is at the Start of the path
00198     JOIN_END,       // The Join is at the End of the path
00199     JOIN_MIDDLE,    // The Join is at the Start or End of an internal Sub Path
00200     JOIN_NONE       // There is no Join
00201 } JoinType;

enum PathTypeEnum
 

Enumerator:
PATHTYPE_NONE 
PATHTYPE_SHAPE 
PATHTYPE_LINE 

Definition at line 213 of file paths.h.


Variable Documentation

const PathExtraElement EXTRAVALUEMAX = 65535
 

Definition at line 133 of file paths.h.

const UINT32 MAXPATHDIFFRATE = 64
 

Definition at line 122 of file paths.h.

const INT32 NUMEXTRACHANNELS = 1
 

Definition at line 119 of file paths.h.


Generated on Sat Nov 10 03:49:18 2007 for Camelot by  doxygen 1.4.4