SDXFrameWork 0.12 SDXFrameWork

- Main Page
- Related Pages
- Classes

All Classes Namespaces Functions Variables Enumerations Enumerator Pages
IDrawable.h
1 //Copyright © 2014 SDXFramework
2 //[License]GNU Affero General Public License, version 3
3 //[Contact]http://sourceforge.jp/projects/dxframework/
4 #pragma once
5
6 namespace SDX
7 {
8 class Point;
9 class Rect;
10
14 class IDrawable
15 {
16 public:
17 virtual ~IDrawable() = default;
18
20 virtual bool Draw(const Point &座標, bool 反転フラグ = false) const = 0;
22 virtual bool DrawExtend(const Rect &描画範囲 ,bool 反転フラグ = false) const = 0;
24 virtual bool DrawRotate(const Point &座標, double 拡大率, double 角度, bool 反転フラグ = false) const = 0;
26 virtual bool DrawRotateAxis(const Point &座標, const Point &回転軸座標, double 拡大率, double 角度, bool 反転フラグ = false) const = 0;
28 virtual bool DrawRotateAxis(const Point &座標, const Point &回転軸座標, double 拡大率X, double 拡大率Y, double 角度, bool 反転フラグ = false) const = 0;
30 virtual bool DrawPart(const Point &描画先座標, const Rect &描画元領域, bool 反転フラグ = false) const = 0;
31 };
32 }
SDX::IDrawable::DrawExtend
virtual bool DrawExtend(const Rect &描画範囲, bool 反転フラグ=false) const =0
指定矩形内に拡大/縮小描画.
SDX::Rect
矩形を表す図形クラス.
Definition: Rect.h:22
SDX::IDrawable::Draw
virtual bool Draw(const Point &座標, bool 反転フラグ=false) const =0
指定座標に描画.
SDX::IDrawable::DrawPart
virtual bool DrawPart(const Point &描画先座標, const Rect &描画元領域, bool 反転フラグ=false) const =0
一部を指定して描画.
SDX::IDrawable::DrawRotate
virtual bool DrawRotate(const Point &座標, double 拡大率, double 角度, bool 反転フラグ=false) const =0
角度、拡大率を指定して描画.
SDX::Point
点を表す図形クラス.
Definition: Point.h:22
SDX::IDrawable::DrawRotateAxis
virtual bool DrawRotateAxis(const Point &座標, const Point &回転軸座標, double 拡大率, double 角度, bool 反転フラグ=false) const =0
回転軸、角度、拡大率を指定して描画.
SDX::IDrawable
描画可能なクラスのインターフェース.
Definition: IDrawable.h:14