ScreenTask Class Reference

画面の制御タスク More...

#include <screenTask.h>

Inheritance diagram for ScreenTask:

Inheritance graph
[legend]
Collaboration diagram for ScreenTask:

Collaboration graph
[legend]

List of all members.

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 &center)
 描画中心を更新
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 &center, 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

ScrollAreaComponentcommand_log


Detailed Description

画面の制御タスク

Definition at line 21 of file screenTask.h.


Constructor & Destructor Documentation

ScreenTask::ScreenTask ( WindowInterface winObj,
TTF_Draw ttfObj 
)

資源指定のコンストラクタ

Parameters:
winObj [i] ウィンドウオブジェクト
ttfObj [i] TTF資源オブジェクト

Definition at line 12 of file screenTask.cpp.

References WindowInterface::h, and WindowInterface::w.


Member Function Documentation

void ScreenTask::exec1msec ( unsigned long  total_msec  )  [inline, virtual]

1msec 毎の処理

Parameters:
total_msec [i] タイムスタンプ

Implements TaskInterface.

Definition at line 119 of file screenTask.h.

bool ScreenTask::updatePosition ( void   )  [inline, virtual]

筐体位置を更新するか

Returns:
筐体位置を更新する場合に true

Implements TaskInterface.

Definition at line 121 of file screenTask.h.

VXV::Position3D ScreenTask::getBodyPosition ( const VXV::Position3D position  )  [inline, virtual]

更新された筐体位置

Parameters:
position [i] 更新前の筐体位置

Implements TaskInterface.

Definition at line 122 of file screenTask.h.

void ScreenTask::updateViewMagnify ( double  magnify  ) 

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

Parameters:
magnify [i] 拡大率

Definition at line 445 of file screenTask.cpp.

Referenced by init(), and vmonitor::setViewMagnify().

void ScreenTask::setViewCenter ( VXV::Grid center  ) 

描画中心を更新

Parameters:
center [i] 描画の中心位置

Definition at line 451 of file screenTask.cpp.

void ScreenTask::setEnvironment ( const std::vector< CoordinateCtrl::polygon_t > &  objs  ) 

環境オブジェクトの更新

Parameters:
objs [i] ポリゴン群

Definition at line 457 of file screenTask.cpp.

Referenced by vmonitor::connect().

void ScreenTask::clear ( unsigned long  index  ) 

描画オブジェクトの削除

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

点群の描画

Parameters:
points [i] 点群
color [i] 色
width [i] 点の大きさ
Returns:
削除用インデックス

Referenced by vmonitor::drawPoints().

unsigned long ScreenTask::setLine ( const VXV::Grid3D p0,
const VXV::Grid3D p1,
unsigned long  color 
)

直線の描画

Parameters:
p0 [i] 始点
p1 [i] 終点
color [i] 色
Returns:
削除用インデックス

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 
)

直線群の描画

Parameters:
points [i] 連続直線を構成する点群
color [i] 色
Returns:
削除用インデックス

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 
)

文字の描画

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


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