#include <screenTask.h>
Public Member Functions | |
ScreenTask (WindowInterface *winObj, TTF_Draw *ttfObj) | |
資源指定のコンストラクタ | |
void | init (void) |
初期化 | |
void | recv (void) |
受信処理 | |
void | exec1msec (unsigned long total_msec) |
1msec 毎の処理 | |
void | send (void) |
送信処理 | |
bool | updatePosition (void) |
筐体位置を更新するか | |
VXV::Position3D | getBodyPosition (const VXV::Position3D &position) |
更新された筐体位置 | |
void | show (void) |
画面の表示 | |
void | hide (void) |
画面の非表示 | |
void | updateViewMagnify (double magnify) |
画面内の表示拡大率を指定 | |
void | setViewCenter (VXV::Grid ¢er) |
描画中心を更新 | |
void | setEnvironment (const std::vector< CoordinateCtrl::polygon_t > &objs) |
環境オブジェクトの更新 | |
void | clear (unsigned long index) |
描画オブジェクトの削除 | |
unsigned long | setPoints (const std::vector< VXV::Grid3D > &points, unsigned long color, int width=1) |
点群の描画 | |
unsigned long | setLine (const VXV::Grid3D &p0, const VXV::Grid3D &p1, unsigned long color) |
直線の描画 | |
unsigned long | setContLine (const std::deque< VXV::Grid3D > &points, unsigned long color) |
直線群の描画 | |
unsigned long | setCircle (const VXV::Grid ¢er, int r, unsigned long color) |
unsigned long | setText (const char *text, const VXV::Grid &pos, int pxSize, bool pin, unsigned long color, unsigned long back) |
文字の描画 | |
int | consolePrintf (const char *fmt, va_list ap) |
int | commandLogPrintf (const char *fmt,...) |
void | activate (void) |
void | scrollWithRobot (bool on) |
Public Attributes | |
ScrollAreaComponent * | command_log |
Definition at line 21 of file screenTask.h.
ScreenTask::ScreenTask | ( | WindowInterface * | winObj, | |
TTF_Draw * | ttfObj | |||
) |
資源指定のコンストラクタ
winObj | [i] ウィンドウオブジェクト | |
ttfObj | [i] TTF資源オブジェクト |
Definition at line 12 of file screenTask.cpp.
References WindowInterface::h, and WindowInterface::w.
void ScreenTask::exec1msec | ( | unsigned long | total_msec | ) | [inline, virtual] |
1msec 毎の処理
total_msec | [i] タイムスタンプ |
Implements TaskInterface.
Definition at line 119 of file screenTask.h.
bool ScreenTask::updatePosition | ( | void | ) | [inline, virtual] |
筐体位置を更新するか
Implements TaskInterface.
Definition at line 121 of file screenTask.h.
VXV::Position3D ScreenTask::getBodyPosition | ( | const VXV::Position3D & | position | ) | [inline, virtual] |
更新された筐体位置
position | [i] 更新前の筐体位置 |
Implements TaskInterface.
Definition at line 122 of file screenTask.h.
void ScreenTask::updateViewMagnify | ( | double | magnify | ) |
画面内の表示拡大率を指定
magnify | [i] 拡大率 |
Definition at line 445 of file screenTask.cpp.
Referenced by init(), and vmonitor::setViewMagnify().
void ScreenTask::setViewCenter | ( | VXV::Grid & | center | ) |
void ScreenTask::setEnvironment | ( | const std::vector< CoordinateCtrl::polygon_t > & | objs | ) |
環境オブジェクトの更新
objs | [i] ポリゴン群 |
Definition at line 457 of file screenTask.cpp.
Referenced by vmonitor::connect().
void ScreenTask::clear | ( | unsigned long | index | ) |
描画オブジェクトの削除
index | [i] 削除用インデックス |
Definition at line 19 of file userCommand.cpp.
References WindowInterface::lock(), and WindowInterface::unlock().
Referenced by vmonitor::clear().
unsigned long ScreenTask::setPoints | ( | const std::vector< VXV::Grid3D > & | points, | |
unsigned long | color, | |||
int | width = 1 | |||
) |
点群の描画
points | [i] 点群 | |
color | [i] 色 | |
width | [i] 点の大きさ |
Referenced by vmonitor::drawPoints().
unsigned long ScreenTask::setLine | ( | const VXV::Grid3D & | p0, | |
const VXV::Grid3D & | p1, | |||
unsigned long | color | |||
) |
直線の描画
p0 | [i] 始点 | |
p1 | [i] 終点 | |
color | [i] 色 |
Definition at line 71 of file userCommand.cpp.
References WindowInterface::lock(), and WindowInterface::unlock().
Referenced by vmonitor::drawLine().
unsigned long ScreenTask::setContLine | ( | const std::deque< VXV::Grid3D > & | points, | |
unsigned long | color | |||
) |
直線群の描画
points | [i] 連続直線を構成する点群 | |
color | [i] 色 |
Definition at line 84 of file userCommand.cpp.
References WindowInterface::lock(), and WindowInterface::unlock().
Referenced by vmonitor::drawContLine().
unsigned long ScreenTask::setText | ( | const char * | text, | |
const VXV::Grid & | pos, | |||
int | pxSize, | |||
bool | pin, | |||
unsigned long | color, | |||
unsigned long | back | |||
) |
文字の描画
text | [i] 描画する文字列 | |
pos | [i] 描画位置 | |
pxSize | [i] 文字サイズ | |
pin | [i] 文字を座標系に固定する場合に true | |
color | [i] 色 | |
back | [i] 背景色 |
Definition at line 111 of file userCommand.cpp.
References WindowInterface::lock(), and WindowInterface::unlock().
Referenced by vmonitor::drawText().