SimpleBecomeA Class Reference

A simple becomeA object that retrieves paths from nodes and makes them available to you, the user without messing around with MakeNodePathFromAttributes or any of that rubbish. More...

#include <brshbeca.h>

Inheritance diagram for SimpleBecomeA:

BecomeA List of all members.

Public Member Functions

 SimpleBecomeA (BecomeAReason Reason, CCRuntimeClass *pClass, UndoableOperation *pOp)
 constructor
virtual BOOL PassBack (NodeRenderableInk *pNewNode, NodeRenderableInk *pCreatedByNode, CCAttrMap *pAttrMap)
 the money function, takes the nodepath and assigns it to our member so it can be retrieved using GetNodePath
NodePathGetNodePath ()

Protected Attributes

NodePathm_pNodePath

Detailed Description

A simple becomeA object that retrieves paths from nodes and makes them available to you, the user without messing around with MakeNodePathFromAttributes or any of that rubbish.

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

Definition at line 204 of file brshbeca.h.


Constructor & Destructor Documentation

SimpleBecomeA::SimpleBecomeA 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 644 of file brshbeca.cpp.

00645                             :BecomeA(Reason, pClass, pOp)
00646 {
00647     m_pNodePath = NULL;
00648 }


Member Function Documentation

NodePath * SimpleBecomeA::GetNodePath  ) 
 

Definition at line 690 of file brshbeca.cpp.

00691 {
00692     return m_pNodePath;
00693 }

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

the money function, takes the nodepath and assigns it to our member so it can be retrieved using GetNodePath

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 667 of file brshbeca.cpp.

00668 {
00669     ERROR2IF(pNewNode == NULL, FALSE, "Node is NULL in SimpleBecomeA::PassBack");
00670     ERROR2IF(!pNewNode->IsNodePath(), FALSE, "New node is not nodepath in SimpleBecomeA::PassBack");
00671     
00672     m_pNodePath = (NodePath*)pNewNode;
00673 
00674     return TRUE;
00675 }


Member Data Documentation

NodePath* SimpleBecomeA::m_pNodePath [protected]
 

Definition at line 219 of file brshbeca.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 04:01:14 2007 for Camelot by  doxygen 1.4.4