PathFlags Struct Reference

#include <pathtype.h>

List of all members.

Public Member Functions

 PathFlags ()
 Path Flags Constructor. This sets all the path flags to FALSE ready for use.
INT32 operator== (const PathFlags &)
INT32 operator!= (const PathFlags &)

Public Attributes

BYTE IsSelected: 1
BYTE IsSmooth: 1
BYTE IsRotate: 1
BYTE NeedToRender: 1
BYTE IsEndPoint: 1
BYTE Spare1: 1
BYTE Spare2: 1
BYTE Spare3: 1


Detailed Description

Author:
Rik_Heywood (Xara Group Ltd) <camelotdev@xara.com>
Date:
18/4/94 Comment: The various flags associated with each control point on the path. They are as follows :- IsSelected - TRUE if the control point is selected IsSmooth - TRUE if the control point should be smoothed when the path is edited IsRotate - TRUE if this bezier control point should be kept colinear with its partner NeedToRender - TRUE if we need to render this control point during an edit IsEndPoint - TRUE if this control point is an EndPoint Spare1-3 - No specific use as yet but can be used for any localised task you perform on a path

Definition at line 129 of file pathtype.h.


Constructor & Destructor Documentation

PathFlags::PathFlags  ) 
 

Path Flags Constructor. This sets all the path flags to FALSE ready for use.

Author:
Rik_Heywood (Xara Group Ltd) <camelotdev@xara.com>
Date:
02/03/94

Definition at line 151 of file paths.cpp.

00152 {
00153     IsSelected = FALSE;
00154 
00155     // Flags to aid with the smoothing of curves
00156     IsSmooth = FALSE;
00157     IsRotate = FALSE;
00158 
00159     // Flags that help with the EORed rendering as the path is edited
00160     NeedToRender = FALSE;
00161 
00162     // All Endpoints in the path have this flag set
00163     IsEndPoint = FALSE;
00164 
00165     // May as well use up the spare bits in this byte for the future
00166     Spare1 = FALSE;
00167     Spare2 = FALSE;
00168     Spare3 = FALSE;
00169 }


Member Function Documentation

INT32 PathFlags::operator!= const PathFlags  )  [inline]
 

Definition at line 171 of file pathtype.h.

00172 {
00173     if ((IsSelected != rhs.IsSelected) || 
00174         (IsSmooth != rhs.IsSmooth) ||
00175         (IsRotate != rhs.IsRotate) ||
00176         (NeedToRender != rhs.NeedToRender) ||
00177         (IsEndPoint != rhs.IsEndPoint) ||
00178         (Spare1 != rhs.Spare1) ||
00179         (Spare2 != rhs.Spare2) ||
00180         (Spare3 != rhs.Spare2)
00181        )
00182             return 1;
00183     else
00184             return 0;
00185 
00186 }

INT32 PathFlags::operator== const PathFlags  )  [inline]
 

Definition at line 154 of file pathtype.h.

00155 {
00156     if ((IsSelected == rhs.IsSelected) && 
00157         (IsSmooth == rhs.IsSmooth) &&
00158         (IsRotate == rhs.IsRotate) &&
00159         (NeedToRender == rhs.NeedToRender) &&
00160         (IsEndPoint == rhs.IsEndPoint) &&
00161         (Spare1 == rhs.Spare1) &&
00162         (Spare2 == rhs.Spare2) &&
00163         (Spare3 == rhs.Spare2)
00164        )
00165             return 1;
00166     else
00167             return 0;
00168 
00169 }


Member Data Documentation

BYTE PathFlags::IsEndPoint
 

Definition at line 144 of file pathtype.h.

BYTE PathFlags::IsRotate
 

Definition at line 138 of file pathtype.h.

BYTE PathFlags::IsSelected
 

Definition at line 134 of file pathtype.h.

BYTE PathFlags::IsSmooth
 

Definition at line 137 of file pathtype.h.

BYTE PathFlags::NeedToRender
 

Definition at line 141 of file pathtype.h.

BYTE PathFlags::Spare1
 

Definition at line 147 of file pathtype.h.

BYTE PathFlags::Spare2
 

Definition at line 148 of file pathtype.h.

BYTE PathFlags::Spare3
 

Definition at line 149 of file pathtype.h.


The documentation for this struct was generated from the following files:
Generated on Sat Nov 10 03:59:33 2007 for Camelot by  doxygen 1.4.4