![]() |
Springhead
An open source physics engine for virtual reality, haptics and motion generation.
|
物体
#include <PHBody.h>

Public メソッド | |
| SPR_OBJECTDEF_ABST (PHBody) | |
| virtual Posed | GetPose ()=0 |
| 位置と向き | |
| virtual Vec3d | GetCenterOfMass ()=0 |
| 重心位置(回転中心の位置)(Local) | |
| virtual Vec3d | GetFramePosition ()=0 |
| フレーム位置の取得 | |
| Vec3d | GetCenterPosition () |
| 重心位置(回転中心)の取得(World) | |
| virtual Vec3d | GetVelocity ()=0 |
| 速度 | |
| virtual Vec3d | GetAngularVelocity ()=0 |
| 角速度 | |
| Vec3d | GetPointVelocity (Vec3d posW) |
| 任意の位置での速度の取得 | |
| virtual void | SetFrozen (bool bOn) |
| 速度が一定以下の時,積分を行わないように設定 | |
| virtual bool | IsFrozen () |
| 速度が一定以下で積分を行わないかどうかを取得 | |
| virtual bool | IsDynamical () |
| 動力学シミュレーションの対象かどうか | |
| virtual bool | InvalidateBbox () |
| virtual bool | CalcBBox ()=0 |
| 剛体と各形状のローカルBBoxを計算 | |
| virtual void | CalcAABB ()=0 |
| 剛体と各形状のワールドBBoxを計算 | |
| virtual void | GetBBoxSupport (const Vec3f &dir, float &minS, float &maxS)=0 |
| virtual void | GetBBox (Vec3d &bbmin, Vec3d &bbmax, bool world)=0 |
| int | NFrame () |
| shapeの数。 | |
| void | AddFrame (PHFrameIf *frame) |
| shapeを、位置指定込みで追加する. | |
| PHFrameIf * | GetFrame (int i) |
| frameで取得 | |
| int | NShape () |
| この剛体が持つ Spr::CDShape の数 | |
| CDShapeIf * | GetShape (int i) |
| この剛体が持つ i番目の SPR::CDShape の取得 | |
| void | AddShape (CDShapeIf *shape) |
| shape を この剛体が持つSpr::CDShapeのリスト の最後に追加する. | |
| void | AddShapes (CDShapeIf **shBegin, CDShapeIf **shEnd) |
| void | RemoveShape (int i) |
| i番目のshapeを削除 | |
| void | RemoveShapes (int iBegin, int iEnd) |
| iBegin番目からiEnd-1番目までを削除 | |
| void | RemoveShape (CDShapeIf *shape) |
| この剛体が持つshapeを全て削除 | |
| Posed | GetShapePose (int i) |
| この剛体が持つ i番目の SPR::CDShape のこの剛体から見た姿勢を取得 | |
| void | ClearShape () |
| この剛体が持つ i番目の SPR::CDShape のこの剛体から見た姿勢を設定 | |
| void | SetShapePose (int i, const Posed &pose) |
| この剛体が持つSPR::CDShape を削除 | |
Public メソッド inherited from SceneObject | |
| virtual void | SetScene (SceneIf *s) |
| virtual SceneIf * | GetScene () const |
| virtual SceneObjectIf * | CloneObject () |
Public メソッド inherited from NamedObject | |
| NamedObject (const NamedObject &n) | |
| NamedObject & | operator= (const NamedObject &n) |
| virtual const char * | GetName () const |
| 名前の取得 | |
| virtual void | SetName (const char *n) |
| 名前の設定 | |
| virtual void | SetNameManager (NameManagerIf *s) |
| NameManagerを設定 | |
| virtual NameManagerIf * | GetNameManager () const |
| NameManagerの取得 | |
Public メソッド inherited from Object | |
| SPR_OBJECTDEF (Object) | |
| クラス名の取得などの基本機能の実装 | |
| ObjectIf * | GetObjectIf () |
| const ObjectIf * | GetObjectIf () const |
| virtual void | Print (std::ostream &os) const |
| デバッグ用の表示 | |
| virtual void | PrintShort (std::ostream &os) const |
| virtual ObjectIf * | CreateObject (const IfInfo *info, const void *desc) |
| オブジェクトの作成 | |
| virtual size_t | NChildObject () const |
| 子オブジェクトの数 | |
| virtual ObjectIf * | GetChildObject (size_t pos) |
| 子オブジェクトの取得 | |
| virtual const ObjectIf * | GetChildObject (size_t pos) const |
| virtual bool | AddChildObject (ObjectIf *o) |
| 子オブジェクトの追加 | |
| virtual bool | DelChildObject (ObjectIf *o) |
| 子オブジェクトの削除 | |
| virtual void | Clear () |
| すべての子オブジェクトの削除とプロパティのクリア | |
| virtual void | Loaded (UTLoadContext *) |
| ファイルロード後に一度呼ばれる。ノードの設定に使う。 呼び出し順序に依存する処理がしたい場合は、UTLoadHandeler と UTLoadTask を使うと良い。 | |
| virtual void | Setup () |
| ノードの設定をするための関数 | |
| virtual bool | GetDesc (void *desc) const |
| デスクリプタの読み出し(コピー版) | |
| virtual void | SetDesc (const void *desc) |
| デスクリプタの設定 | |
| virtual const void * | GetDescAddress () const |
| デスクリプタの読み出し(参照版) | |
| virtual size_t | GetDescSize () const |
| デスクリプタのサイズ | |
| virtual bool | GetState (void *state) const |
| 状態の読み出し(コピー版) | |
| virtual const void * | GetStateAddress () const |
| 状態の読み出し(参照版) | |
| virtual void | GetStateR (char *&state) |
| 状態の再帰的な読み出し | |
| virtual void | SetState (const void *state) |
| 状態の設定 | |
| virtual void | SetStateR (const char *&state) |
| 状態の再帰的な設定 | |
| virtual bool | WriteStateR (std::ostream &fout) |
| 状態のファイルへの書き出し | |
| virtual bool | WriteState (std::string fileName) |
| virtual bool | ReadStateR (std::istream &fin) |
| 状態の読み込み | |
| virtual bool | ReadState (std::string fileName) |
| virtual size_t | GetStateSize () const |
| 状態のサイズ | |
| virtual void | ConstructState (void *m) const |
| メモリブロックを状態型に初期化 | |
| virtual void | DestructState (void *m) const |
| 状態型をメモリブロックに戻す | |
| virtual void | DumpObjectR (std::ostream &os, int level=0) const |
| メモリデバッグ用。単純にツリーのオブジェクトをファイルにダンプする。 | |
Public 変数 | |
| int | id |
| bool | bboxReady |
| bboxの再計算用フラグ | |
| bool | aabbReady |
| aabbの再計算用フラグ | |
| PHBBox | bbLocal |
| ローカル座標のBBox | |
| PHBBox | bbWorld |
| ワールド座標のBBox | |
| std::vector< UTRef< PHFrame > > | frames |
| Collision形状 | |
Additional Inherited Members | |
Protected メソッド inherited from NamedObject | |
| virtual void | PrintHeader (std::ostream &os, bool bClose) const |
| 開き括弧 | |
Protected メソッド inherited from Object | |
| virtual void | PrintChildren (std::ostream &os) const |
| 子オブジェクトをPrint | |
| virtual void | PrintFooter (std::ostream &os) const |
| 閉じ括弧 | |
| virtual void | BeforeGetDesc () const |
| GetDesc()の前に呼ばれる | |
| virtual void | AfterSetDesc () |
| SetDesc()のあとに呼ばれる | |
Static Protected メソッド inherited from Object | |
| static void | ConstructState (ObjectIf *o, char *&s) |
| sをoのStateとして初期化する. | |
| static void | DestructState (ObjectIf *o, char *&s) |
| sをoのStateからメモリブロックに戻す. | |
Protected 変数 inherited from NamedObject | |
| UTString | name |
| 名前 | |
| NameManager * | nameManager |
| 名前の検索や重複管理をするもの.SceneやSDKなど. | |