Modifier::KeepNode
Defined in:
Returns a boolean value indicating whether a node should be included in a particular copy of an instanced world.
C4Modifiers.h
Prototype
virtual bool KeepNode(const Node *node) const;
Parameters
node |
A pointer to the node that should be tested for inclusion. |
Description
The KeepNode
function is called for each modifier attached to an instance node every time a new copy of the instanced world is created. This function is called for every subnode of the original, unaltered copy of the instanced world, and it should return true
if that subnode should be copied into the new instance or false
if that subnode and its entire subtree should be skipped so that they don't appear in the new instance.The default implementation of the
KeepNode
function always returns true
so that the entire instanced world is always copied into the new instance.
See Also