BecomeA Class Reference

Class that encapsulates the params needed by virtual Node::DoBecomeA(). More...

#include <becomea.h>

Inheritance diagram for BecomeA:

BlendBecomeA BlendPathBecomeA BrushBecomeA BrushBecomeAGroup CombineBecomeA CompoundNodeBlendBecomeA ContourBecomeA ContourDragBecomeA ConvertPathToShapesBecomeA CopyBecomeA JoinShapesBecomeA MouldBecomeA NodeCompoundBlendBecomeA NodeToOutlinesBecomeA PathBecomeA SimpleBecomeA List of all members.

Public Member Functions

 BecomeA (BecomeAReason ThisReason, CCRuntimeClass *pClass, UndoableOperation *pOp=NULL, BOOL sel=TRUE, BOOL First=FALSE)
virtual ~BecomeA ()
BecomeAReason GetReason ()
CCRuntimeClassGetClass ()
UndoableOperationGetUndoOp ()
BOOL Reselect ()
BOOL IsFirstNode ()
BOOL DoSilhouette ()
void SetDoSilhouette (BOOL bEnable)
BOOL DoShadowSilhouettes ()
void SetDoShadowSilhouettes (BOOL bEnable)
void SetInsertComplexBlendStepsAsPaths (BOOL val)
BOOL GetInsertComplexBlendStepsAsPaths ()
NodeGetCallNode ()
void SetCallNode (Node *pNode)
virtual BOOL IsBlendBecomeA ()
virtual BOOL IsCompoundBlendBecomeA ()
virtual BOOL IsCombineBecomeA ()
virtual BOOL IsBrushBecomeAGroup ()
virtual BOOL PassBack (NodeRenderableInk *pNewNode, NodeRenderableInk *pCreatedByNode, CCAttrMap *pAttrMap=NULL)
virtual BOOL BAPath () const
virtual void AddCount (UINT32 iNum)
virtual UINT32 GetCount () const
virtual void ResetCount ()
virtual BOOL IsCounting () const
virtual BOOL ResultsStayInPlace () const
virtual void SetResultsStayInPlace (BOOL bInPlace)
virtual BOOL IsSecondary () const
virtual void SetSecondary (BOOL bNewValue=TRUE)
virtual BOOL OnlyNeedPaths () const
virtual void SetPathsOnly (BOOL bNewValue=TRUE)

Protected Attributes

BOOL fSilhouette
BOOL fShadowSilhouettes
BOOL insertComplexBlendStepsAsPaths
UINT32 m_Count

Private Member Functions

 CC_DECLARE_MEMDUMP (BecomeA)

Private Attributes

BecomeAReason Reason
CCRuntimeClasspClassToBecome
UndoableOperationpUndoOp
BOOL Select
BOOL AmFirstNode
NodepCallNode
BOOL m_bIsCounting
BOOL m_bBecomeANodePath
BOOL m_bInPlace
BOOL m_bSecondary
BOOL m_bPathsOnly

Detailed Description

Class that encapsulates the params needed by virtual Node::DoBecomeA().

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
7/10/94

Definition at line 178 of file becomea.h.


Constructor & Destructor Documentation

BecomeA::BecomeA BecomeAReason  ThisReason,
CCRuntimeClass pClass,
UndoableOperation pOp = NULL,
BOOL  sel = TRUE,
BOOL  First = FALSE
 

Definition at line 6405 of file nodebldr.cpp.

06410               : Reason(ThisReason), pClassToBecome(pClass), pUndoOp(pOp)
06411             {   Select = sel;
06412                 pCallNode = NULL;
06413                 AmFirstNode = First;
06414                 fSilhouette = FALSE;
06415                 fShadowSilhouettes = FALSE;
06416                 insertComplexBlendStepsAsPaths = FALSE;
06417                 m_Count = 0;
06418                 m_bIsCounting = FALSE;
06419                 m_bBecomeANodePath = (pClassToBecome==CC_RUNTIME_CLASS(NodePath));
06420                 m_bInPlace = FALSE;
06421                 m_bSecondary = FALSE;
06422                 m_bPathsOnly = FALSE;
06423             }

virtual BecomeA::~BecomeA  )  [inline, virtual]
 

Definition at line 189 of file becomea.h.

00189 { }


Member Function Documentation

virtual void BecomeA::AddCount UINT32  iNum  )  [inline, virtual]
 

Definition at line 227 of file becomea.h.

00227 {m_Count += iNum;}

BOOL BecomeA::BAPath  )  const [virtual]
 

Definition at line 6425 of file nodebldr.cpp.

06425 {return m_bBecomeANodePath;}

BecomeA::CC_DECLARE_MEMDUMP BecomeA   )  [private]
 

BOOL BecomeA::DoShadowSilhouettes  )  [inline]
 

Definition at line 199 of file becomea.h.

00199 { return fShadowSilhouettes; }

BOOL BecomeA::DoSilhouette  )  [inline]
 

Definition at line 197 of file becomea.h.

00197 { return fSilhouette; }

Node* BecomeA::GetCallNode  )  [inline]
 

Definition at line 207 of file becomea.h.

00207 { return pCallNode; }

CCRuntimeClass* BecomeA::GetClass  )  [inline]
 

Definition at line 193 of file becomea.h.

00193 { return pClassToBecome; }

virtual UINT32 BecomeA::GetCount  )  const [inline, virtual]
 

Definition at line 228 of file becomea.h.

00228 {return m_Count;}

BOOL BecomeA::GetInsertComplexBlendStepsAsPaths  )  [inline]
 

Definition at line 203 of file becomea.h.

00203 { return (insertComplexBlendStepsAsPaths); }

BecomeAReason BecomeA::GetReason  )  [inline]
 

Definition at line 192 of file becomea.h.

00192 { return Reason; }

UndoableOperation* BecomeA::GetUndoOp  )  [inline]
 

Definition at line 194 of file becomea.h.

00194 { return pUndoOp; }         // Can return NULL

virtual BOOL BecomeA::IsBlendBecomeA  )  [inline, virtual]
 

Reimplemented in BlendBecomeA.

Definition at line 211 of file becomea.h.

00211 { return FALSE; }

virtual BOOL BecomeA::IsBrushBecomeAGroup  )  [inline, virtual]
 

Reimplemented in BrushBecomeAGroup.

Definition at line 217 of file becomea.h.

00217 { return FALSE;}

virtual BOOL BecomeA::IsCombineBecomeA  )  [inline, virtual]
 

Reimplemented in CombineBecomeA.

Definition at line 215 of file becomea.h.

00215 { return FALSE; }

virtual BOOL BecomeA::IsCompoundBlendBecomeA  )  [inline, virtual]
 

Reimplemented in CompoundNodeBlendBecomeA.

Definition at line 213 of file becomea.h.

00213 { return FALSE; }

virtual BOOL BecomeA::IsCounting  )  const [inline, virtual]
 

Definition at line 230 of file becomea.h.

00230 {return m_bIsCounting;}

BOOL BecomeA::IsFirstNode  )  [inline]
 

Definition at line 196 of file becomea.h.

00196 { return AmFirstNode; }

virtual BOOL BecomeA::IsSecondary  )  const [inline, virtual]
 

Definition at line 236 of file becomea.h.

00236 {return m_bSecondary;}

virtual BOOL BecomeA::OnlyNeedPaths  )  const [inline, virtual]
 

Definition at line 239 of file becomea.h.

00239 {return m_bPathsOnly;}      // Don't need fill attributes of effects

BOOL BecomeA::PassBack NodeRenderableInk pNewNode,
NodeRenderableInk pCreatedByNode,
CCAttrMap pAttrMap = NULL
[virtual]
 

Reimplemented in CopyBecomeA, CompoundNodeBlendBecomeA, BrushBecomeA, SimpleBecomeA, BrushBecomeAGroup, NodeToOutlinesBecomeA, CombineBecomeA, BlendBecomeA, ContourBecomeA, JoinShapesBecomeA, PathBecomeA, ContourBecomeA2, BlendPathBecomeA, ContourDragBecomeA, MouldBecomeA, and ConvertPathToShapesBecomeA.

Definition at line 6429 of file nodebldr.cpp.

06430 {
06431     if (pAttrMap)
06432     {
06433         pAttrMap->DeleteAttributes();
06434         delete pAttrMap;
06435     }
06436     return FALSE;
06437 }

BOOL BecomeA::Reselect  )  [inline]
 

Definition at line 195 of file becomea.h.

00195 { return Select; }

virtual void BecomeA::ResetCount  )  [inline, virtual]
 

Definition at line 229 of file becomea.h.

00229 {m_Count = 0; m_bIsCounting = TRUE;}    // Call ResetCount to clear count and enable counting

virtual BOOL BecomeA::ResultsStayInPlace  )  const [inline, virtual]
 

Definition at line 233 of file becomea.h.

00233 {return m_bInPlace;}

void BecomeA::SetCallNode Node pNode  )  [inline]
 

Definition at line 208 of file becomea.h.

00208 { pCallNode = pNode; }

void BecomeA::SetDoShadowSilhouettes BOOL  bEnable  )  [inline]
 

Definition at line 200 of file becomea.h.

00200 { fShadowSilhouettes = bEnable; }

void BecomeA::SetDoSilhouette BOOL  bEnable  )  [inline]
 

Definition at line 198 of file becomea.h.

00198 { fSilhouette = bEnable; }

void BecomeA::SetInsertComplexBlendStepsAsPaths BOOL  val  )  [inline]
 

Definition at line 202 of file becomea.h.

virtual void BecomeA::SetPathsOnly BOOL  bNewValue = TRUE  )  [inline, virtual]
 

Definition at line 240 of file becomea.h.

00240 {m_bPathsOnly = bNewValue;}

virtual void BecomeA::SetResultsStayInPlace BOOL  bInPlace  )  [inline, virtual]
 

Definition at line 234 of file becomea.h.

00234 {m_bInPlace = bInPlace;}

virtual void BecomeA::SetSecondary BOOL  bNewValue = TRUE  )  [inline, virtual]
 

Definition at line 237 of file becomea.h.

00237 {m_bSecondary = bNewValue;}


Member Data Documentation

BOOL BecomeA::AmFirstNode [private]
 

Definition at line 247 of file becomea.h.

BOOL BecomeA::fShadowSilhouettes [protected]
 

Definition at line 262 of file becomea.h.

BOOL BecomeA::fSilhouette [protected]
 

Definition at line 261 of file becomea.h.

BOOL BecomeA::insertComplexBlendStepsAsPaths [protected]
 

Definition at line 263 of file becomea.h.

BOOL BecomeA::m_bBecomeANodePath [private]
 

Definition at line 250 of file becomea.h.

BOOL BecomeA::m_bInPlace [private]
 

Definition at line 251 of file becomea.h.

BOOL BecomeA::m_bIsCounting [private]
 

Definition at line 249 of file becomea.h.

BOOL BecomeA::m_bPathsOnly [private]
 

Definition at line 253 of file becomea.h.

BOOL BecomeA::m_bSecondary [private]
 

Definition at line 252 of file becomea.h.

UINT32 BecomeA::m_Count [protected]
 

Definition at line 264 of file becomea.h.

Node* BecomeA::pCallNode [private]
 

Definition at line 248 of file becomea.h.

CCRuntimeClass* BecomeA::pClassToBecome [private]
 

Definition at line 244 of file becomea.h.

UndoableOperation* BecomeA::pUndoOp [private]
 

Definition at line 245 of file becomea.h.

BecomeAReason BecomeA::Reason [private]
 

Definition at line 243 of file becomea.h.

BOOL BecomeA::Select [private]
 

Definition at line 246 of file becomea.h.


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