Public Member Functions | Static Public Member Functions | Properties

CC3NodeSequencer Class Reference

A CC3NodeSequencer instance organizes nodes that are added to it. More...

#import <CC3NodeSequencer.h>

Inheritance diagram for CC3NodeSequencer:
CC3BTreeNodeSequencer CC3NodeArraySequencer CC3MeshNodeArraySequencer CC3MeshNodeArraySequencerGroupMeshes CC3MeshNodeArraySequencerGroupTextures

List of all members.

Public Member Functions

(BOOL) - add:
(id) - initWithEvaluator:
(BOOL) - remove:

Static Public Member Functions

(id) + sequencer
(id) + sequencerWithEvaluator:

Properties

CC3NodeEvaluatorevaluator
NSArray * nodes

Detailed Description

The node sequencer contains a CC3NodeEvaluator to determine whether it is interested in a node when an attempt is made to add the node. Only nodes that are accepted the evaluator will be added to the sequencer.

The type of sequencing performed is determined by the subclass of CC3NodeSequencer. A wide range of subclasses may be constructed to perform a variety of sequencing techniques.


Member Function Documentation

- (BOOL) add: (CC3Node *)  aNode

Adds the specified node to this sequencer if the node is accepted by the contained evaluator.

If the node is rejected by the evaluator, it is not added. Returns whether the node was added.

- (id) initWithEvaluator: (CC3NodeEvaluator *)  anEvaluator

Initializes this instance with the specified evaluator.

- (BOOL) remove: (CC3Node *)  aNode

Removes the specified node, if it exists within this sequencer, and returns whether it was removed.

+ (id) sequencer

Allocates and initializes an autoreleased instance with no evaluator.

This sequencer will not accept any nodes until an evaluator is attached.

+ (id) sequencerWithEvaluator: (CC3NodeEvaluator *)  anEvaluator

Allocates and initializes an autoreleased instance with the specified evaluator.


Property Documentation

- (CC3NodeEvaluator *) evaluator [read, write, retain]

The evaluator that determines whether a node should be added to this sequencer.

If no evaluator is attached to this sequencer, no nodes will be added.

- (NSArray*) nodes [read, assign]

An array of the nodes that have been added to this sequencer, ordered as this sequencer defines.

Implemented in CC3NodeArraySequencer.


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