BasicDrawInterface Class Reference

基本図形描画のインターフェース More...

#include <basicDraw.h>

Inheritance diagram for BasicDrawInterface:

Inheritance graph
[legend]
Collaboration diagram for BasicDrawInterface:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

基本図形描画のインターフェース

Todo:
説明が意味不明なのをどうにかする
Todo:
DrawAreaCtrl を実装後、このクラスを削除する

Definition at line 26 of file basicDraw.h.


Member Function Documentation

void BasicDrawInterface::setDrawPosition ( const VXV::Grid pos,
const VXV::Rect range,
double  magnify 
) [static]

描画位置の設定

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

void BasicDrawInterface::draw ( const VXV::Grid pos,
const VXV::Rect range,
double  magnify 
)

基本図形の描画

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

描画点の位置、大きさを計算

Parameters:
pos [i] 描画位置
range [i] 描画範囲
magnify [i] pixel の拡大率
Returns:
描画すべき矩形

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 
)

点の描画

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


Member Data Documentation

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().


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