#include <nodepostpro.h>
Inheritance diagram for NodeEffect:
Public Member Functions | |
NodeEffect () | |
Note:. | |
~NodeEffect () | |
Destructor Note:. | |
NodeEffect (Node *ContextNode, AttachNodeDirection Direction, BOOL Locked=FALSE, BOOL Mangled=FALSE, BOOL Marked=FALSE, BOOL Selected=FALSE) | |
This constructor initialises the nodes flags and links it to ContextNode in the direction specified by Direction. All neccesary tree links are updated. Note: SetUpShape() must be called before the NodeRegularShape is in a state in which it can be used. | |
virtual SubtreeRenderState | RenderSubtree (RenderRegion *pRender, Node **ppNextNode=NULL, BOOL bClip=TRUE) |
Do clever stuff on the way into a subtree, possibly modifying rendering behaviour. | |
virtual void | RenderAfterSubtree (RenderRegion *pRender) |
Capture the group as a cached bitmap. | |
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 void | PolyCopyNodeContents (NodeRenderable *pNodeCopy) |
Polymorphically copies the contents of this node to another. | |
virtual BOOL | IsEffect () const |
virtual BOOL | IsController () |
virtual BOOL | IsValidEffectAttr (NodeAttribute *pAttr) const |
Determine whether this type of attribute can be an effect attribute On this node at this time.Determine whether this attribute instance can be an effect attribute On this node at this time. | |
virtual BOOL | IsLockedEffect () |
virtual BOOL | CompareState (NodeEffect *pPPNode) |
virtual String_256 | GetPostProcessorID () const |
virtual void | SetPostProcessorID (String_256 strNewID) |
virtual BOOL | IsFeatherEffect () |
virtual BOOL | IsPassThroughEffect () const |
virtual BOOL | CanBeUnlocked () const |
void | CopyNodeContents (NodeEffect *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 Scope: protected. | |
Protected Attributes | |
String_256 | m_strPostProID |
Private Member Functions | |
CC_DECLARE_DYNCREATE (NodeEffect) |
Definition at line 130 of file nodepostpro.h.
|
Note:.
Definition at line 184 of file nodepostpro.cpp. 00184 : NodeCompound() 00185 { 00186 m_strPostProID = String(_T("")); 00187 }
|
|
Destructor Note:.
Definition at line 200 of file nodepostpro.cpp.
|
|
This constructor initialises the nodes flags and links it to ContextNode in the direction specified by Direction. All neccesary tree links are updated. Note: SetUpShape() must be called before the NodeRegularShape is in a state in which it can be used.
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 ?
Definition at line 162 of file nodepostpro.cpp. 00168 : NodeCompound(ContextNode, Direction, Locked, Mangled, Marked, Selected ) 00169 { 00170 m_strPostProID = String(_T("")); 00171 }
|
|
Reimplemented in NodeLockedEffect. Definition at line 165 of file nodepostpro.h. 00165 {return TRUE;}
|
|
|
|
Reimplemented in NodeBitmapEffect, and NodeFeatherEffect. Definition at line 160 of file nodepostpro.h. 00160 {return FALSE;}
|
|
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 Scope: protected.
Definition at line 311 of file nodepostpro.cpp. 00312 { 00313 NodeCompound::CopyNodeContents(pCopyOfNode); 00314 00315 // Copy member vars here 00316 pCopyOfNode->m_strPostProID = m_strPostProID; 00317 }
|
|
Definition at line 161 of file nodepostpro.h. 00161 {return m_strPostProID;}
|
|
Reimplemented from Node. Definition at line 153 of file nodepostpro.h. 00153 {return TRUE;}
|
|
Reimplemented from Node. Definition at line 152 of file nodepostpro.h. 00152 {return TRUE;}
|
|
Reimplemented in NodeFeatherEffect. Definition at line 163 of file nodepostpro.h. 00163 {return FALSE;}
|
|
Reimplemented in NodeBitmapEffect, NodeLiveEffect, and NodeLockedEffect. Definition at line 159 of file nodepostpro.h. 00159 {return FALSE;}
|
|
Definition at line 164 of file nodepostpro.h. 00164 {return FALSE;} // User can NOT see original object through effects by default
|
|
Determine whether this type of attribute can be an effect attribute On this node at this time.Determine whether this attribute instance can be an effect attribute On this node at this time.
Reimplemented from NodeRenderableInk. Definition at line 385 of file nodepostpro.cpp. 00386 { 00387 CCRuntimeClass* pAttrType = pAttr->GetAttributeType(); 00388 00389 return (pAttr->IsATranspFill() || 00390 pAttrType == CC_RUNTIME_CLASS(AttrTranspFillGeometry) || //->IsKindOf(CC_RUNTIME_CLASS(AttrTranspChange)) || 00391 pAttrType == CC_RUNTIME_CLASS(AttrStrokeTransp) || //pAttr->IsKindOf(CC_RUNTIME_CLASS(AttrStrokeTranspChange)) || 00392 pAttrType == CC_RUNTIME_CLASS(AttrTranspFillMapping) 00393 ); 00394 }
|
|
Polymorphically copies the contents of this node to another.
Reimplemented from NodeRenderableBounded. Reimplemented in NodeLiveEffect, NodeLockedEffect, and NodeFeatherEffect. Definition at line 334 of file nodepostpro.cpp. 00335 { 00336 ENSURE(pNodeCopy, "Trying to copy a node's contents into a NULL node"); 00337 ENSURE(IS_A(pNodeCopy, NodeEffect), "PolyCopyNodeContents given wrong dest node type"); 00338 00339 if (IS_A(pNodeCopy, NodeEffect)) 00340 CopyNodeContents((NodeEffect*)pNodeCopy); 00341 }
|
|
Capture the group as a cached bitmap.
Reimplemented from Node. Reimplemented in NodeBitmapEffect. Definition at line 256 of file nodepostpro.cpp. 00257 { 00258 // Deal with group transparency capture 00259 // Call Helper function to run all my cacheing functionality for me... 00260 // CaptureCached(pRegion); 00261 }
|
|
Do clever stuff on the way into a subtree, possibly modifying rendering behaviour.
Reimplemented from NodeRenderableBounded. Reimplemented in NodeLiveEffect, and NodeLockedEffect. Definition at line 221 of file nodepostpro.cpp. 00222 { 00223 if (pRender == NULL) // If no render region supplied, assume we need to be rendered 00224 return SUBTREE_ROOTANDCHILDREN; 00225 00226 // Go find out about my bounding rectangle 00227 DocRect BoundingRect = GetBoundingRect(); 00228 DocRect ClipRect = pRender->GetClipRect(); 00229 00230 if (bClip && !ClipRect.IsIntersectedWith(BoundingRect)) // If not within the clipping rect then 00231 return SUBTREE_NORENDER; // Don't render us or our children 00232 00233 // Ask Helper function to set up cacheing for me... 00234 // AMB wonders whethere this was commented out during porting - 20051212 00235 // if (RenderCached(pRender)) // If we can find a cached bitmap for this node and render it 00236 // { 00237 // return SUBTREE_NORENDER; // Then tell the renderer to move on without doing any more... 00238 // } 00239 00240 return SUBTREE_ROOTANDCHILDREN; // Else we must render ourselves and our children 00241 }
|
|
Definition at line 162 of file nodepostpro.h. 00162 {m_strPostProID = strNewID;}
|
|
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. Reimplemented in NodeLiveEffect, NodeLockedEffect, and NodeFeatherEffect. Definition at line 283 of file nodepostpro.cpp. 00284 { 00285 NodeEffect* NodeCopy; 00286 NodeCopy = new NodeEffect(); 00287 ERRORIF(NodeCopy == NULL, _R(IDE_NOMORE_MEMORY), NULL); 00288 CopyNodeContents(NodeCopy); 00289 return (NodeCopy); 00290 }
|
|
Definition at line 170 of file nodepostpro.h. |