nodepath.cpp File Reference

(r1785/r1688)

#include "camtypes.h"
#include "nodepath.h"
#include <math.h>
#include "blobs.h"
#include "contmenu.h"
#include "lineattr.h"
#include "ophist.h"

Go to the source code of this file.

Functions

 DECLARE_SOURCE ("$Revision: 1688 $")
 CC_IMPLEMENT_DYNCREATE (NodePath, NodeRenderableInk) CC_IMPLEMENT_DYNAMIC(PathRecordHandler
CamelotRecordHandler CC_IMPLEMENT_DYNAMIC (PathFlagsRecordHandler, CamelotRecordHandler) NodePath
 This constructor initialises the nodes flags and links it to ContextNode in the direction specified by Direction. All neccesary tree links are updated.


Function Documentation

CamelotRecordHandler CC_IMPLEMENT_DYNAMIC PathFlagsRecordHandler  ,
CamelotRecordHandler 
 

This constructor initialises the nodes flags and links it to ContextNode in the direction specified by Direction. All neccesary tree links are updated.

Author:
Rik_Heywood (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/93
Parameters:
ContextNode,: Pointer to a node which this node is to be attached to. [INPUTS]
Direction:

Specifies the direction in which the node is to be attached to the ContextNode. The values this variable can take are as follows:

PREV : Attach node as a previous sibling of the context node NEXT : Attach node as a next sibling of the context node FIRSTCHILD: Attach node as the first child of the context node LASTCHILD : Attach node as a last child of the context node

BoundingRect: Bounding rectangle

The remaining inputs specify the status of the node:

Locked: Is node locked ? Mangled: Is node mangled ? Marked: Is node marked ? Selected: Is node selected ?

Note: SetUpPath() must be called before the NodePath is in a state in which it can be used.

See also:
NodePath::SetUpPath()
Returns:
Errors: An assertion error will occur if ContextNode is NULL

Definition at line 162 of file nodepath.cpp.

00181           :     Rik_Heywood (Xara Group Ltd) <camelotdev@xara.com>
00182     Created:    26/4/93             
00183     
00184     Inputs:     ContextNode: Pointer to a node which this node is to be attached to.     
00185         
00186                 Direction: 
00187             
00188                 Specifies the direction in which the node is to be attached to the 
00189                 ContextNode. The values this variable can take are as follows: 
00190                                   
00191                 PREV      : Attach node as a previous sibling of the context node
00192                 NEXT      : Attach node as a next sibling of the context node
00193                 FIRSTCHILD: Attach node as the first child of the context node
00194                 LASTCHILD : Attach node as a last child of the context node                               
00195                           
00196                 BoundingRect: Bounding rectangle  
00197                                   
00198                 The remaining inputs specify the status of the node: 
00199             
00200                 Locked:     Is node locked ?
00201                 Mangled:    Is node mangled ?
00202                 Marked:     Is node marked ?
00203                 Selected:   Is node selected ?
00204     Purpose:    This constructor initialises the nodes flags and links it to ContextNode in the
00205                 direction specified by Direction. All neccesary tree links are updated.         
00206             
00207     Note:       SetUpPath() must be called before the NodePath is in a state in which it can be 
00208                 used.       
00209                 
00210     SeeAlso:    NodePath::SetUpPath()
00211     
00212     Errors:     An assertion error will occur if ContextNode is NULL
00213 
00214 ***********************************************************************************************/
00215 
00216 NodePath::NodePath(Node* ContextNode,  
00217                     AttachNodeDirection Direction,  
00218                     BOOL Locked, 
00219                     BOOL Mangled,  
00220                     BOOL Marked, 
00221                     BOOL Selected    
00222               ):NodeRenderableInk(ContextNode, Direction, Locked, Mangled, Marked, Selected )  
00223 {
00224     CurrentRotation = 0.0;
00225 }                        

CC_IMPLEMENT_DYNCREATE NodePath  ,
NodeRenderableInk 
 

DECLARE_SOURCE "$Revision: 1688 $"   ) 
 


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