Biomechanical Joint Model
 Author: Anderson Maciel

NBody Class Reference

#include <NBody.H>

Collaboration diagram for NBody:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NBody ()
 ~NBody ()
void AddObject (int id, RAPID_model *b)
void UpdateTrans (int id, double trans[][4])
void DeleteObject (int id)

Public Attributes

PairData overlapping_pairs

Private Member Functions

int overlaps (AABB *obj1, AABB *obj2)
void add_overlap_pair (int id1, int id2)
void del_overlap_pair (int id1, int id2)

Private Attributes

EndPointelist [3]
int size
AABB ** AABB_arr

Detailed Description

Definition at line 90 of file NBody.H.


Constructor & Destructor Documentation

NBody::NBody  ) 
 

Definition at line 87 of file NBody.cpp.

References AABB_arr, DEFAULT_SIZE, elist, and size.

NBody::~NBody  ) 
 

Definition at line 101 of file NBody.cpp.

References AABB_arr, AABB::hi, AABB::lo, and size.


Member Function Documentation

void NBody::add_overlap_pair int  id1,
int  id2
[inline, private]
 

Definition at line 105 of file NBody.H.

References PairData::AddPair(), and overlapping_pairs.

Referenced by AddObject(), and UpdateTrans().

Here is the call graph for this function:

void NBody::AddObject int  id,
RAPID_model b
 

Definition at line 138 of file NBody.cpp.

References EndPoint::aabb, AABB_arr, add_overlap_pair(), AABB::center, elist, GT(), AABB::hi, AABB::id, AABB::lo, MAX, max, MIN, min, EndPoint::minmax, EndPoint::next, RAPID_model::num_tris, overlaps(), tri::p1, tri::p2, tri::p3, EndPoint::prev, AABB::radius, size, RAPID_model::tris, and EndPoint::val.

Referenced by VCInternal::EndObject().

Here is the call graph for this function:

void NBody::del_overlap_pair int  id1,
int  id2
[inline, private]
 

Definition at line 111 of file NBody.H.

References PairData::DelPair(), and overlapping_pairs.

Referenced by UpdateTrans().

Here is the call graph for this function:

void NBody::DeleteObject int  id  ) 
 

Definition at line 549 of file NBody.cpp.

References AABB_arr, PairData::DelPairsInvolvingId(), elist, AABB::hi, AABB::lo, EndPoint::next, overlapping_pairs, EndPoint::prev, and size.

Referenced by VCInternal::DeleteObject().

Here is the call graph for this function:

int NBody::overlaps AABB obj1,
AABB obj2
[private]
 

Definition at line 117 of file NBody.cpp.

References AABB::hi, AABB::lo, and EndPoint::val.

Referenced by AddObject(), and UpdateTrans().

void NBody::UpdateTrans int  id,
double  trans[][4]
 

Definition at line 354 of file NBody.cpp.

References EndPoint::aabb, AABB_arr, add_overlap_pair(), AABB::center, del_overlap_pair(), elist, FORWARD, AABB::hi, AABB::id, AABB::lo, MAX, max, MIN, min, EndPoint::minmax, EndPoint::next, NOCHANGE, overlaps(), EndPoint::prev, AABB::radius, REVERSE, size, and EndPoint::val.

Referenced by VCInternal::UpdateTrans().

Here is the call graph for this function:


Member Data Documentation

AABB** NBody::AABB_arr [private]
 

Definition at line 97 of file NBody.H.

Referenced by AddObject(), DeleteObject(), NBody(), UpdateTrans(), and ~NBody().

EndPoint* NBody::elist[3] [private]
 

Definition at line 94 of file NBody.H.

Referenced by AddObject(), DeleteObject(), NBody(), and UpdateTrans().

PairData NBody::overlapping_pairs
 

Definition at line 118 of file NBody.H.

Referenced by add_overlap_pair(), VCInternal::Collide(), del_overlap_pair(), and DeleteObject().

int NBody::size [private]
 

Definition at line 96 of file NBody.H.

Referenced by AddObject(), DeleteObject(), NBody(), UpdateTrans(), and ~NBody().


The documentation for this class was generated from the following files:
Generated on Thu Dec 1 10:14:33 2005 for COME - Biomechanical Joint Model by  doxygen 1.4.5