Inherits from CC3NodeSequencer : NSObject
Declared in CC3NodeSequencer.h

Overview

An CC3BTreeNodeSequencer is a type of CC3NodeSequencer that separates nodes into a B-tree structure of child sequencers.

When a node is added, it is first evaluated by the contained evaluator. If it is accepted, the sequencer iterates through the contained child sequencers, in the order that the child sequencers were added, attempting to add the node to each child sequencer in turn. The node is added to the first child sequencer that accepts it.

Instances of CC3BTreeNodeSequencer can be used to group nodes by some parent criteria while allowing the nodes to be further grouped within each child grouping.

Setting the property shouldUseOnlyForwardDistance sets the same value in each child sequencer. Reading that property returns YES if any child sequencer returns YES, otherwise it returns NO.

Properties

sequencers

The array of child sequencers.

@property (nonatomic, retain, readonly) NSArray *sequencers

Declared In

CC3NodeSequencer.h

Class Methods

sequencerLocalContentOpaqueFirst

Allocates and initializes an autoreleased instance that accepts only nodes that have local content to draw, and sequences them so that all the opaque nodes appear before all the translucent nodes.

+ (id)sequencerLocalContentOpaqueFirst

Discussion

The opaque nodes are sorted in the order they are added. The translucent nodes are sorted by their distance from the camera, from furthest from the camera to closest.

Declared In

CC3NodeSequencer.h

sequencerLocalContentOpaqueFirstGroupMeshes

Allocates and initializes an autoreleased instance that accepts only nodes that have local content to draw, and sequences them so that all the opaque nodes appear before all the translucent nodes.

+ (id)sequencerLocalContentOpaqueFirstGroupMeshes

Discussion

The opaque nodes are grouped by mesh, so that all nodes with the same mesh appear together. The translucent nodes are sorted by their distance from the camera, from furthest from the camera to closest.

Declared In

CC3NodeSequencer.h

sequencerLocalContentOpaqueFirstGroupTextures

Allocates and initializes an autoreleased instance that accepts only nodes that have local content to draw, and sequences them so that all the opaque nodes appear before all the translucent nodes.

+ (id)sequencerLocalContentOpaqueFirstGroupTextures

Discussion

The opaque nodes are grouped by texture, so that all nodes with the same texture appear together. The translucent nodes are sorted by their distance from the camera, from furthest from the camera to closest.

Declared In

CC3NodeSequencer.h

Instance Methods

addSequencer:

Adds the specified sequencer as a child sequencer.

- (void)addSequencer:(CC3NodeSequencer *)aNodeSequencer

Declared In

CC3NodeSequencer.h