BrushBecomeAGroup Class Reference

Theres no real facility for extracting the brush objects and passing them back, however this provides some sort of workaround, as it will store all the brush objects in a group. More...

#include <brshbeca.h>

Inheritance diagram for BrushBecomeAGroup:

BecomeA List of all members.

Public Member Functions

 BrushBecomeAGroup (BecomeAReason Reason, CCRuntimeClass *pClass, UndoableOperation *pOp)
 constructor
 ~BrushBecomeAGroup ()
virtual BOOL PassBack (NodeRenderableInk *pNewNode, NodeRenderableInk *pCreatedByNode, CCAttrMap *pAttrMap)
 Curiously enough we're only interested in receiving nodegroups here.
virtual BOOL IsBrushBecomeAGroup ()
NodeGroupGetNodeGroup ()

Protected Attributes

NodeGroupm_pNodeGroup

Detailed Description

Theres no real facility for extracting the brush objects and passing them back, however this provides some sort of workaround, as it will store all the brush objects in a group.

Author:
Diccon_Yamanaka (Xara Group Ltd) <camelotdev@xara.com>
Date:
25/2/2000

Definition at line 239 of file brshbeca.h.


Constructor & Destructor Documentation

BrushBecomeAGroup::BrushBecomeAGroup BecomeAReason  Reason,
CCRuntimeClass pClass,
UndoableOperation pOp
 

constructor

Author:
Diccon_Yamanaka (Xara Group Ltd) <camelotdev@xara.com>
Date:
7/12/99
Parameters:
Reason - our reason for being [INPUTS] pClass - the class to generate pOp - the operation we are part of
- [OUTPUTS]
Returns:
-

Definition at line 718 of file brshbeca.cpp.

00719                             :BecomeA(Reason, pClass, pOp)
00720 {
00721     m_pNodeGroup = NULL;
00722 }

BrushBecomeAGroup::~BrushBecomeAGroup  ) 
 

Definition at line 737 of file brshbeca.cpp.

00738 {
00739     if (m_pNodeGroup != NULL)
00740     {
00741         m_pNodeGroup->CascadeDelete();
00742         delete m_pNodeGroup;
00743     }
00744 }


Member Function Documentation

NodeGroup * BrushBecomeAGroup::GetNodeGroup  ) 
 

Definition at line 795 of file brshbeca.cpp.

00796 {
00797     NodeGroup* Temp = m_pNodeGroup;
00798     m_pNodeGroup = NULL;
00799     return Temp;
00800 }

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

Reimplemented from BecomeA.

Definition at line 253 of file brshbeca.h.

00253 { return TRUE;}

BOOL BrushBecomeAGroup::PassBack NodeRenderableInk pNewNode,
NodeRenderableInk pCreatedByNode,
CCAttrMap pAttrMap
[virtual]
 

Curiously enough we're only interested in receiving nodegroups here.

Author:
Diccon_Yamanaka (Xara Group Ltd) <camelotdev@xara.com>
Date:
7/12/99
Parameters:
pNewNode - the node that was generated [INPUTS] pCreatedByNode - the node that created the node that was generated pAttrMap - the applied attributes
- [OUTPUTS]
Returns:
TRUE if successful, FALSE otherwise

Reimplemented from BecomeA.

Definition at line 761 of file brshbeca.cpp.

00763 {
00764     ERROR2IF(pNewNode == NULL || pCreatedByNode == NULL, FALSE, "Input pointers are NULL in BrushBecomeA::PassBack");
00765     
00766     // we don't care about the attr maps
00767     if (pAttrMap != NULL)
00768     {
00769         pAttrMap->DeleteAttributes();
00770         delete pAttrMap;
00771         pAttrMap = NULL;
00772     }
00773 
00774     if (pNewNode->IsAGroup())
00775     {
00776         if (m_pNodeGroup != NULL)
00777             ERROR3("Whats going on here? We've already got a nodegroup!");
00778         m_pNodeGroup = (NodeGroup*)pNewNode;
00779     }
00780     return TRUE;
00781 }


Member Data Documentation

NodeGroup* BrushBecomeAGroup::m_pNodeGroup [protected]
 

Definition at line 257 of file brshbeca.h.


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