nodeshap.cpp File Reference

(r1785/r1361)

#include "camtypes.h"
#include "nodeshap.h"
#include "nodepath.h"
#include "snap.h"
#include "blobs.h"
#include "extender.h"
#include "ophist.h"

Go to the source code of this file.

Functions

 DECLARE_SOURCE ("$Revision: 1361 $")
 CC_IMPLEMENT_DYNCREATE (NodeSimpleShape, NodeRenderableInk) NodeSimpleShape
 This constructor initialises the nodes flags and links it to ContextNode in the direction specified by Direction. All neccesary tree links are updated. Note: SetUpPath() must be called before the NodeSimpleShape is in a state in which it can be used.


Function Documentation

CC_IMPLEMENT_DYNCREATE NodeSimpleShape  ,
NodeRenderableInk 
 

This constructor initialises the nodes flags and links it to ContextNode in the direction specified by Direction. All neccesary tree links are updated. Note: SetUpPath() must be called before the NodeSimpleShape is in a state in which it can be used.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
22/9/93
Parameters:
ContextNode,: Pointer to a node which this node is to be attached to. [INPUTS] MonoOn Direction: MonoOff 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 ?

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

Definition at line 123 of file nodeshap.cpp.

00142           :     Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
00143     Created:    22/9/93
00144     
00145     Inputs:     ContextNode: Pointer to a node which this node is to be attached to.
00146                 MonoOn Direction: MonoOff
00147                 Specifies the direction in which the node is to be attached to the
00148                 ContextNode. The values this variable can take are as follows:
00149                                   
00150                 PREV      : Attach node as a previous sibling of the context node
00151                 NEXT      : Attach node as a next sibling of the context node
00152                 FIRSTCHILD: Attach node as the first child of the context node
00153                 LASTCHILD : Attach node as a last child of the context node
00154 
00155                 BoundingRect: Bounding rectangle
00156 
00157                 The remaining inputs specify the status of the node:
00158             
00159                 Locked:     Is node locked ?
00160                 Mangled:    Is node mangled ?
00161                 Marked:     Is node marked ?
00162                 Selected:   Is node selected ?
00163 
00164     Purpose:    This constructor initialises the nodes flags and links it to ContextNode in the
00165                 direction specified by Direction. All neccesary tree links are updated.
00166     Note:       SetUpPath() must be called before the NodeSimpleShape is in a state in which it can be used.
00167                 
00168     SeeAlso: SetUpPath   
00169     Errors: An assertion error will occur if ContextNode is NULL
00170 
00171 ***********************************************************************************************/
00172 
00173 NodeSimpleShape::NodeSimpleShape(Node* ContextNode,  
00174                     AttachNodeDirection Direction,  
00175                     BOOL Locked, 
00176                     BOOL Mangled,  
00177                     BOOL Marked, 
00178                     BOOL Selected    
00179               ):NodeRenderableInk(ContextNode, Direction, Locked, Mangled, Marked, Selected )  
00180 {                         
00181 }                        

DECLARE_SOURCE "$Revision: 1361 $"   ) 
 


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