v2.0.2
Instance Methods | Class Methods | List of all members
CC3PODSkinSection Class Reference

#import <CC3PODVertexSkinning.h>

Inheritance diagram for CC3PODSkinSection:
Inheritance graph
[legend]

Instance Methods

(id) - initFromBatchAtIndex:fromSPODMesh:forNode:
 
(void) - linkToPODNodes:
 
- Instance Methods inherited from CC3SkinSection
(void) - addBone:
 
(CC3Bone *) - boneAt:
 
(BOOL) - containsVertexIndex:
 
(id) - copyForNode:
 
(id) - copyForNode:withZone:
 
(CC3Vector- deformedVertexLocationAt:
 
(void) - drawVerticesOfMesh:withVisitor:
 
(NSString *) - fullDescription
 
(id) - initForNode:
 
(void) - reattachBonesFrom:
 
(CC3Matrix *) - transformMatrixForBoneAt:
 

Class Methods

(id) + skinSectionFromBatchAtIndex:fromSPODMesh:forNode:
 
- Class Methods inherited from CC3SkinSection
(id) + skinSectionForNode:
 

Additional Inherited Members

- Properties inherited from CC3SkinSection
GLuint boneCount
 
NSArray * bones
 
BOOL hasRigidSkeleton
 
BOOL hasSkeleton
 
GLint vertexCount
 
GLint vertexStart
 

Detailed Description

A CC3SkinSection extracted from a POD file.

Since the CC3PODSkinSection may be loaded before the corresponding skeleton, the bones to which this skin section will be attached may not exist during loading. This class keeps track of the bone node indices, and creates links to the bones once the entire POD has been loaded.

Method Documentation

- (id) initFromBatchAtIndex: (int)  aBatchIndex
fromSPODMesh: (PODStructPtr aSPODMesh
forNode: (CC3SkinMeshNode *)  aNode 

Initializes an instance from the specified POD SPODMesh structure, and that will be used by the specified skin mesh node.

- (void) linkToPODNodes: (NSArray *)  nodeArray

Create links to the nodes in the specified array.

This implementation iterates through the indices in the boneNodeIndices array, retrieves the CC3Bone node at each index in the specified node array, and adds that bone node to this skin section using the addBone: method.

+ (id) skinSectionFromBatchAtIndex: (int)  aBatchIndex
fromSPODMesh: (PODStructPtr aSPODMesh
forNode: (CC3SkinMeshNode *)  aNode 

Allocates and initializes an autoreleased instance from the specified POD SPODMesh structure, and that will be used by the specified skin mesh node.


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