Inherits from NSObject
Declared in CC3NodeSequencer.h

Overview

This visitor is used to visit CC3NodeSequencers to perform operations on nodes within the sequencers.

The visitor maintains a reference to the CC3Scene, so that the sequencer may use aspects of the scene during operations.

This visitor can be used to visit CC3NodeSequencers to detect and keep track of nodes that are misplaced within the sequencer, using the updateSequenceWithVisitor: method on the sequencer.

What it means for a node to be “misplaced” is defined by the sequencer itself. A sequencer may determine that the node no longer meets the criteria of the sequencer’s evaluator, or that the node is now out of order, relative to the sorting or grouping criteria defined by the sequencer.

A sequencer visitor can either be instantiated for a single visitation of a sequencer, or can be instantiated once and reused to visit different sequencers over and over. In doing so, you should invoke the reset method on the sequencer visitor prior to using it to visit a sequencer.

Properties

__deprecated

@deprecated Renamed to scene.

@property (nonatomic, retain) CC3Scene *__deprecated

Declared In

CC3NodeSequencer.h

hasMisplacedNodes

Indicates whether the misplacedNodes property contains nodes.

@property (nonatomic, readonly) BOOL hasMisplacedNodes

Declared In

CC3NodeSequencer.h

misplacedNodes

Returns an array of nodes that the sequencer deems to be misplaced after being visited by this visitor.

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

Discussion

The returned array may be nil.

Declared In

CC3NodeSequencer.h

scene

The CC3Scene instance. The sequencer may use aspects of the scene when performing sequencing operations with a node.

@property (nonatomic, assign) CC3Scene *scene

Declared In

CC3NodeSequencer.h

Class Methods

visitorWithScene:

Allocates and initializes an autoreleased instance with the specified CC3Scene.

+ (id)visitorWithScene:(CC3Scene *)aCC3Scene

Declared In

CC3NodeSequencer.h

visitorWithWorld:

@deprecated Renamed to visitorWithScene:.

+ (id)visitorWithWorld:(CC3Scene *)aCC3Scene

Declared In

CC3NodeSequencer.h

Instance Methods

addMisplacedNode:

Adds the specified node to the array of nodes held in the misplacedNodes property

- (void)addMisplacedNode:(CC3Node *)aNode

Declared In

CC3NodeSequencer.h

clearMisplacedNodes

Clears the misplacedNodes array.

- (void)clearMisplacedNodes

Declared In

CC3NodeSequencer.h

initWithScene:

Initializes this instance with the specified CC3Scene.

- (id)initWithScene:(CC3Scene *)aCC3Scene

Declared In

CC3NodeSequencer.h

initWithWorld:

@deprecated Renamed to initWithScene:.

- (id)initWithWorld:(CC3Scene *)aCC3Scene

Declared In

CC3NodeSequencer.h