CC3NodeSequencerVisitor Class Reference
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.
Tasks
-
scene
property -
– initWithScene:
-
+ visitorWithScene:
-
__deprecated
property -
– initWithWorld:
-
+ visitorWithWorld:
-
hasMisplacedNodes
property -
misplacedNodes
property -
– addMisplacedNode:
-
– clearMisplacedNodes
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
Class Methods
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