#include <ndmldink.h>
Inheritance diagram for NodeMouldBitmap:
Public Member Functions | |
NodeMouldBitmap () | |
This constructor creates a NodeMouldBitmap linked to no other, with all status flags false and an uninitialised bounding rectangle. | |
NodeMouldBitmap (Node *ContextNode, AttachNodeDirection Direction, BOOL Locked=FALSE, BOOL Mangled=FALSE, BOOL Marked=FALSE, BOOL Selected=FALSE) | |
This method initialises the node and links it to ContextNode in the direction specified by Direction. All necessary tree links are updated. | |
~NodeMouldBitmap () | |
default destructor for the NodeMouldBitmap class | |
virtual void | Render (RenderRegion *pRegion) |
Will construct a moulded path from the renderable reference nodes bounding rectangle and render the reference node into it. This currently only makes sense for bitmap nodes. These are usually rendered as bitmap fills inside a rectangle. If we can generate the destination path by moulding the NodeBitmap bounding rectangle, we should be able to render the bitmap into the result. | |
virtual String | Describe (BOOL Plural, BOOL Verbose) |
To return a description of the NodeMouldBitmap object in either the singular or the plural. This method is called by the DescribeRange method. The description will always begin with a lower case letter. | |
virtual Node * | SimpleCopy () |
This method returns a shallow copy of the node with all Node pointers NULL. The function is virtual, and must be defined for all derived classes. | |
virtual UINT32 | GetNodeSize () const |
For finding the size of the node. | |
virtual void | PolyCopyNodeContents (NodeRenderable *pNodeCopy) |
Polymorphically copies the contents of this node to another. | |
Private Member Functions | |
CC_DECLARE_DYNAMIC (NodeMouldBitmap) | |
void | CopyNodeContents (NodeMouldBitmap *pCopyOfNode) |
Copies the data from this node to pCopyOfNode by first calling the base class to get it to copy its stuff, and then copying its own stuff. |
Definition at line 124 of file ndmldink.h.
|
This constructor creates a NodeMouldBitmap linked to no other, with all status flags false and an uninitialised bounding rectangle.
Definition at line 135 of file ndmldink.cpp. 00135 : NodeRenderableInk() 00136 { 00137 }
|
|
This method initialises the node and links it to ContextNode in the direction specified by Direction. All necessary tree links are updated.
Specifies the direction in which this 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 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 ?
Definition at line 184 of file ndmldink.cpp. 00190 :NodeRenderableInk(ContextNode, Direction, Locked, Mangled, Marked, Selected) 00191 { 00192 }
|
|
default destructor for the NodeMouldBitmap class
Definition at line 205 of file ndmldink.cpp.
|
|
|
|
Copies the data from this node to pCopyOfNode by first calling the base class to get it to copy its stuff, and then copying its own stuff.
Definition at line 309 of file ndmldink.cpp. 00310 { 00311 ERROR3IF(pCopyOfNode == NULL,"NodeMouldBitmap::CopyNodeContents was asked to copy into a NULL pointer"); 00312 00313 // Copy from the base class 00314 NodeRenderableInk::CopyNodeContents(pCopyOfNode); 00315 00316 }
|
|
To return a description of the NodeMouldBitmap object in either the singular or the plural. This method is called by the DescribeRange method. The description will always begin with a lower case letter.
Reimplemented from Node. Definition at line 257 of file ndmldink.cpp. 00258 { 00259 if (Plural) 00260 return(String(_R(IDS_MOULDINK_DESCRP))); 00261 else 00262 return(String(_R(IDS_MOULDINK_DESCRS))); 00263 };
|
|
For finding the size of the node.
Reimplemented from Node. Definition at line 355 of file ndmldink.cpp. 00356 { 00357 return (sizeof(NodeMouldBitmap)); 00358 }
|
|
Polymorphically copies the contents of this node to another.
Reimplemented from NodeRenderableBounded. Definition at line 331 of file ndmldink.cpp. 00332 { 00333 ENSURE(pNodeCopy, "Trying to copy a node's contents into a NULL node"); 00334 ENSURE(IS_A(pNodeCopy, NodeMouldBitmap), "PolyCopyNodeContents given wrong dest node type"); 00335 00336 if (IS_A(pNodeCopy, NodeMouldBitmap)) 00337 CopyNodeContents((NodeMouldBitmap*)pNodeCopy); 00338 }
|
|
Will construct a moulded path from the renderable reference nodes bounding rectangle and render the reference node into it. This currently only makes sense for bitmap nodes. These are usually rendered as bitmap fills inside a rectangle. If we can generate the destination path by moulding the NodeBitmap bounding rectangle, we should be able to render the bitmap into the result.
Reimplemented from Node. Definition at line 227 of file ndmldink.cpp. 00228 { 00229 // find the mould root object 00230 /* 00231 NodeMould* pNodeMould = (NodeMould*)this->FindParent(CC_RUNTIME_CLASS(NodeMould)); 00232 MouldGeometry* pMouldGeom = pNodeMould->GetGeometry(); 00233 if (pMouldGeom) 00234 pMouldGeom->MouldBitmapRender(&TheBitmap, Parallel, pRegion); 00235 */ 00236 }
|
|
This method returns a shallow copy of the node with all Node pointers NULL. The function is virtual, and must be defined for all derived classes.
Reimplemented from NodeRenderableInk. Definition at line 286 of file ndmldink.cpp. 00287 { 00288 NodeMouldBitmap* pCopyOfNode = new NodeMouldBitmap(); 00289 ERROR1IF(pCopyOfNode == NULL,NULL,_R(IDE_NOMORE_MEMORY)); 00290 CopyNodeContents(pCopyOfNode); 00291 return (pCopyOfNode); 00292 }
|