#include <basicDraw.h>
Public Member Functions | |
virtual void | draw (void)=0 |
描画 | |
void | draw (const VXV::Grid &pos, const VXV::Rect &range, double magnify) |
基本図形の描画 | |
VXV::Rect | calcPixelRange (const VXV::Grid &pos, const VXV::Rect &range, double magnify) |
描画点の位置、大きさを計算 | |
void | drawRangedPixel (const VXV::Rect &pixel_range, int x, int y) |
点の描画 | |
Static Public Member Functions | |
static void | setDrawPosition (const VXV::Grid &pos, const VXV::Rect &range, double magnify) |
描画位置の設定 | |
Static Protected Attributes | |
static VXV::Grid | view_pos |
static VXV::Rect | view_range |
static double | view_magnify |
Definition at line 26 of file basicDraw.h.
void BasicDrawInterface::setDrawPosition | ( | const VXV::Grid & | pos, | |
const VXV::Rect & | range, | |||
double | magnify | |||
) | [static] |
描画位置の設定
pos | [i] 描画位置 | |
range | [i] 描画範囲 | |
magnify | [i] pixel の拡大率 |
Definition at line 18 of file basicDraw.cpp.
References view_magnify, view_pos, and view_range.
Referenced by ViewComponent::draw(), and draw().
基本図形の描画
pos | [i] 描画位置 | |
range | [i] 表示する Window位置、描画範囲 [pixel] | |
magnify | [i] pixelの拡大率 [1] |
Definition at line 27 of file basicDraw.cpp.
References draw(), and setDrawPosition().
VXV::Rect BasicDrawInterface::calcPixelRange | ( | const VXV::Grid & | pos, | |
const VXV::Rect & | range, | |||
double | magnify | |||
) |
描画点の位置、大きさを計算
pos | [i] 描画位置 | |
range | [i] 描画範囲 | |
magnify | [i] pixel の拡大率 |
Definition at line 34 of file basicDraw.cpp.
References VXV::Rect::h, VXV::Rect::w, VXV::Grid::x, and VXV::Grid::y.
Referenced by CircleDraw::draw(), LineDraw::draw(), PixelGroupDraw::draw(), and PixelDraw::draw().
void BasicDrawInterface::drawRangedPixel | ( | const VXV::Rect & | pixel_range, | |
int | x, | |||
int | y | |||
) |
点の描画
pixel_range | [i] 点の描画範囲 | |
x | [i] X位置 | |
y | [i] Y位置 |
Definition at line 47 of file basicDraw.cpp.
References VXV::Rect::h, PixelDraw::setPixel(), VXV::Rect::w, VXV::Grid::x, and VXV::Grid::y.
Referenced by CircleDraw::draw(), LineDraw::draw(), PixelGroupDraw::draw(), and PixelDraw::draw().
VXV::Grid BasicDrawInterface::view_pos [static, protected] |
描画位置
Definition at line 28 of file basicDraw.h.
Referenced by TextDraw::draw(), CircleDraw::draw(), LineDraw::draw(), PixelGroupDraw::draw(), PixelDraw::draw(), and setDrawPosition().
VXV::Rect BasicDrawInterface::view_range [static, protected] |
描画範囲
Definition at line 29 of file basicDraw.h.
Referenced by TextDraw::draw(), CircleDraw::draw(), LineDraw::draw(), PixelGroupDraw::draw(), PixelDraw::draw(), and setDrawPosition().
double BasicDrawInterface::view_magnify [static, protected] |
pixel の拡大率
Definition at line 30 of file basicDraw.h.
Referenced by TextDraw::draw(), CircleDraw::draw(), LineDraw::draw(), PixelGroupDraw::draw(), PixelDraw::draw(), and setDrawPosition().