![]() ![]() ![]()
|
SophiaFramework 2.2 |
#include <SFUArc.hpp>
class SFUArc : public AEEArc;
typedef SFUArc& SFUArcRef; typedef SFUArc* SFUArcPtr; typedef SFUArc** SFUArcHandle; typedef const SFUArc ConstSFUArc; typedef const SFUArc& ConstSFUArcRef; typedef const SFUArc* ConstSFUArcPtr; typedef const SFUArc** ConstSFUArcHandle;
SFUArc は円弧を表すクラスです。 円弧を操作するためのさまざまな関数が用意されています。
| コンストラクタ/デストラクタ | ||
|---|---|---|
| public |
SFUArc | SFUArc クラスのコンストラクタです。 |
| public |
~SFUArc | SFUArc クラスのデストラクタです。 |
| パブリック変数 | ||
|---|---|---|
| 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 ] SFUArc(Void);
[ public ]
SFUArc(
ConstAEEArcRef arc // コピー元の円弧
);
[ public ]
SFUArc(
ConstAEEArcRef arc // コピー元の円弧
);
[ public ]
SFUArc(
ConstSFUPieRef pie // コピー元の扇形
);
[ public ]
SFUArc(
SInt16 x // 中心の X 座標
SInt16 y // 中心の Y 座標
SInt16 r // 円弧の半径
SInt16 anchor // 円弧の開始角度 (度単位)
SInt16 degree // 円弧の範囲角度 (度単位)
);
[ public ]
SFUArc(
ConstSFUPointRef point // 中心の位置
SInt16 r // 円弧の半径
SInt16 anchor // 円弧の開始角度 (度単位)
SInt16 degree // 円弧の範囲角度 (度単位)
);
[ public ]
SFUArc(
ConstSFUCircleRef circle // 中心と半径のコピー元の円
SInt16 anchor // 円弧の開始角度 (度単位)
SInt16 degree // 円弧の範囲角度 (度単位)
);
[ public ]
SFUArc(
ConstSFUCircleRef circle // コピー元の円
);
引数に SFUCircle だけを指定した場合は、 開始角度が 0 度、範囲角度が 360 度の円弧が構築されます。
[ public ] ~SFUArc(Void);
[ public ] ConstSFUArcRef Anchor( SInt16 anchor // 設定する開始角度 );
[ public, const ] SInt16 Anchor(Void);
[ public ] ConstSFUArcRef Degree( SInt16 degree // 設定する範囲角度 );
[ public, const ] SInt16 Degree(Void);
[ public, const ] Bool Empty(Void);
円弧の半径が 0 か、または、範囲角度が 0 であれば TRUE を返します。 そうでなければ FALSE を返します。
[ public, const ] Bool Equal( ConstSFUArcRef arc // 比較対象の円弧 );
2 つの円弧の中心、半径、開始角度、範囲角度がすべて等しければ TRUE を返します。 そうでなければ FALSE を返します。
[ public ] ConstSFUArcRef Offset( SInt16 dx // X 方向の移動値 SInt16 dy // Y 方向の移動値 );
[ public ] ConstSFUArcRef Offset( ConstSFUPointRef vector // 移動する方向 );
[ public ] ConstSFUArcRef Origin( SInt16 x // 設定する中心の X 座標 SInt16 y // 設定する中心の Y 座標 );
[ public ] ConstSFUArcRef Origin( ConstSFUPointRef point // 設定する中心 );
[ public, const ] SFUPoint Origin(Void);
[ public ] ConstSFUArcRef Radius( SInt16 r // 設定する半径 );
[ public, const ] SInt16 Radius(Void);
[ public ] ConstSFUArcRef Set( SInt16 x // 中心の X 座標 SInt16 y // 中心の Y 座標 SInt16 r // 円弧の半径 SInt16 anchor // 円弧の開始角度 (度単位) SInt16 degree // 円弧の範囲角度 (度単位) );
[ public ] ConstSFUArcRef Set( ConstSFUPointRef point // 中心の位置 SInt16 r // 円弧の半径 SInt16 anchor // 円弧の開始角度 (度単位) SInt16 degree // 円弧の範囲角度 (度単位) );
[ public ] ConstSFUArcRef Set( ConstSFUCircleRef circle // 中心と半径のコピー元の円 SInt16 anchor // 円弧の開始角度 (度単位) SInt16 degree // 円弧の範囲角度 (度単位) );
[ public ] ConstSFUArcRef Set( ConstSFUCircleRef circle // コピー元の円 );
[ public ] ConstSFUArcRef Set( ConstSFUPieRef pie // コピー元の扇形 );
引数に SFUCircle だけを指定した場合は、 開始角度 0 度、範囲角度 360 度に設定されます。
[ public, friend ] Bool operator==( ConstSFUArcRef arc1 ConstSFUArcRef arc2 );
[ public, friend ] Bool operator!=( ConstSFUArcRef arc1 ConstSFUArcRef arc2 );
2 つの円弧の中心、半径、開始角度、範囲角度がすべて等しければ TRUE を返します。 そうでなければ FALSE を返します。
[ public, friend ] SFUArc operator-( ConstSFUArcRef arc // 逆移動する円弧 ConstSFUPointRef vector // 逆移動する方向 );
[ public ] ConstSFUArcRef operator-=( ConstSFUPointRef vector // 逆移動する方向 );
[ public, friend ] SFUArc operator+( ConstSFUArcRef arc // 移動する円弧 ConstSFUPointRef vector // 移動する方向 );
[ public ] ConstSFUArcRef 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. |
![]() ![]() ![]()
|