![]() |
Springhead
An open source physics engine for virtual reality, haptics and motion generation.
|
ダイアログボックス(GUIコンテナ)
#include <SprFWWin.h>

Public メソッド | |
| SPR_IFDEF (FWDialog) | |
| FWControlIf * | CreateControl (const IfInfo *ii, const FWControlDesc &desc, FWPanelIf *parent=0) |
| GUIアイテムを作成 [詳細] | |
| FWButtonIf * | CreatePushButton (UTString label, FWPanelIf *parent=0) |
| 以下短縮形API [詳細] | |
| FWButtonIf * | CreateCheckButton (UTString label, bool checked=false, FWPanelIf *parent=0) |
| チェックボタン | |
| FWButtonIf * | CreateRadioButton (UTString label, FWPanelIf *parent=0) |
| ラジオボタン | |
| FWStaticTextIf * | CreateStaticText (UTString text, FWPanelIf *parent=0) |
| 静的テキスト | |
| FWTextBoxIf * | CreateTextBox (UTString label, UTString text="", int style=FWTextBoxDesc::TEXT, FWPanelIf *parent=0) |
| テキストボックス | |
| FWPanelIf * | CreatePanel (UTString label, int style=FWPanelDesc::RAISED, FWPanelIf *parent=0) |
| パネル | |
| FWPanelIf * | CreateRadioGroup (FWPanelIf *parent=0) |
| ラジオボタングループ | |
| FWRotationControlIf * | CreateRotationControl (UTString label, FWPanelIf *parent=0) |
| 回転コントロール | |
| FWTranslationControlIf * | CreateTranslationControl (UTString label, int style=FWTranslationControlDesc::TRANSLATION_XY, FWPanelIf *parent=0) |
| 並進コントロール | |
| FWListBoxIf * | CreateListBox (UTString label, FWPanelIf *parent=0) |
| リストボックス | |
| void | CreateColumn (bool sep=true, FWPanelIf *parent=0) |
| 新しい列を作成 | |
| void | CreateSeparator (FWPanelIf *parent=0) |
| 水平セパレータを作成 | |
Public メソッド inherited from FWWinBaseIf | |
| SPR_IFDEF (FWWinBase) | |
| int | GetID () |
| IDを取得する | |
| Vec2i | GetPosition () |
| 位置を取得する | |
| void | SetPosition (int left, int top) |
| 位置を変更する | |
| Vec2i | GetSize () |
| サイズを取得する | |
| void | SetSize (int width, int height) |
| サイズを変更する | |
| UTString | GetTitle () |
| タイトルを取得する | |
| void | SetTitle (UTString title) |
| タイトルを変更する | |
Public メソッド inherited from ObjectIf | |
| 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 |
| 状態型をメモリブロックに戻す | |
| FWControlIf* CreateControl | ( | const IfInfo * | ii, |
| const FWControlDesc & | desc, | ||
| FWPanelIf * | parent = 0 |
||
| ) |
| desc | ディスクリプタ |
| parent | 親パネル 作成するGUIアイテムの種類はディスクリプタの型で判定される. ラジオボタンを作成する場合はparentがラジオグループでなければならない. |
| FWButtonIf* CreatePushButton | ( | UTString | label, |
| FWPanelIf * | parent = 0 |
||
| ) |
プッシュボタン