vmonitor Class Reference

モニタ資源の管理クラス More...

#include <vmonitor.h>

Inheritance diagram for vmonitor:

Inheritance graph
[legend]
Collaboration diagram for vmonitor:

Collaboration graph
[legend]

List of all members.

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 vmonitorgetObject (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 &center, 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


Detailed Description

モニタ資源の管理クラス

Definition at line 37 of file vmonitor.h.


Member Function Documentation

int vmonitor::connect ( int  argc,
char *  argv[] 
) [static]

接続情報の指定

Todo:
説明を記述
Parameters:
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 
)

モニタの動作モードを指定

Parameters:
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]

モニタの動作モードを取得

Returns:
動作モード

Definition at line 149 of file vmonitor.cpp.

References mode, and Monitor::Unknown.

Referenced by mRunCtrl::connect().

void vmonitor::add ( TaskInterface monitor_task  ) 

処理タスクの登録

Parameters:
monitor_task [i] タスク

Definition at line 167 of file vmonitor.cpp.

References MonitorTask::add().

Referenced by mURGCtrl::connect().

void vmonitor::del ( TaskInterface monitor_task  ) 

処理タスクの削除

Parameters:
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]

時間の進行倍率を変更

Parameters:
magnify [i] 時間の進行倍率
Examples:
lines.cpp.

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]

画面内の表示拡大率を指定

Parameters:
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]

描画オブジェクトの削除

Todo:
説明を記述
Parameters:
layer [i] 削除用インデックス
Examples:
stopToObstacle.cpp.

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]

点群の描画

Todo:
説明を記述
Parameters:
points [i] 点群
color [i] 色
r [i] 点の大きさ
Returns:
削除用インデックス
Examples:
stopToObstacle.cpp.

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]

直線の描画

Todo:
説明を記述
Parameters:
p0 [i] 始点
p1 [i] 終点
color [i] 色
Returns:
削除用インデックス
Examples:
stopToObstacle.cpp.

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]

直線群の描画

Todo:
説明を記述
Parameters:
points [i] 連続直線を構成する点群
color [i] 色
Returns:
削除用インデックス
Examples:
lines.cpp.

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]

文字の描画

Todo:
透明色を指定できるようにする
Parameters:
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().


The documentation for this class was generated from the following files:

Generated on Mon Apr 13 22:52:07 2009 by  doxygen 1.5.7.1