Public Member Functions

CC3LocalContentNode Class Reference

CC3LocalContentNode is an abstract class that forms the basis for nodes that have local content to display. More...

#import <CC3Node.h>

Inheritance diagram for CC3LocalContentNode:
Inheritance graph
[legend]
Collaboration diagram for CC3LocalContentNode:
Collaboration graph
[legend]

List of all members.

Public Member Functions

(void) - checkDrawingOrder

Detailed Description

CC3LocalContentNode is an abstract class that forms the basis for nodes that have local content to display.


Member Function Documentation

- (void) checkDrawingOrder

Checks that this node is in the correct drawing order relative to other nodes.

This implementation forwards this notification up the ancestor chain to the CC3World, which checks if the node is correctly positioned in the drawing sequence, and repositions the node if needed.

By default, nodes are automatically repositioned on each drawing frame to optimize the drawing order, so you should usually have no need to use this method.

However, in order to eliminate the overhead of checking each node during each drawing frame, you can disable this automatic behaviour by setting the allowSequenceUpdates property of specific drawing sequencers to NO.

In that case, if you modify the properties of a node or its content, such as mesh or material opacity, and your CC3World drawing sequencer uses that criteria to sort nodes, you can invoke this method to force the node to be repositioned in the correct drawing order.

You don't need to invoke this method when initially setting the properties. You only need to invoke this method if you modify the properties after the node has been added to the CC3World, either by itself, or as part of a node assembly.

Implements CC3Node.


The documentation for this class was generated from the following file: