![]() ![]() ![]()
|
SophiaFramework 2.2 |
#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 は扇形を表すクラスです。 扇形を操作するためのさまざまな関数が用意されています。
| コンストラクタ/デストラクタ | ||
|---|---|---|
| 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 つの扇形が等しいか判定します。 |
[ 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 度の扇形が構築されます。
[ public ] ~SFUPie(Void);
[ public ] ConstSFUPieRef Anchor( SInt16 anchor // 設定する開始角度 );
[ public, const ] SInt16 Anchor(Void);
[ public ] ConstSFUPieRef Degree( SInt16 degree // 設定する範囲角度 );
[ public, const ] SInt16 Degree(Void);
[ public, const ] Bool Empty(Void);
扇形の半径が 0 であるか、または、範囲角度が 0 であれば TRUE を返します。 そうでなければ FALSE を返します。
[ public, const ] Bool Equal( ConstSFUPieRef pie // 比較対象の扇形 );
2 つの扇形の中心、半径、開始角度、範囲角度がすべて等しければ TRUE を返します。 そうでなければ FALSE を返します。
[ public ] ConstSFUPieRef Offset( SInt16 dx // X 方向の移動値 SInt16 dy // Y 方向の移動値 );
[ public ] ConstSFUPieRef Offset( ConstSFUPointRef vector // 移動する方向 );
[ public ] ConstSFUPieRef Origin( SInt16 x // 設定する中心の X 座標 SInt16 y // 設定する中心の Y 座標 );
[ public ] ConstSFUPieRef Origin( ConstSFUPointRef point // 設定する中心 );
[ public, const ] SFUPoint Origin(Void);
[ public ] ConstSFUPieRef Radius( SInt16 r // 設定する半径 );
[ public, const ] SInt16 Radius(Void);
[ 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 度に設定されます。
[ public, friend ] Bool operator==( ConstSFUPieRef pie1 ConstSFUPieRef pie2 );
[ public, friend ] Bool operator!=( ConstSFUPieRef pie1 ConstSFUPieRef pie2 );
2 つの扇形の中心、半径、開始角度、範囲角度がすべて等しければ TRUE を返します。 そうでなければ FALSE を返します。
[ public, friend ] SFUPie operator-( ConstSFUPieRef pie // 逆移動する扇形 ConstSFUPointRef vector // 逆移動する方向 );
[ public ] ConstSFUPieRef operator-=( ConstSFUPointRef vector // 逆移動する方向 );
[ public, friend ] SFUPie operator+( ConstSFUPieRef pie // 移動する扇形 ConstSFUPointRef vector // 移動する方向 );
[ public ] ConstSFUPieRef operator+=( ConstSFUPointRef vector // 移動する方向 );
[ public ] SInt16 arcAngle;
[ public ] SInt16 cx;
[ public ] SInt16 cy;
[ public ] SInt16 r;
[ public ] SInt16 startAngle;
| Copyright(C) 2003-2004 Sophia Cradle Inc., All Rights Reserved. |
![]() ![]() ![]()
|