前のページ次のページ上に戻るホーム SophiaFramework 2.2
SFUPie
扇形を表すクラスです。
#include <SFUPie.hpp>
class SFUPie : public AEEPie;
typedef SFUPie&          SFUPieRef;
typedef SFUPie*          SFUPiePtr;
typedef SFUPie**         SFUPieHandle;
typedef const SFUPie     ConstSFUPie;
typedef const SFUPie&    ConstSFUPieRef;
typedef const SFUPie*    ConstSFUPiePtr;
typedef const SFUPie**   ConstSFUPieHandle;

解説

SFUPie は扇形を表すクラスです。 扇形を操作するためのさまざまな関数が用意されています。

参照

BREW API AEEPie | SFUArc | SFUCircle

メンバ

コンストラクタ/デストラクタ
public
SFUPie SFUPie クラスのコンストラクタです。
public
~SFUPie SFUPie クラスのデストラクタです。
パブリック変数
public
arcAngle 扇形の範囲角度です。
public
cx 扇形の中心の X 座標です。
public
cy 扇形の中心の Y 座標です。
public
r 扇形の半径です。
public
startAngle 扇形の開始角度です。
パブリック関数
public
Anchor 扇形の開始角度を取得/設定します。
public
Degree 扇形の範囲角度を取得/設定します。
public
Empty 扇形の半径が 0 または範囲角度が 0 であるか判定します。
public
Equal 2 つの扇形が等しいか判定します。
public
Offset 扇形の中心を移動します。
public
Origin 扇形の中心を取得/設定します。
public
Radius 扇形の半径を取得/設定します。
public
Set 扇形の各属性を設定します。
public
operator+ 扇形の中心を移動します。
public
operator- 扇形の中心を逆移動します。
public
operator== 2 つの扇形が等しいか判定します。

SFUPie::SFUPie
SFUPie クラスのコンストラクタです。
[ public ]
SFUPie(Void);
[ public ]
SFUPie(
    ConstAEEPieRef pie   // コピー元の扇形
);
[ public ]
SFUPie(
    ConstSFUArcRef arc   // コピー元の円弧
);
[ public ]
SFUPie(
    SInt16 x        // 中心の X 座標
    SInt16 y        // 中心の Y 座標
    SInt16 r        // 扇形の半径
    SInt16 anchor   // 扇形の開始角度 (度単位)
    SInt16 degree   // 扇形の範囲角度 (度単位)
);
[ public ]
SFUPie(
    ConstSFUPointRef point   // 中心の位置
    SInt16 r                 // 扇形の半径
    SInt16 anchor            // 扇形の開始角度 (度単位)
    SInt16 degree            // 扇形の範囲角度 (度単位)
);
[ public ]
SFUPie(
    ConstSFUCircleRef circle   // 中心と半径のコピー元の円
    SInt16 anchor              // 扇形の開始角度 (度単位)
    SInt16 degree              // 扇形の範囲角度 (度単位)
);
[ public ]
SFUPie(
    ConstSFUCircleRef circle   // コピー元の円
);

解説

引数に SFUCircle だけを指定した場合は、 開始角度 0 度、範囲角度 360 度の扇形が構築されます。

参照

SFUPie::Set


SFUPie::~SFUPie
SFUPie クラスのデストラクタです。
[ public ]
~SFUPie(Void);

SFUPie::Anchor
扇形の開始角度を取得/設定します。
[ public ]
ConstSFUPieRef Anchor(
    SInt16 anchor   // 設定する開始角度
);
[ public, const ]
SInt16 Anchor(Void);

参照

SFUPie::Degree


SFUPie::Degree
扇形の範囲角度を取得/設定します。
[ public ]
ConstSFUPieRef Degree(
    SInt16 degree   // 設定する範囲角度
);
[ public, const ]
SInt16 Degree(Void);

参照

SFUPie::Anchor


SFUPie::Empty
扇形の半径が 0 または範囲角度が 0 であるか判定します。
[ public, const ]
Bool Empty(Void);

戻り値

扇形の半径が 0 であるか、または、範囲角度が 0 であれば TRUE を返します。 そうでなければ FALSE を返します。


SFUPie::Equal
2 つの扇形が等しいか判定します。
[ public, const ]
Bool Equal(
    ConstSFUPieRef pie   // 比較対象の扇形
);

戻り値

2 つの扇形の中心、半径、開始角度、範囲角度がすべて等しければ TRUE を返します。 そうでなければ FALSE を返します。

参照

SFUPie::operator==


SFUPie::Offset
扇形の中心を移動します。
[ public ]
ConstSFUPieRef Offset(
    SInt16 dx   // X 方向の移動値
    SInt16 dy   // Y 方向の移動値
);
[ public ]
ConstSFUPieRef Offset(
    ConstSFUPointRef vector   // 移動する方向
);

参照

SFUPie::operator+ | SFUPie::operator-


SFUPie::Origin
扇形の中心を取得/設定します。
[ public ]
ConstSFUPieRef Origin(
    SInt16 x   // 設定する中心の X 座標
    SInt16 y   // 設定する中心の Y 座標
);
[ public ]
ConstSFUPieRef Origin(
    ConstSFUPointRef point   // 設定する中心
);
[ public, const ]
SFUPoint Origin(Void);

SFUPie::Radius
扇形の半径を取得/設定します。
[ public ]
ConstSFUPieRef Radius(
    SInt16 r   // 設定する半径
);
[ public, const ]
SInt16 Radius(Void);

SFUPie::Set
扇形の各属性を設定します。
[ public ]
ConstSFUPieRef Set(
    SInt16 x        // 中心の X 座標
    SInt16 y        // 中心の Y 座標
    SInt16 r        // 扇形の半径
    SInt16 anchor   // 扇形の開始角度 (度単位)
    SInt16 degree   // 扇形の範囲角度 (度単位)
);
[ public ]
ConstSFUPieRef Set(
    ConstSFUPointRef point   // 中心の位置
    SInt16 r                 // 扇形の半径
    SInt16 anchor            // 扇形の開始角度 (度単位)
    SInt16 degree            // 扇形の範囲角度 (度単位)
);
[ public ]
ConstSFUPieRef Set(
    ConstSFUCircleRef circle   // 中心と半径のコピー元の円
    SInt16 anchor              // 扇形の開始角度 (度単位)
    SInt16 degree              // 扇形の範囲角度 (度単位)
);
[ public ]
ConstSFUPieRef Set(
    ConstSFUCircleRef circle   // コピー元の円
);

解説

引数に SFUCircle だけを指定した場合は、 開始角度 0 度、範囲角度 360 度に設定されます。

参照

SFUPie::SFUPie


SFUPie::operator==
2 つの扇形が等しいか判定します。
[ public, friend ]
Bool operator==(
    ConstSFUPieRef pie1   
    ConstSFUPieRef pie2   
);
[ public, friend ]
Bool operator!=(
    ConstSFUPieRef pie1   
    ConstSFUPieRef pie2   
);

解説

2 つの扇形の中心、半径、開始角度、範囲角度がすべて等しければ TRUE を返します。 そうでなければ FALSE を返します。

参照

SFUPie::Equal


SFUPie::operator-
扇形の中心を逆移動します。
[ public, friend ]
SFUPie operator-(
    ConstSFUPieRef pie        // 逆移動する扇形
    ConstSFUPointRef vector   // 逆移動する方向
);
[ public ]
ConstSFUPieRef operator-=(
    ConstSFUPointRef vector   // 逆移動する方向
);

参照

SFUPie::Offset | SFUPie::operator+


SFUPie::operator+
扇形の中心を移動します。
[ public, friend ]
SFUPie operator+(
    ConstSFUPieRef pie        // 移動する扇形
    ConstSFUPointRef vector   // 移動する方向
);
[ public ]
ConstSFUPieRef operator+=(
    ConstSFUPointRef vector   // 移動する方向
);

参照

SFUPie::Offset | SFUPie::operator-


SFUPie::arcAngle
扇形の範囲角度です。
[ public ]
SInt16 arcAngle;

SFUPie::cx
扇形の中心の X 座標です。
[ public ]
SInt16 cx;

SFUPie::cy
扇形の中心の Y 座標です。
[ public ]
SInt16 cy;

SFUPie::r
扇形の半径です。
[ public ]
SInt16 r;

SFUPie::startAngle
扇形の開始角度です。
[ public ]
SInt16 startAngle;