#include <vmonitor.h>
Classes | |
class | VMonitorProperty |
Public Member Functions | |
void | setMonitorMode (int monitorMode, const char *logfile) |
モニタの動作モードを指定 | |
void | add (TaskInterface *monitor_task) |
処理タスクの登録 | |
void | del (TaskInterface *monitor_task) |
処理タスクの削除 | |
Static Public Member Functions | |
static vmonitor * | getObject (void) |
オブジェクトを返す | |
static int | connect (int argc, char *argv[]) |
接続情報の指定 | |
static int | getMonitorMode (void) |
モニタの動作モードを取得 | |
static unsigned long | getTicks (void) |
タイムスタンプの取得 | |
static void | show (void) |
画面の表示 | |
static void | hide (void) |
画面の非表示 | |
static void | pause (void) |
一時停止 | |
static void | start (void) |
再開 | |
static void | setTimeMagnify (double magnify) |
時間の進行倍率を変更 | |
static void | setViewMagnify (double magnify) |
画面内の表示拡大率を指定 | |
static void | clear (unsigned long layer=3) |
描画オブジェクトの削除 | |
static unsigned long | drawPoints (const std::vector< VXV::Grid3D > &points, unsigned long color=White, int r=1) |
点群の描画 | |
static unsigned long | drawLine (const VXV::Grid3D &p0, const VXV::Grid3D &p1, unsigned long color=White) |
直線の描画 | |
static unsigned long | drawContLine (const std::deque< VXV::Grid3D > &points, unsigned long color=White) |
直線群の描画 | |
static unsigned long | drawCircle (const VXV::Grid ¢er, int r, unsigned long color=White) |
static unsigned long | drawText (const char *text, const VXV::Grid &pos, int pxSize=16, bool pin=false, unsigned long color=White, unsigned long background=Black) |
文字の描画 | |
static int | printf (const char *fmt,...) |
static void | scrollWithRobot (bool on) |
Friends | |
class | MonitorTask |
class | mRunCtrl |
class | mURGCtrl |
class | ScreenTask |
Definition at line 37 of file vmonitor.h.
int vmonitor::connect | ( | int | argc, | |
char * | argv[] | |||
) | [static] |
接続情報の指定
argc | [i] 引数の個数 | |
argv | [i] 引数文字列を格納した配列 |
Definition at line 113 of file vmonitor.cpp.
References env, getObject(), EnvironmentManage::getPolygonsReference(), EnvironmentManage::load(), Monitor::parseArgs(), scr, ScreenTask::setEnvironment(), WindowInterface::setFullscreen(), setMonitorMode(), and win.
Referenced by mURGCtrl::connect(), and mRunCtrl::connect().
void vmonitor::setMonitorMode | ( | int | monitorMode, | |
const char * | logfile | |||
) |
モニタの動作モードを指定
monitorMode | [i] 動作モード | |
logfile | [i] ログファイル |
Definition at line 135 of file vmonitor.cpp.
References LogCtrl::LogCtrl(), Monitor::RealDevice, VXV::set_MonitorMode(), Monitor::Simulator, and Monitor::Unknown.
Referenced by connect().
int vmonitor::getMonitorMode | ( | void | ) | [static] |
モニタの動作モードを取得
Definition at line 149 of file vmonitor.cpp.
References mode, and Monitor::Unknown.
Referenced by mRunCtrl::connect().
void vmonitor::add | ( | TaskInterface * | monitor_task | ) |
処理タスクの登録
monitor_task | [i] タスク |
Definition at line 167 of file vmonitor.cpp.
References MonitorTask::add().
Referenced by mURGCtrl::connect().
void vmonitor::del | ( | TaskInterface * | monitor_task | ) |
処理タスクの削除
monitor_task | [i] タスク |
Definition at line 175 of file vmonitor.cpp.
References MonitorTask::del(), LogCtrl::flush(), and hide().
Referenced by mURGCtrl::connect().
void vmonitor::setTimeMagnify | ( | double | magnify | ) | [static] |
時間の進行倍率を変更
magnify | [i] 時間の進行倍率 |
Definition at line 241 of file vmonitor.cpp.
References getObject(), mode, Monitor::RealDevice, VXV::set_DelayTimeMagnify(), MonitorTask::setTimeMagnify(), and task.
void vmonitor::setViewMagnify | ( | double | magnify | ) | [static] |
画面内の表示拡大率を指定
magnify | [i] 拡大率 |
Definition at line 252 of file vmonitor.cpp.
References getObject(), mode, Monitor::RealDevice, scr, and ScreenTask::updateViewMagnify().
void vmonitor::clear | ( | unsigned long | layer = 3 |
) | [static] |
描画オブジェクトの削除
layer | [i] 削除用インデックス |
Definition at line 267 of file vmonitor.cpp.
References ScreenTask::clear(), and scr.
unsigned long vmonitor::drawPoints | ( | const std::vector< VXV::Grid3D > & | points, | |
unsigned long | color = White , |
|||
int | r = 1 | |||
) | [static] |
点群の描画
points | [i] 点群 | |
color | [i] 色 | |
r | [i] 点の大きさ |
Definition at line 274 of file vmonitor.cpp.
References scr, and ScreenTask::setPoints().
unsigned long vmonitor::drawLine | ( | const VXV::Grid3D & | p0, | |
const VXV::Grid3D & | p1, | |||
unsigned long | color = White | |||
) | [static] |
直線の描画
p0 | [i] 始点 | |
p1 | [i] 終点 | |
color | [i] 色 |
Definition at line 283 of file vmonitor.cpp.
References scr, and ScreenTask::setLine().
unsigned long vmonitor::drawContLine | ( | const std::deque< VXV::Grid3D > & | points, | |
unsigned long | color = White | |||
) | [static] |
直線群の描画
points | [i] 連続直線を構成する点群 | |
color | [i] 色 |
Definition at line 292 of file vmonitor.cpp.
References scr, and ScreenTask::setContLine().
unsigned long vmonitor::drawText | ( | const char * | text, | |
const VXV::Grid & | pos, | |||
int | pxSize = 16 , |
|||
bool | pin = false , |
|||
unsigned long | color = White , |
|||
unsigned long | background = Black | |||
) | [static] |
文字の描画
text | [i] 描画する文字列 | |
pos | [i] 描画位置 | |
pxSize | [i] 文字サイズ | |
pin | [i] 文字を座標系に固定する場合に true | |
color | [i] 色 | |
background | [i] 背景色 |
Definition at line 311 of file vmonitor.cpp.
References scr, and ScreenTask::setText().