#import <CC3NodeSequencer.h>
Instance Methods | |
(void) | - addMisplacedNode: |
(void) | - clearMisplacedNodes |
(id) | - initWithScene: |
(id) | - initWithWorld: |
Class Methods | |
(id) | + visitorWithScene: |
(id) | + visitorWithWorld: |
Properties | |
CC3Scene *world | __deprecated |
BOOL | hasMisplacedNodes |
NSArray * | misplacedNodes |
CC3Scene * | scene |
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.
- (void) addMisplacedNode: | (CC3Node *) | aNode |
Adds the specified node to the array of nodes held in the misplacedNodes property.
- (void) clearMisplacedNodes |
Clears the misplacedNodes array.
- (id) initWithWorld: | (CC3Scene *) | __deprecated |
+ (id) visitorWithScene: | (CC3Scene *) | aCC3Scene |
Allocates and initializes an autoreleased instance with the specified CC3Scene.
+ (id) visitorWithWorld: | (CC3Scene *) | __deprecated |
|
readwritenonatomicretain |
|
readnonatomicassign |
Indicates whether the misplacedNodes property contains nodes.
|
readnonatomicretain |
Returns an array of nodes that the sequencer deems to be misplaced after being visited by this visitor.
The returned array may be nil.
|
readwritenonatomicassign |
The CC3Scene instance.
The sequencer may use aspects of the scene when performing sequencing operations with a node.