Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Spr::CDFramePair Class Reference

#include <CDFramePair.h>

Inherited by Spr::CDFramePairWithNormal.

Collaboration diagram for Spr::CDFramePair:

Collaboration graph
[legend]
List of all members.

Public Member Functions

Public Attributes

Protected Member Functions

Private Member Functions

Classes


Detailed Description

衝突判定対象のフレームのペア. フレームは同じ階層でなければならない(親やそのPostureは考慮しない).

フレームの所有関係 SGFrame +-子SGFrame +-CDMesh +-CDPolyhedron フレーム(SGFrame)は,複数のジオメトリ(CDGeometries)と子フレームを持つ. ジオメトリ(CDGeometry) の中には,複数のジオメトリを持つもの(CDMesh) と単純な凸形状(CDPolyhedron)がある. CDMesh は複数のConvexを持つ.

Definition at line 144 of file CDFramePair.h.


Member Function Documentation

void Spr::CDFramePair::Set CDFrame f1,
CDFrame f2
 

フレームのセット

bool Spr::CDFramePair::IsActive  )  [inline]
 

全体がアクティブかどうか

Definition at line 186 of file CDFramePair.h.

References Spr::CDFramePair::CDIsActive::GetOr(), and isActive.

bool Spr::CDFramePair::IsActive int  i  )  [inline]
 

リスナ i がアクティブかどうか

Definition at line 188 of file CDFramePair.h.

References isActive.

void Spr::CDFramePair::Clear  )  [inline]
 

クリア

Reimplemented in Spr::PHPenalty.

Definition at line 190 of file CDFramePair.h.

References Spr::UTCombination< T >::clear(), frame, and geometryPairs.

bool Spr::CDFramePair::Detect int  count  ) 
 

共有点を探す

bool Spr::CDFramePair::IsContact SGScene scene  ) 
 

接触しているかどうか

CDConvexPairIt Spr::CDFramePair::ConvexPairBegin  )  [inline]
 

凸形状対の列挙

Definition at line 200 of file CDFramePair.h.

References geometryPairs.

virtual void Spr::CDFramePair::Found CDConvexPair cp,
CDGeometryPair gp
[inline, protected, virtual]
 

接触時のコールバック

Definition at line 213 of file CDFramePair.h.

References intersections.

virtual CDConvexPair* Spr::CDFramePair::CreateConvexPair  )  [inline, protected, virtual]
 

CDConvexPairの派生クラスを使うための仕組み. このクラスを継承して,この関数をオーバーライドすることで, CDConvexPairの代わりに派生クラスを使用できる.

Reimplemented in Spr::CDFramePairWithNormal, Spr::CDFramePairWithRecord, and Spr::PHPenalty.

Definition at line 219 of file CDFramePair.h.

virtual CDGeometryPair* Spr::CDFramePair::CreateGeometryPair  )  [inline, protected, virtual]
 

CDGeometryPairの派生クラスを使うための仕組み. このクラスを継承して,この関数をオーバーライドすることで, CDGeometryPairの代わりに派生クラスを使用できる.

Reimplemented in Spr::PHPenalty.

Definition at line 225 of file CDFramePair.h.

void Spr::CDFramePair::EnumGeometry SGFrames frames,
CDGeometries geoms,
SGFrame f
[private]
 

フレームが持つジオメトリを列挙.


Member Data Documentation

unsigned Spr::CDFramePair::lastContactCount
 

最後に接触した時刻

Definition at line 171 of file CDFramePair.h.

CDIsActive Spr::CDFramePair::isActive
 

アクティブかどうかのフラグたち.CDCollisionEngineのリスナの数だけフラグがある.

Definition at line 173 of file CDFramePair.h.

Referenced by IsActive().

UTRef<CDFrame> Spr::CDFramePair::frame[2]
 

判定対象フレーム

Definition at line 175 of file CDFramePair.h.

Referenced by Clear().

CDIntersections Spr::CDFramePair::intersections
 

衝突したペアだけを並べた配列

Definition at line 177 of file CDFramePair.h.

Referenced by Found().

CDGeometryPairs Spr::CDFramePair::geometryPairs
 

ジオメトリのペアの全組み合わせ

Definition at line 179 of file CDFramePair.h.

Referenced by Clear(), and ConvexPairBegin().


The documentation for this class was generated from the following file:
Generated on Sun Apr 16 02:08:29 2006 for Springhead by  doxygen 1.4.1