Instance Methods | Properties | List of all members
CC3WireframeBoundingBoxNode Class Reference

#import <CC3UtilityMeshNodes.h>

Inheritance diagram for CC3WireframeBoundingBoxNode:
Inheritance graph

Instance Methods

(void) - updateFromParentBoundingBox


BOOL shouldAlwaysMeasureParentBoundingBox
- Properties inherited from CC3LineNode
GLenum performanceHint __deprecated
- Properties inherited from CC3MeshNode
CC3Mesh *meshModel __deprecated
ccColor4F pureColor __deprecated
BOOL hasPremultipliedAlpha __deprecated
GLuint vertexUnitCount __deprecated
GLenum matrixIndexType __deprecated
ccColor4F ambientColor
ccBlendFunc blendFunc
CCColorRef color
ccColor4F diffuseColor
GLenum drawingMode
CC3NormalScaling effectiveNormalScalingMethod
ccColor4F emissionColor
BOOL expectsVerticallyFlippedTextures
GLuint faceCount
BOOL hasRigidSkeleton
BOOL hasSkeleton
BOOL hasTextureAlpha
BOOL hasTexturePremultipliedAlpha
BOOL isDrawingPointSprites
BOOL isOpaque
BOOL isUsingGLBuffers
CCOpacity opacity
int podMaterialIndex
GLfloat reflectivity
GLfloat shininess
BOOL shouldApplyOpacityToColor
BOOL shouldCacheFaces
BOOL shouldDrawLowAlpha
BOOL shouldUseLighting
BOOL shouldUseLightProbes
ccColor4F specularColor
GLuint textureCount
CGRect textureRectangle
GLuint vertexBoneCount
GLenum vertexBoneIndexType
GLenum vertexColorType
CC3VertexContent vertexContentTypes
GLuint vertexCount
GLuint vertexIndexCount
- Properties inherited from CC3LocalContentNode
CC3Box globalLocalContentBoundingBox
CC3Vector globalLocalContentCenterOfGeometry
CC3Box localContentBoundingBox
CC3Vector localContentCenterOfGeometry
BOOL shouldDrawLocalContentWireframeBox
- Properties inherited from CC3Node
CC3Vector sceneUpDirection __deprecated
CC3Vector worldUpDirection __deprecated
GLfloat scaleTolerance __deprecated
CC3Vector globalLightLocation __deprecated
CC3Matrix *transformMatrix __deprecated
CC3Matrix *transformMatrixInverted __deprecated
CC3Node *dirtiestAncestor __deprecated
CC3Matrix *parentTransformMatrix __deprecated
CC3Scene *world __deprecated
BOOL shouldCleanupWhenRemoved __deprecated
ccColor4F ambientColor
ccBlendFunc blendFunc
CC3Box boundingBox
GLfloat boundingVolumePadding
GLfloat cameraDistanceProduct
CC3Vector centerOfGeometry
NSArray * children
CCColorRef color
BOOL containsAnimation
GLfloat decalOffsetFactor
GLfloat decalOffsetUnits
GLenum depthFunction
ccColor4F diffuseColor
NSArray * directionMarkers
ccColor4F emissionColor
BOOL expectsVerticallyFlippedTextures
CC3Vector forwardDirection
CC3Box globalBoundingBox
CC3Vector globalCenterOfGeometry
CC3Vector globalForwardDirection
CC3Vector4 globalHomogeneousPosition
CC3Vector4 globalLightPosition
CC3Vector globalLocation
CC3Vector globalRightDirection
CC3Vector globalRotation
CC3Vector globalScale
CC3Vector globalUpDirection
BOOL hasLocalContent
BOOL hasSoftBodyContent
BOOL hasTarget
BOOL isAnimationEnabled
BOOL isBasePODNode
BOOL isBillboard
BOOL isCamera
BOOL isLight
BOOL isLightProbe
BOOL isMeshNode
BOOL isOpaque
BOOL isRunning
BOOL isScene
BOOL isShadowVolume
BOOL isTouchable
BOOL isTrackingForBumpMapping
BOOL isTransformDirty
BOOL isTransformRigid
BOOL isUniformlyScaledGlobally
BOOL isUniformlyScaledLocally
GLenum lineSmoothingHint
GLfloat lineWidth
CC3Vector location
CC3NormalScaling normalScalingMethod
CCOpacity opacity
GLint podContentIndex
GLint podParentIndex
GLint podTargetIndex
CC3Vector projectedLocation
CGPoint projectedPosition
CC3Quaternion quaternion
CC3Vector referenceUpDirection
GLfloat reflectivity
const char * renderStreamGroupMarker
CC3Vector rightDirection
CC3Vector rotation
GLfloat rotationAngle
CC3Vector rotationAxis
CC3Vector scale
GLfloat shadowExpansionLimitFactor
GLushort shadowLagCount
GLushort shadowLagFactor
GLfloat shadowOffsetFactor
GLfloat shadowOffsetUnits
NSArray * shadowVolumes
GLfloat shadowVolumeVertexOffsetFactor
GLfloat shininess
BOOL shouldAddShadowVolumeEndCapsOnlyWhenNeeded
BOOL shouldAllowTouchableWhenInvisible
BOOL shouldApplyOpacityAndColorToMeshContent
BOOL shouldAutoremoveWhenEmpty
BOOL shouldAutotargetCamera
BOOL shouldBlendAtFullOpacity
BOOL shouldCacheFaces
BOOL shouldCastShadows
BOOL shouldCastShadowsWhenInvisible
BOOL shouldCullBackFaces
BOOL shouldCullFrontFaces
BOOL shouldDisableDepthMask
BOOL shouldDisableDepthTest
BOOL shouldDrawAllBoundingVolumes
BOOL shouldDrawAllDescriptors
BOOL shouldDrawAllLocalContentWireframeBoxes
BOOL shouldDrawAllWireframeBoxes
BOOL shouldDrawBoundingVolume
BOOL shouldDrawDescriptor
BOOL shouldDrawInClipSpace
BOOL shouldDrawWireframeBox
BOOL shouldIgnoreRayIntersection
BOOL shouldInheritTouchability
BOOL shouldLogIntersectionMisses
BOOL shouldLogIntersections
BOOL shouldShadowBackFaces
BOOL shouldShadowFrontFaces
BOOL shouldSmoothLines
BOOL shouldStopActionsWhenRemoved
BOOL shouldTrackTarget
BOOL shouldUseClockwiseFrontFaceWinding
BOOL shouldUseFixedBoundingVolume
BOOL shouldUseLighting
BOOL shouldUseLightProbes
BOOL shouldUseSmoothShading
CC3Vector skeletalScale
ccColor4F specularColor
NSString * structureDescription
CC3Vector targetLocation
CC3TargettingConstraint targettingConstraint
BOOL touchEnabled
NSSet * transformListeners
GLfloat uniformScale
CC3Vector upDirection
BOOL visible
GLint zOrder
- Properties inherited from CC3Identifiable
NSObject *sharedUserData __deprecated
NSString * name
NSString * nameSuffix
GLint podIndex
BOOL shouldIncludeInDeepCopy
GLuint tag
NSObject * userData
- Properties inherited from <CC3Cacheable>
NSString * name

Additional Inherited Members

- Class Methods inherited from CC3LocalContentNode
(ccColor4F) + localContentWireframeBoxColor
(void) + setLocalContentWireframeBoxColor:

Detailed Description

CC3WireframeBoundingBoxNode is a type of CC3LineNode specialized for drawing a wireframe bounding box around another node.

A CC3WireframeBoundingBoxNode is typically added as a child node to the node whose bounding box is to be displayed.

The CC3WireframeBoundingBoxNode node can be set to automatically track the dynamic nature of the boundingBox of the parent node by setting the shouldAlwaysMeasureParentBoundingBox property to YES.

Since we don't want to add descriptor labels or wireframe boxes to wireframe nodes, the shouldDrawDescriptor, shouldDrawWireframeBox, and shouldDrawLocalContentWireframeBox properties are overridden to do nothing when set, and to always return YES.

Similarly, CC3WireframeBoundingBoxNode node does not participate in calculating the bounding box of the node whose bounding box it is drawing, since, as a child of that node, it would interfere with accurate measurement of the bounding box.

The shouldIncludeInDeepCopy property returns NO, so that the CC3WireframeBoundingBoxNode will not be copied when the parent node is copied. A bounding box node for the copy will be created automatically when each of the shouldDrawLocalContentWireframeBox and shouldDrawWireframeBox properties are copied, if they are set to YES on the original node that is copied.

A CC3WireframeBoundingBoxNode will continue to be visible even when its ancestor nodes are invisible, unless the CC3WireframeBoundingBoxNode itself is made invisible.

Method Documentation

- (void) updateFromParentBoundingBox

Updates this wireframe box from the bounding box of the parent node.

The extent of the wireframe box is usually set automatically when first created, and is not automatically updated if the parent bounding box changes. If you want this wireframe to update automatically on each update frame, set the shouldAlwaysMeasureParentBoundingBox property to YES.

However, updating on each frame can be a drag on performance, so if the parent bounding box changes under app control, you can invoke this method whenever the bounding box of the parent node changes to keep the wireframe box synchronized with its parent.

Property Documentation

- (BOOL) shouldAlwaysMeasureParentBoundingBox

Indicates whether the dimensions of this node should automatically be remeasured on each update pass.

If this property is set to YES, the box will automatically be resized to account for movements by any descendant nodes of the parent node. For bounding box nodes that track the overall boundingBox of a parent node, this property should be set to YES.

It is not necessary to set this property to YES to account for changes in the transform properties of the parent node itself, or if this node is tracking the bounding box of local content of the parent node. Generally, changes to that will automatically be handled by the transform updates.

When setting this property, be aware that measuring the bounding box of the parent node can be an expensive operation.

The initial value of this property is NO.

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