Class used by EnumGeomPipeline to notify the pipeline of a collapse as well as maintaing the Custom Attributes. (Obsolete)
This class is used in conjunction with ICustAttribCollapseManager. The calling code needs to make sure they call the correct version of the enumeration. Note: this class is superceded by NotifyCollapseMaintainCustAttribEnumProc2 as it does not provide the capability for handling cloning of the node's base object correctly.
#include <modstack.h>
Public Member Functions |
|
CoreExport | NotifyCollapseMaintainCustAttribEnumProc (bool preCollapse, INode *n, Object *collapsedObj=NULL) |
Constructor. The private data members are
initialized by the passed parameters. |
|
virtual CoreExport PipeEnumResult | proc (ReferenceTarget *object, IDerivedObject *derObj, int index) |
This is the implementation of the
EnumGeomPipeline callback method
proc(). |
CoreExport NotifyCollapseMaintainCustAttribEnumProc | ( | bool | preCollapse, |
INode * | n, | ||
Object * | collapsedObj =
NULL |
||
) |
Constructor. The private data members are initialized by the passed parameters.
[in] | preCollapse | Indicates if this is a pre- collapse or a post- collapse. Pass true for pre and false for post. |
[in] | n | Points to the node at the beginning of the pipeline that was collapsed. |
[in] | collapsedObj | If this is a post- collapse then points to the object which is the result of the collapse. |
virtual CoreExport PipeEnumResult proc | ( | ReferenceTarget * | object, |
IDerivedObject * | derObj, | ||
int | index | ||
) | [virtual] |
This is the implementation of the EnumGeomPipeline callback method proc().
On a pre-collapse enumeration, collects the custom attributes on each object and its references (recursively), and calls NotifyPreCollapse on the object. On a post-collapse enumeration, applies the custom attributes previously collected to the collapsed object, and calls NotifyPostCollapse on the object.
Implements GeomPipelineEnumProc.