|
Oolite
|
#include <Octree.h>
Instance Methods | |
| (id) | - initWithDictionary: |
| (Octree *) | - octreeScaledBy: |
| (GLfloat) | - isHitByLine:v1: |
| (BOOL) | - isHitByOctree:withOrigin:andIJK: |
| (BOOL) | - isHitByOctree:withOrigin:andIJK:s1:s2: |
| (NSDictionary *) | - dictionaryRepresentation |
| (GLfloat) | - volume |
| (Vector) | - randomPoint |
| (id) | - init [implementation] |
| (id) | - initWithData:radius: [implementation] |
| (void) | - dealloc [implementation] |
| (BOOL) | - hasCollision [implementation] |
| (void) | - setHasCollision: [implementation] |
| (Octree_details) | - octreeDetails [implementation] |
Class Methods | |
| (static Vector) | + offsetForOctant [implementation] |
| (static BOOL) | + isHitByLineSub [implementation] |
| (static BOOL) | + isHitByLine [implementation] |
| (static BOOL) | + isHitByOctree [implementation] |
| (static GLfloat) | + volumeOfOctree [implementation] |
| (static Vector) | + randomFullNodeFrom [implementation] |
Private Attributes | |
| GLfloat | _radius |
| uint32_t | _nodeCount |
| const int * | _octree |
| BOOL | _hasCollision |
| unsigned char * | _collisionOctree |
| NSData * | _data |
|
implementation |
Definition at line 124 of file Octree.m.
References _collisionOctree, _data, dealloc, and DESTROY.
Referenced by dealloc.
| - (NSDictionary *) dictionaryRepresentation |
Definition at line 626 of file Octree.m.
References dictionaryRepresentation.
Referenced by dictionaryRepresentation, and OOCacheManager(Octree)::setOctree:forModel:.
|
implementation |
Definition at line 132 of file Octree.m.
References _hasCollision, and hasCollision.
Referenced by hasCollision, isHitByOctree:withOrigin:andIJK:, and isHitByOctree:withOrigin:andIJK:s1:s2:.
|
implementation |
Definition at line 80 of file Octree.m.
Referenced by init, and initWithData:radius:.
|
implementation |
Definition at line 89 of file Octree.m.
References _collisionOctree, _data, _nodeCount, _octree, _radius, init, and nil.
Referenced by initWithDictionary:.
| - (id) initWithDictionary: | (NSDictionary*) | dictionary |
Definition at line 112 of file Octree.m.
References initWithData:radius:, and nil.
|
implementation |
Definition at line 347 of file Octree.m.
References CUBE_FACE_BACK, CUBE_FACE_BOTTOM, CUBE_FACE_FRONT, CUBE_FACE_LEFT, CUBE_FACE_RIGHT, CUBE_FACE_TOP, hasCollided, hit_dist, isHitByLineSub, lineCubeIntersection(), lineIntersectionWithFace(), make_vector(), OctreeDebugLog, Vector::x, Vector::y, and Vector::z.
Referenced by isHitByLine:v1:.
Definition at line 457 of file Octree.m.
References _collisionOctree, _hasCollision, _nodeCount, _octree, _radius, hasCollided, hit_dist, isHitByLine, isHitByLine(), kZeroVector, and OctreeDebugLog.
Referenced by ShipEntity::doesHitLine:v1:, PlayerEntity::doesHitLine:v1:hitEntity:, ShipEntity::doesHitLine:v1:hitEntity:, and ShipEntity::doesHitLine:v1:withPosition:i:j:k:.
|
implementation |
Definition at line 336 of file Octree.m.
References isHitByLine(), and offsetForOctant.
Referenced by isHitByLine.
|
implementation |
Definition at line 473 of file Octree.m.
References change_oct, isHitByOctree(), Octree_details::octree, Octree_details::octree_collision, OctreeDebugLog, offsetForOctant, Octree_details::radius, resolveVectorInIJK(), vector_add(), vector_flip(), vector_subtract(), Vector::x, Vector::y, and Vector::z.
Referenced by isHitByOctree:withOrigin:andIJK:, and isHitByOctree:withOrigin:andIJK:s1:s2:.
Definition at line 597 of file Octree.m.
References _hasCollision, hasCollision, isHitByOctree, isHitByOctree(), nil, octreeDetails, and setHasCollision:.
| - (BOOL) isHitByOctree: | (Octree*) | other | |
| withOrigin: | (Vector) | origin | |
| andIJK: | (Triangle) | ijk | |
| s1: | (GLfloat) | s1 | |
| s2: | (GLfloat) | s2 |
Definition at line 610 of file Octree.m.
References _hasCollision, hasCollision, isHitByOctree, isHitByOctree(), octreeDetails, Octree_details::radius, and setHasCollision:.
|
implementation |
Provided by category Octree(Private).
Definition at line 142 of file Octree.m.
References Octree(Private)::octreeDetails.
Referenced by isHitByOctree:withOrigin:andIJK:, isHitByOctree:withOrigin:andIJK:s1:s2:, Octree(Private)::octreeDetails, randomPoint, and volume.
| - (Octree *) octreeScaledBy: | (GLfloat) | factor |
Definition at line 152 of file Octree.m.
Definition at line 158 of file Octree.m.
References make_vector().
Referenced by isHitByLineSub, isHitByOctree, and randomFullNodeFrom.
|
implementation |
Definition at line 683 of file Octree.m.
References Octree_details::octree, Octree_details::octree_collision, offsetForOctant, Octree_details::radius, randomFullNodeFrom(), Ranrot(), and vector_add().
| - (Vector) randomPoint |
Definition at line 716 of file Octree.m.
References kZeroVector, octreeDetails, randomFullNodeFrom(), and randomPoint.
Referenced by ShipEntity::becomeExplosion, and randomPoint.
|
implementation |
Definition at line 137 of file Octree.m.
References _hasCollision.
Referenced by isHitByOctree:withOrigin:andIJK:, and isHitByOctree:withOrigin:andIJK:s1:s2:.
| - (GLfloat) volume |
Definition at line 669 of file Octree.m.
References octreeDetails, volume, and volumeOfOctree().
Referenced by volume, and ShipEntity::volume.
|
implementation |
Definition at line 634 of file Octree.m.
References Octree_details::octree, Octree_details::octree_collision, Octree_details::radius, and volumeOfOctree().
|
private |
Definition at line 44 of file Octree.h.
Referenced by dealloc, initWithData:radius:, and isHitByLine:v1:.
|
private |
Definition at line 46 of file Octree.h.
Referenced by dealloc, and initWithData:radius:.
|
private |
Definition at line 42 of file Octree.h.
Referenced by hasCollision, isHitByLine:v1:, isHitByOctree:withOrigin:andIJK:, isHitByOctree:withOrigin:andIJK:s1:s2:, and setHasCollision:.
|
private |
Definition at line 40 of file Octree.h.
Referenced by initWithData:radius:, and isHitByLine:v1:.
|
private |
Definition at line 41 of file Octree.h.
Referenced by initWithData:radius:, and isHitByLine:v1:.
|
private |
Definition at line 39 of file Octree.h.
Referenced by initWithData:radius:, and isHitByLine:v1:.