cocos3d  2.0.0
Properties | List of all members
CC3NodeBoundingBoxVisitor Class Reference

#import <CC3NodeVisitor.h>

Inheritance diagram for CC3NodeBoundingBoxVisitor:
Inheritance graph
[legend]

Properties

CC3Box boundingBox
 
- Properties inherited from CC3NodeTransformingVisitor
BOOL isTransformDirty
 
BOOL shouldLocalizeToStartingNode
 
BOOL shouldRestoreTransforms
 
- Properties inherited from CC3NodeVisitor
CC3Cameracamera
 
CC3MaterialcurrentMaterial
 
CC3MeshcurrentMesh
 
CC3MeshNodecurrentMeshNode
 
CC3NodecurrentNode
 
CC3ShaderProgramcurrentShaderProgram
 
CC3CameradefaultCamera
 
NSUInteger lightCount
 
CC3PerformanceStatisticsperformanceStatistics
 
CC3Scenescene
 
BOOL shouldVisitChildren
 
CC3NodestartingNode
 
GLuint textureCount
 

Additional Inherited Members

- Instance Methods inherited from CC3NodeTransformingVisitor
(CC3Matrix *) - parentTansformMatrixFor:
 
- Class Methods inherited from CC3NodeVisitor
(id) + visitor
 

Detailed Description

Specialized transforming visitor that measures the bounding box of a node and all its descendants, by traversing each descendant node, ensuring each globalTransformMatrix 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 scene.

Property Documentation

- (CC3Box) boundingBox
readnonatomicassign

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

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

The initial value of this property will be kCC3BoxNull.


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