|
|
| SPR_VIFDEF (HITrackball) |
| |
|
void | SetMode (bool mode) |
| | モード
|
| |
|
bool | GetMode () |
| |
|
void | SetTarget (Vec3f t) |
| | 注視点
|
| |
|
Vec3f | GetTarget () |
| |
|
void | SetAngle (float lon, float lat) |
| | 経度・緯度角
|
| |
|
void | GetAngle (float &lon, float &lat) |
| |
|
void | SetDistance (float dist) |
| | 注視点からの距離
|
| |
|
float | GetDistance () |
| |
|
void | SetLongitudeRange (float rmin, float rmax) |
| | 経度範囲
|
| |
|
void | GetLongitudeRange (float &rmin, float &rmax) |
| |
|
void | SetLatitudeRange (float rmin, float rmax) |
| | 緯度範囲
|
| |
|
void | GetLatitudeRange (float &rmin, float &rmax) |
| |
|
void | SetDistanceRange (float rmin, float rmax) |
| | 距離範囲
|
| |
|
void | GetDistanceRange (float &rmin, float &rmax) |
| |
|
void | SetRotGain (float g) |
| | 回転操作ゲイン
|
| |
|
float | GetRotGain () |
| |
|
void | SetZoomGain (float g) |
| | ズーム操作ゲイン
|
| |
|
float | GetZoomGain () |
| |
|
void | SetTrnGain (float g) |
| | 注視点移動ゲイン
|
| |
|
float | GetTrnGain () |
| |
|
void | Fit (const GRCameraDesc &cam, float radius) |
| | カメラパラメータとオブジェクトのサイズから距離を設定
|
| |
|
void | SetPosition (Vec3f pos) |
| | 指定された視点位置から経度,緯度,距離を逆算
|
| |
|
void | SetOrientation (Quaternionf ori) |
| | 指定されたカメラ姿勢から経度,緯度,注視点を逆算
|
| |
|
void | Enable (bool on=true) |
| | マウスによる操作のオン/オフ
|
| |
| void | SetRotMask (int mask) |
| | 回転操作のボタンアサインの変更 [詳細]
|
| |
|
void | SetZoomMask (int mask) |
| | ズーム操作のボタンアサインの変更
|
| |
|
void | SetTrnMask (int mask) |
| | パン操作のボタンアサインの変更
|
| |
| DVKeyMouseIf * | GetKeyMouse () |
| | リセット操作のボタンアサインの変更 [詳細]
|
| |
|
void | SetKeyMouse (DVKeyMouseIf *dv) |
| | トラックボールにマウスを関連付ける
|
| |
|
void | SetCallback (HITrackballCallback *callback) |
| | コールバックを登録する
|
| |
|
void | UpdateView () |
| | Trackballをシーンのカメラに反映させる。
|
| |
|
| SPR_VIFDEF (HIPose) |
| |
|
Vec3f | GetPosition () |
| |
|
Quaternionf | GetOrientation () |
| |
|
Posef | GetPose () |
| |
|
Affinef | GetAffine () |
| |
|
Vec3f | GetVelocity () |
| |
|
Vec3f | GetAngularVelocity () |
| |
|
| SPR_IFDEF (HIBase) |
| |
|
bool | BeforeCalibration () |
| | キャリブレーションの前に行う処理
|
| |
|
bool | Calibration () |
| | キャリブレーション処理
|
| |
|
bool | AfterCalibration () |
| | キャリブレーションのあとに行う処理
|
| |
|
void | AddDeviceDependency (HIRealDeviceIf *rd) |
| | ヒューマンインタフェースの依存関係を追加する
|
| |
|
void | ClearDeviceDependency () |
| | ヒューマンインタフェースの依存関係をクリアする
|
| |
|
void | Update (float dt) |
| | ヒューマンインタフェースの状態を更新する.
|
| |
|
bool | IsGood () |
| | ヒューマンインタフェースが使用可能ならば true.
|
| |
|
bool | Init (const void *desc) |
| | ヒューマンインタフェースの初期化. 必要なデバイスをsdkから借りてきて,ヒューマンインタフェースを構成する
|
| |
|
| SPR_IFDEF (NamedObject) |
| |
|
const char * | GetName () const |
| | 名前の取得
|
| |
|
void | SetName (const char *n) |
| | 名前の設定
|
| |
|
NameManagerIf * | GetNameManager () |
| | 名前管理オブジェクトの取得
|
| |
|
| SPR_IFDEF (Object) |
| |
|
ObjectIf * | GetObjectIf () |
| |
|
const ObjectIf * | GetObjectIf () const |
| |
|
int | DelRef () const |
| |
|
void | Print (std::ostream &os) const |
| | デバッグ用の表示。子オブジェクトを含む。
|
| |
|
void | PrintShort (std::ostream &os) const |
| | デバッグ用の表示。子オブジェクトを含まない。
|
| |
|
void | DumpObjectR (std::ostream &os, int level=0) const |
| | オブジェクトツリーのメモリイメージをダンプ
|
| |
|
int | AddRef () |
| |
|
int | RefCount () |
| |
|
size_t | NChildObject () const |
| | 子オブジェクトの数
|
| |
|
ObjectIf * | GetChildObject (size_t pos) |
| | 子オブジェクトの取得
|
| |
|
const ObjectIf * | GetChildObject (size_t pos) const |
| |
|
bool | AddChildObject (ObjectIf *o) |
| | 子オブジェクトの追加.複数のオブジェクトの子オブジェクトとして追加してよい. 例えば,GRFrameはツリーを作るが,全ノードがGRSceneの子でもある.
|
| |
|
bool | DelChildObject (ObjectIf *o) |
| | 子オブジェクトの削除
|
| |
|
void | Clear () |
| | すべての子オブジェクトの削除と、プロパティのクリア
|
| |
|
ObjectIf * | CreateObject (const IfInfo *info, const void *desc) |
| | オブジェクトを作成し,AddChildObject()を呼ぶ.
|
| |
|
template<class T > |
| ObjectIf * | CreateObject (const T &desc) |
| | CreateObjectを呼び出すユーティリティ関数
|
| |
|
const void * | GetDescAddress () const |
| | デスクリプタの読み出し(参照版 NULLを返すこともある). これが実装されていなくても,ObjectIf::GetDesc()は実装されていることが多い.
|
| |
|
bool | GetDesc (void *desc) const |
| | デスクリプタの読み出し(コピー版 失敗する(falseを返す)こともある). ObjectIf::GetDescAddress() が実装されていなくても,こちらは実装されていることがある.
|
| |
|
void | SetDesc (const void *desc) |
| | デスクリプタの設定
|
| |
|
size_t | GetDescSize () const |
| | デスクリプタのサイズ
|
| |
|
const void * | GetStateAddress () const |
| | 状態の読み出し(参照版 NULLを返すこともある). これが実装されていなくても,ObjectIf::GetState()は実装されていることがある.
|
| |
|
bool | GetState (void *state) const |
| | 状態の読み出し(コピー版 失敗する(falseを返す)こともある). ObjectIf::GetStateAddress() が実装されていなくても,こちらは実装されていることがある.
|
| |
|
void | SetState (const void *state) |
| | 状態の設定
|
| |
|
bool | WriteStateR (std::ostream &fout) |
| | 状態の書き出し
|
| |
|
bool | WriteState (std::string fileName) |
| |
|
bool | ReadStateR (std::istream &fin) |
| | 状態の読み込み
|
| |
|
bool | ReadState (std::string fileName) |
| |
|
size_t | GetStateSize () const |
| | 状態のサイズ
|
| |
|
void | ConstructState (void *m) const |
| | メモリブロックを状態型に初期化
|
| |
|
void | DestructState (void *m) const |
| | 状態型をメモリブロックに戻す
|
| |