Public Member Functions | Static Public Member Functions | Properties

CC3NodeDrawingVisitor Class Reference

CC3NodeDrawingVisitor is a CC3NodeVisitor that is passed to a node when it is visited during drawing operations. More...

#import <CC3NodeVisitor.h>

Inheritance diagram for CC3NodeDrawingVisitor:
CC3NodeVisitor CC3NodePickingVisitor

List of all members.

Public Member Functions

(void) - drawLocalContentOf:
(id) - initWithFrustum:

Static Public Member Functions

(id) + visitorWithFrustum:

Properties

CC3Frustumfrustum
BOOL shouldDecorateNode

Detailed Description

CC3NodeDrawingVisitor is a CC3NodeVisitor that is passed to a node when it is visited during drawing operations.

This visitor encapsulates the camera's frustum, so that only nodes that are within the camera's field of view will be drawn. Nodes outside the frustum will be culled and not drawn.


Member Function Documentation

- (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 simply double-dispatches back to the node's drawLocalContentWithVisitor:. Subclass may override to enhance or modify this behaviour.

- (id) initWithFrustum: (CC3Frustum *)  aFrustum

Initializes this instance with the specified frustum.

+ (id) visitorWithFrustum: (CC3Frustum *)  aFrustum

Allocates and initializes an autoreleased instance with the specified frustum.


Property Documentation

- (CC3Frustum *) frustum [read, write, retain]

The frustum used to determine if a node is within the camera's view.

- (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.


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