layer.cpp File Reference

(r1785/r1361)

#include "camtypes.h"
#include "layer.h"
#include "page.h"
#include "nodedoc.h"
#include "blobs.h"
#include "aw_eps.h"
#include "ccdc.h"
#include "nativeps.h"
#include "prdlgctl.h"
#include "printctl.h"
#include "sglayer.h"
#include "cameleps.h"
#include "colourix.h"
#include "colmsg.h"
#include "cmxrendr.h"
#include "ai_epsrr.h"
#include "qualattr.h"
#include "cxftags.h"
#include "layermsg.h"
#include "slicehelper.h"
#include "nbevcont.h"
#include "ncntrcnt.h"
#include "nodecont.h"
#include "ndclpcnt.h"
#include "lineattr.h"

Go to the source code of this file.

Defines

#define new   CAM_DEBUG_NEW
#define COL_MAX   255

Functions

BOOL ShouldWriteColourDefinitions (Node *pNode)
 Determins whether colour definitions should be written for this node.


Define Documentation

#define COL_MAX   255
 

Definition at line 156 of file layer.cpp.

#define new   CAM_DEBUG_NEW
 

Definition at line 154 of file layer.cpp.


Function Documentation

BOOL ShouldWriteColourDefinitions Node pNode  ) 
 

Determins whether colour definitions should be written for this node.

> virtual BOOL ShouldWriteColourDefinitions (Node* pNode)

Author:
Chris_Snook (Xara Group Ltd) <camelotdev@xara.com>
Date:
14/9/2000
Parameters:
pNode = ptr to node [INPUTS]
Returns:
TRUE if record should be written, FALSE if not
See also:
BaseCamelotFilter::WriteRemainingAtomicTagDefinitions () Layer::WriteAtomicNodesColourRefs ()

Definition at line 3498 of file layer.cpp.

03499 {
03500     CCRuntimeClass * pClass = CC_RUNTIME_CLASS(NodeBevelController);
03501     BOOL done = FALSE;
03502     INT32 i = 0;
03503 
03504     while (!done)
03505     {
03506         Node* pParent = pNode->FindParent (pClass);
03507 
03508         if (pParent)
03509         {
03510             return (TRUE);
03511         }
03512 
03513         switch (i)
03514         {
03515             case 0:
03516                 pClass = CC_RUNTIME_CLASS(NodeContourController);
03517             break;
03518             case 1:
03519                 pClass = CC_RUNTIME_CLASS(NodeShadowController);
03520             break;
03521             case 2:
03522                 pClass = CC_RUNTIME_CLASS(NodeClipViewController);
03523             break;
03524             default:
03525                 done = TRUE;
03526         }
03527 
03528         i++;
03529     }
03530     return (FALSE);
03531 }


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