#include <viewComponent.h>
Public Member Functions | |
ViewComponent (const VXV::Rect &range, double magnify=1.0f) | |
サイズ指定のコンストラクタ | |
bool | draw (unsigned long ticks, const UserInput &ui) |
コンポーネントの描画 | |
ViewComponent & | updateMagnify (double magnify) |
表示倍率の変更 | |
ViewComponent & | setViewToRangeGrid (const VXV::Grid &view_grid, const VXV::Grid &range_grid) |
表示範囲の設定 | |
ViewComponent & | updateViewPosition (const VXV::Grid &pos) |
どの位置を表示するかの変更 | |
ViewComponent & | updateViewSize (const VXV::Rect &size) |
表示範囲の更新 | |
ViewComponent & | clear (void) |
登録内容のクリア | |
ViewComponent & | add (BasicDrawInterface *obj) |
描画内容の登録 | |
void | del (BasicDrawInterface *obj) |
描画内容の削除 |
Definition at line 21 of file viewComponent.h.
ViewComponent::ViewComponent | ( | const VXV::Rect & | range, | |
double | magnify = 1.0f | |||
) |
サイズ指定のコンストラクタ
range | [i] 表示サイズ | |
magnify | [i] 表示倍率 |
Definition at line 11 of file viewComponent.cpp.
References VXV::Rect::h, ComponentInterface::h, ComponentInterface::position, VXV::Rect::w, and ComponentInterface::w.
bool ViewComponent::draw | ( | unsigned long | ticks, | |
const UserInput & | ui | |||
) | [virtual] |
コンポーネントの描画
コンポーネントを描画する
ticks | [i] 時刻印 [msec]を渡す。ただし、これ以外の情報を渡してもよい | |
ui | [i] ウィンドウへのユーザ入力情報 |
true | 正常 | |
false | 以後の描画は必要ない |
Implements ComponentInterface.
Definition at line 26 of file viewComponent.cpp.
References ComponentInterface::position, and BasicDrawInterface::setDrawPosition().
ViewComponent & ViewComponent::updateMagnify | ( | double | magnify | ) |
ViewComponent & ViewComponent::setViewToRangeGrid | ( | const VXV::Grid & | view_grid, | |
const VXV::Grid & | range_grid | |||
) |
表示範囲の設定
view_grid | [i] 表示位置 | |
range_grid | [i] 表示範囲 |
Definition at line 46 of file viewComponent.cpp.
References updateViewPosition(), VXV::Grid::x, and VXV::Grid::y.
Referenced by ScreenTask::init().
ViewComponent & ViewComponent::updateViewPosition | ( | const VXV::Grid & | pos | ) |
どの位置を表示するかの変更
pos | [i] 表示位置 |
Definition at line 56 of file viewComponent.cpp.
References VXV::Grid::x, and VXV::Grid::y.
Referenced by setViewToRangeGrid().
ViewComponent & ViewComponent::updateViewSize | ( | const VXV::Rect & | size | ) |
表示範囲の更新
size | [i] 表示範囲 |
Definition at line 64 of file viewComponent.cpp.
References VXV::Rect::h, and VXV::Rect::w.
ViewComponent & ViewComponent::add | ( | BasicDrawInterface * | obj | ) |
void ViewComponent::del | ( | BasicDrawInterface * | obj | ) |