Properties

CC3NodeBoundingBoxVisitor Class Reference

Specialized transforming visitor that measures the bounding box of a node and all its descendants, by traversing each descendant node, ensuring each transformMatrix is up to date, and accumulating a bounding box that encompasses the local content of the startingNode and all of its descendants. More...

#import <CC3NodeVisitor.h>

Inheritance diagram for CC3NodeBoundingBoxVisitor:
Inheritance graph
[legend]
Collaboration diagram for CC3NodeBoundingBoxVisitor:
Collaboration graph
[legend]

List of all members.

Properties

CC3BoundingBox boundingBox

Detailed Description

Specialized transforming visitor that measures the bounding box of a node and all its descendants, by traversing each descendant node, ensuring each transformMatrix is up to date, and accumulating a bounding box that encompasses the local content of the startingNode and all of its descendants.

If the value of the shouldLocalizeToStartingNode property is YES, the bounding box will be in the local coordinate system of the startingNode, otherwise it will be in the global coordinate system of the 3D world.


Property Documentation

- (CC3BoundingBox) boundingBox [read, assign]

Returns the bounding box accumulated during the visitation run.

If the value of the shouldLocalizeToStartingNode property is YES, the bounding box will be in the local coordinate system of the startingNode, otherwise it will be in the global coordinate system of the 3D world.

If none of the startingNode or its descendants have any local content, this property will return kCC3BoundingBoxNull.

The initial value of this property will be kCC3BoundingBoxNull.


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