CC3NodeDrawingVisitor is a CC3NodeVisitor that is passed to a node when it is visited during drawing operations. More...
#import <CC3NodeVisitor.h>
Public Member Functions | |
(void) | - drawLocalContentOf: |
Properties | |
CC3Frustum * | frustum |
BOOL | shouldDecorateNode |
CC3NodeDrawingVisitor is a CC3NodeVisitor that is passed to a node when it is visited during drawing operations.
This visitor extracts the camera's frustum from the encapsulated world, so that only nodes that are within the camera's field of view will be visited. Nodes outside the frustum will be culled and not drawn.
- (void) drawLocalContentOf: | (CC3Node *) | aNode |
Draws the local content of the specified node.
Invoked by the node itself when the node's local content is to be drawn.
This implementation double-dispatches back to the node's drawLocalContentWithVisitor: method to perform the drawing. Subclass may override to enhance or modify this behaviour.
- (CC3Frustum *) frustum [read, assign] |
The frustum used to determine if a node is within the camera's view.
This is extracted from the CC3World, set in the property by the open method, and cleared by the close method. It is therefore only available during a visitation run. Since the CC3World may contain multiple cameras, this ensures that the frustum of the current activeCamera is used.
- (BOOL) shouldDecorateNode [read, write, assign] |
Indicates whether nodes should decorate themselves with their configured material, textures, or color arrays.
In most cases, nodes should be drawn decorated. However, specialized visitors may turn off normal decoration drawing in order to do specialized coloring instead.
The default initial value is YES.