Defined in:Performs any preprocessing that a node needs to do before being used in a world.
virtual void PreprocessNode(void);
PreprocessNodefunction performs any preprocessing that a node needs to do before being used in a world. Whenever a node is added to a scene, it should subsequently be preprocessed. Calling the
Node::AppendNewSubnodefunction to add a node to a scene is equivalent to calling
Tree::AppendSubnodeand following it with a call to
PreprocessNodefunction is called for a node, it internally causes all of the subnodes of that node to be preprocessed as well. If a node has a controller, then the
Controller::PreprocessControllerfunction is called before the subnodes are preprocessed.
The effects of calling the
PreprocessNodefunction can be reversed by calling the
Node::NeutralizeNodefunction. It is not necessary to call the
NeutralizeNodefunction before deleting a node, but it should be called for any node that will be removed from the scene without being deleted.
Whenever a subclass implements an override for the
PreprocessNodefunction, it should always call the
PreprocessNodefunction of its direct base class first.