#include "cpp_extern_macro.h"


Go to the source code of this file.
Classes | |
| struct | offsetInfo_t |
| 座標系毎の情報 More... | |
Enumerations | |
| enum | { CRD_EFFECT_OFF = 0, CRD_EFFECT_ON = 1 } |
| enum | { GL = 0, FS = 1 } |
| 座標系 | |
Functions | |
| void | _initCoordinateCtrl (offsetInfo_t *crdInfo, int num) |
| 座標系情報の初期化 | |
| int | run_getBodyPos (int crd_id, int *x, int *y, int *div16) |
| 推定自己位置の取得 | |
| int | run_createCoordinate (void) |
| 新規座標系の作成 | |
| int | run_deleteCoordinate (int crd_id) |
| 座標系の削除 | |
| int | run_getParentId (int crd_id) |
| 親座標系ID の取得 | |
| int | run_getCoordinateOffset (int *offset_x, int *offset_y, int *offset_div16, int base_id, int target_id, int x, int y, int div16) |
| 指定座標系上の点が、目標座標系のどこにあるかを返す | |
| int | run_updateParentOffset (int dest_id, int x, int y, int div16) |
| 親座標系との相対位置を更新 | |
| int | run_setCoordinateParent (int dest_id, int parent_id, int x, int y, int div16) |
| 座標系の張り付け | |
| int | run_setCoordinateBody (int dest_id, int x, int y, int div16) |
| 座標系の指定位置に筐体位置がくるように座標系を設定する | |
| int | run_adjustBodyPos (int x, int y, int div16) |
| 座標系全体を再設定する | |
Variables | |
| BEGIN_C_DECLS | |
| C++用のマクロ. | |
| END_C_DECLS | |
| C++用のマクロ. | |
$Id$
Definition in file coordinate_ctrl.h.
| void _initCoordinateCtrl | ( | offsetInfo_t * | crdInfo, | |
| int | num | |||
| ) |
座標系情報の初期化
| crdInfo | [o] 座標系情報 | |
| num | [i] 座標系情報の数 |
Definition at line 49 of file coordinate_ctrl.c.
References VXV::GL, and offsetInfo_t::parent_id.
| int run_getBodyPos | ( | int | dest_id, | |
| int * | x, | |||
| int * | y, | |||
| int * | div16 | |||
| ) |
推定自己位置の取得
| dest_id | [i] 座標系ID | |
| *x | [i] X値 | |
| *y | [i] Y値 | |
| *div16 | [i] 角度 |
| 0 | 正常終了 | |
| 戻り値 | < 0 エラー |
Definition at line 82 of file coordinate_ctrl.c.
References VXV::GL.
| int run_createCoordinate | ( | void | ) |
| int run_deleteCoordinate | ( | int | crd_id | ) |
座標系の削除
| crd_id | [i] 座標系ID |
| 0 | 正常終了 | |
| 戻り値 | < 0 エラー |
Definition at line 134 of file coordinate_ctrl.c.
References offsetInfo_t::parent_id.
| int run_getParentId | ( | int | crd_id | ) |
親座標系ID の取得
渡された座標系ID の親にあたる座標系ID を返す
| crd_id | [i] 座標系ID |
| 戻り値 | > 0 親座標系ID | |
| 戻り値 | < 0 エラー |
Definition at line 149 of file coordinate_ctrl.c.
References offsetInfo_t::parent_id.
| int run_updateParentOffset | ( | int | dest_id, | |
| int | x, | |||
| int | y, | |||
| int | div16 | |||
| ) |
親座標系との相対位置を更新
| dest_id | [i] 座標系ID | |
| x | [i] X 座標値 | |
| y | [i] Y 座標値 | |
| div16 | [i] 角度 |
| *this |
Definition at line 252 of file coordinate_ctrl.c.
References offsetInfo_t::div16, VXV::GL, offsetInfo_t::x, and offsetInfo_t::y.
| int run_setCoordinateParent | ( | int | dest_id, | |
| int | parent_id, | |||
| int | x, | |||
| int | y, | |||
| int | div16 | |||
| ) |
座標系の張り付け
ある座標系(親)の指定位置に、座標系の原点を設定する
| dest_id | [o] 操作対象の座標系ID | |
| parent_id | [i] 親に設定する座標系ID | |
| x | [i] X値 | |
| y | [i] Y値 | |
| div16 | [i] 角度 |
| 0 | 正常終了 | |
| 戻り値 | < 0 エラー |
Definition at line 286 of file coordinate_ctrl.c.
References offsetInfo_t::div16, VXV::GL, offsetInfo_t::parent_id, offsetInfo_t::x, and offsetInfo_t::y.
| int run_setCoordinateBody | ( | int | dest_id, | |
| int | x, | |||
| int | y, | |||
| int | div16 | |||
| ) |
座標系の指定位置に筐体位置がくるように座標系を設定する
| dest_id | [o] 操作対象の座標系 | |
| x | [i] X値 | |
| y | [i] Y値 | |
| div16 | [i] 角度 |
| 0 | 正常終了 | |
| 戻り値 | < 0 エラー |
Definition at line 337 of file coordinate_ctrl.c.
References VXV::GL.
| int run_adjustBodyPos | ( | int | x, | |
| int | y, | |||
| int | div16 | |||
| ) |
座標系全体を再設定する
GL座標系の原点を GL座標系上の位置に張り替える
| x | [i] X値 | |
| y | [i] Y値 | |
| div16 | [i] 角度 |
| 0 | 正常終了 | |
| 戻り値 | < 0 エラー |
Definition at line 368 of file coordinate_ctrl.c.
1.5.7.1