FillAttrBlobState Class Reference

Used to record the fill blob selection state to determine wether apply ops should be merged or not. More...

#include <fillattr.h>

Inheritance diagram for FillAttrBlobState:

ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 FillAttrBlobState ()
 Constructor.
 ~FillAttrBlobState ()
 Destruct this object. If the state pointer is not null delete it.
BOOL operator== (FillAttrBlobState &BlobState)
 Compares two blob states to see if they are the same.

Public Attributes

AttrFillGeometrypFillAttr
UINT32 count
BOOL * SelectionState

Detailed Description

Used to record the fill blob selection state to determine wether apply ops should be merged or not.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
12/3/96
See also:
-

Definition at line 686 of file fillattr.h.


Constructor & Destructor Documentation

FillAttrBlobState::FillAttrBlobState  ) 
 

Constructor.

FillAttrBlobState::FillAttrBlobState()

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
13/3/96

Definition at line 20204 of file fillattr.cpp.

20205 {
20206     count=0;
20207     pFillAttr=NULL;
20208     SelectionState=NULL;
20209 }

FillAttrBlobState::~FillAttrBlobState  ) 
 

Destruct this object. If the state pointer is not null delete it.

FillAttrBlobState::~FillAttrBlobState()

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
13/3/96

Definition at line 20221 of file fillattr.cpp.

20222 {
20223     if (SelectionState!=NULL)
20224     {
20225         free(SelectionState);
20226         SelectionState=NULL;
20227     }
20228 }


Member Function Documentation

BOOL FillAttrBlobState::operator== FillAttrBlobState BlobState  ) 
 

Compares two blob states to see if they are the same.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
13/3/96
Returns:
TRUE if the blobs states are the same

Definition at line 20242 of file fillattr.cpp.

20243 {
20244     if (pFillAttr != BlobState.pFillAttr)
20245         return FALSE;
20246 
20247     if (count != BlobState.count)
20248         return FALSE;
20249 
20250     if (pFillAttr != NULL)
20251     {
20252         if (SelectionState==NULL || BlobState.SelectionState==NULL)
20253             return FALSE;
20254 
20255         for (UINT32 i=0; i<count; i++)
20256         {
20257             if (SelectionState[i] != BlobState.SelectionState[i])
20258                 return FALSE;
20259         }
20260     }
20261     
20262     return TRUE;
20263 }


Member Data Documentation

UINT32 FillAttrBlobState::count
 

Definition at line 696 of file fillattr.h.

AttrFillGeometry* FillAttrBlobState::pFillAttr
 

Definition at line 695 of file fillattr.h.

BOOL* FillAttrBlobState::SelectionState
 

Definition at line 697 of file fillattr.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:54:11 2007 for Camelot by  doxygen 1.4.4