前のページ次のページ上に戻るホーム BREW C++ ライブラリ & GUI フレームワーク & XML ミドルウェア : SophiaFramework UNIVERSE 5.0
SFXPolygon
多角形を表すクラスです。
#include <SFXPolygon.h.hpp>
class SFXPolygon;
SFMTYPEDEFCLASS(SFXPolygon)

解説

SFXPolygon クラスは、頂点の座標を配列として処理します。

SFXPolygon クラスは、内部でヒープの割り当てを行いません。 頂点の座標を保持する配列を作成する必要があります。

SFXPolygon クラスにスコープがある間は、作成した配列が破壊しないようにする必要があります。

メンバ

コンストラクタ/デストラクタ
SFXPolygon( Void )
SFXPolygon( SFXPolygonConstRef param )
SFXPolygon( SFXPixelPtr vertex , SInt16 length )
SFXPolygon( SFXPolylineConstRef polyline )
SFXPolygon クラスのコンストラクタです。
パブリック関数
SFXPolygonRef AddVertex( SInt16 index , SFXPixelConstRef value )
AddVertex( SInt16 index , SInt16 x , SInt16 y )
頂点の座標を加算します。
SFXPolygonRef AddVertexX( SInt16 index , SInt16 value )
頂点の X 座標を加算します。
SFXPolygonRef AddVertexY( SInt16 index , SInt16 value )
頂点の Y 座標を加算します。
SFXPolygonRef DivVertex( SInt16 index , SInt16 x , SInt16 y )
DivVertex( SInt16 index , SInt16 value )
頂点の座標を除算します。
SFXPolygonRef DivVertexX( SInt16 index , SInt16 value )
頂点の X 座標を除算します。
SFXPolygonRef DivVertexY( SInt16 index , SInt16 value )
頂点の Y 座標を除算します。
static
SFXPolygonConstRef
EmptyInstance( Void )
空の多角形を取得します。
Bool Equals( SFXPolygonConstRef param )
Equals( SFXPixelConstPtr vertex , SInt16 length )
指定した多角形と等しいか判定します。
SInt16 GetLength( Void )
頂点の数を取得します。
SFXPixelPtr GetVertex( Void )
頂点の座標を取得します。
SFXPixelConstRef GetVertex( SInt16 index )
頂点の座標を取得します。
SInt16 GetVertexX( SInt16 index )
頂点の X 座標を取得します。
SInt16 GetVertexY( SInt16 index )
頂点の Y 座標を取得します。
Bool IsEmpty( Void )
多角形が空であるか判定します。
SFXPolygonRef ModVertex( SInt16 index , SInt16 x , SInt16 y )
ModVertex( SInt16 index , SInt16 value )
頂点の座標を剰余します。
SFXPolygonRef ModVertexX( SInt16 index , SInt16 value )
頂点の X 座標を剰余します。
SFXPolygonRef ModVertexY( SInt16 index , SInt16 value )
頂点の Y 座標を剰余します。
SFXPolygonRef MulVertex( SInt16 index , SInt16 x , SInt16 y )
MulVertex( SInt16 index , SInt16 value )
頂点の座標を乗算します。
SFXPolygonRef MulVertexX( SInt16 index , SInt16 value )
頂点の X 座標を乗算します。
SFXPolygonRef MulVertexY( SInt16 index , SInt16 value )
頂点の Y 座標を乗算します。
SFXPolygonRef NegVertex( SInt16 index )
頂点の座標の符号を反転します。
SFXPolygonRef NegVertexX( SInt16 index )
頂点の X 座標の符号を反転します。
SFXPolygonRef NegVertexY( SInt16 index )
頂点の Y 座標の符号を反転します。
SFXPolygonRef Normalize( Void )
多角形を正規化します。
SFXPolygonRef Offset( SFXGridConstRef param )
Offset( SInt16 x , SInt16 y )
全ての頂点の座標を加算し、多角形を移動します。
SFXPolygonRef Set( SFXPolygonConstRef param )
Set( SFXPolylineConstRef polyline )
Set( SFXPixelPtr vertex , SInt16 length )
多角形を設定します。
SFXPolygonRef SetLength( SInt16 param )
頂点の数を設定します。
SFXPolygonRef SetVertex( SFXPixelPtr param )
SetVertex( SInt16 index , SInt16 x , SInt16 y )
SetVertex( SInt16 index , SFXPixelConstRef value )
頂点の座標を設定します。
SFXPolygonRef SetVertexX( SInt16 index , SInt16 value )
頂点の X 座標を設定します。
SFXPolygonRef SetVertexY( SInt16 index , SInt16 value )
頂点の Y 座標を設定します。
SFXPolygonRef SubVertex( SInt16 index , SFXPixelConstRef value )
SubVertex( SInt16 index , SInt16 x , SInt16 y )
頂点の座標を減算します。
SFXPolygonRef SubVertexX( SInt16 index , SInt16 value )
頂点の X 座標を減算します。
SFXPolygonRef SubVertexY( SInt16 index , SInt16 value )
頂点の Y 座標を減算します。
SFXPolygonRef Unoffset( SFXGridConstRef param )
Unoffset( SInt16 x , SInt16 y )
全ての頂点の座標を減算し、多角形を移動します。
static
SFXPolygonConstRef
ZeroInstance( Void )
0 を表すインスタンスを取得します。
SFXPolygonRef operator+=( SFXGridConstRef param )
全ての頂点を加算し、多角形を移動します。
SFXPolygonRef operator-=( SFXGridConstRef param )
全ての頂点の座標を減算し、多角形を移動します。
SFXPolygonRef operator=( SFXPolygonConstRef param )
多角形を代入します。
SFXPixelRef operator[]( SInt16 index )
指定した頂点の座標を取得します。
SFXPolygon::AtomRec * atomic_cast( SFXPolygon * param )
SFXPolygon を SFXPolygon::AtomRec に変換します。
AtomRec const * atomic_cast( SFXPolygon::SFXPolygon const * param )
SFXPolygon を SFXPolygon::AtomRec に変換します。
AEEPolygon * interface_cast( SFXPolygon * param )
SFXPolygon を AEEPolygon に変換します。
AEEPolygon const * interface_cast( SFXPolygon const * param )
SFXPolygon を AEEPolygon に変換します。
Bool operator==( SFXPolygonConstRef left , SFXPolygonConstRef right )
== の関係を判定します。
SFXPolygon operator-( SFXPolygonConstRef left , SFXGridConstRef right )
全ての頂点の座標を減算し、多角形を移動します。
Bool operator!=( SFXPolygonConstRef left , SFXPolygonConstRef right )
!= の関係を判定します。
SFXPolygon operator+( SFXPolygonConstRef left , SFXGridConstRef right )
全ての頂点を加算し、多角形を移動します。
AtomRec
多角形を表す構造体です。
グローバル関数
SFXPolygon::AtomRec * atomic_cast( SFXPolygon * param )
SFXPolygon を SFXPolygon::AtomRec に変換します。
AtomRec const * atomic_cast( SFXPolygon::SFXPolygon const * param )
SFXPolygon を SFXPolygon::AtomRec に変換します。
AEEPolygon * interface_cast( SFXPolygon * param )
SFXPolygon を AEEPolygon に変換します。
AEEPolygon const * interface_cast( SFXPolygon const * param )
SFXPolygon を AEEPolygon に変換します。
Bool operator==( SFXPolygonConstRef left , SFXPolygonConstRef right )
== の関係を判定します。
SFXPolygon operator-( SFXPolygonConstRef left , SFXGridConstRef right )
全ての頂点の座標を減算し、多角形を移動します。
Bool operator!=( SFXPolygonConstRef left , SFXPolygonConstRef right )
!= の関係を判定します。
SFXPolygon operator+( SFXPolygonConstRef left , SFXGridConstRef right )
全ての頂点を加算し、多角形を移動します。

SFXPolygon::SFXPolygon
SFXPolygon クラスのコンストラクタです。
[ public, explicit ]
SFXPolygon(Void);
[ public ]
SFXPolygon(
    SFXPolygonConstRef param   // 元になる多角形
);
[ public, explicit ]
SFXPolygon(
    SFXPixelPtr vertex   // 頂点の座標の列
    SInt16 length        // 頂点の数
);
[ public, explicit ]
SFXPolygon(
    SFXPolylineConstRef polyline   // 元になる折れ線
);

SFXPolygon::AddVertex
頂点の座標を加算します。
[ public ]
SFXPolygonRef AddVertex(
    SInt16 index             // 加算対象の頂点のインデックス
    SFXPixelConstRef value   // 頂点の座標に加える値
);
[ public ]
SFXPolygonRef AddVertex(
    SInt16 index   // 加算対象の頂点のインデックス
    SInt16 x       // 頂点の X 座標に加える値
    SInt16 y       // 頂点の Y 座標に加える値
);

参照

SFXPolygon::AddVertexX | SFXPolygon::AddVertexY | SFXPolygon::SubVertex | SFXPolygon::MulVertex | SFXPolygon::DivVertex | SFXPolygon::ModVertex | SFXPolygon::NegVertex


SFXPolygon::AddVertexX
頂点の X 座標を加算します。
[ public ]
SFXPolygonRef AddVertexX(
    SInt16 index   // 加算対象の頂点のインデックス
    SInt16 value   // 頂点の座標に加える値
);

参照

SFXPolygon::AddVertex | SFXPolygon::AddVertexY | SFXPolygon::SubVertexX | SFXPolygon::MulVertexX | SFXPolygon::DivVertexX | SFXPolygon::ModVertexX | SFXPolygon::NegVertexX


SFXPolygon::AddVertexY
頂点の Y 座標を加算します。
[ public ]
SFXPolygonRef AddVertexY(
    SInt16 index   // 加算対象の頂点のインデックス
    SInt16 value   // 頂点の座標に加える値
);

参照

SFXPolygon::AddVertex | SFXPolygon::AddVertexX | SFXPolygon::SubVertexY | SFXPolygon::MulVertexY | SFXPolygon::DivVertexY | SFXPolygon::ModVertexY | SFXPolygon::NegVertexY


SFXPolygon::DivVertex
頂点の座標を除算します。
[ public ]
SFXPolygonRef DivVertex(
    SInt16 index   // 除算対象の頂点のインデックス
    SInt16 x       // 頂点の X 座標を除算する値
    SInt16 y       // 頂点の Y 座標を除算する値
);
[ public ]
SFXPolygonRef DivVertex(
    SInt16 index   // 除算対象の頂点のインデックス
    SInt16 value   // 頂点の座標を除算する値
);

解説

value、x、y の値が 0 の場合の動作は未定義です。

参照

SFXPolygon::AddVertex | SFXPolygon::SubVertex | SFXPolygon::MulVertex | SFXPolygon::DivVertexX | SFXPolygon::DivVertexY | SFXPolygon::ModVertex | SFXPolygon::NegVertex


SFXPolygon::DivVertexX
頂点の X 座標を除算します。
[ public ]
SFXPolygonRef DivVertexX(
    SInt16 index   // 除算対象の頂点のインデックス
    SInt16 value   // 頂点の X 座標を除算する値
);

解説

value の値が 0 の場合の動作は未定義です。

参照

SFXPolygon::AddVertexX | SFXPolygon::SubVertexX | SFXPolygon::MulVertexX | SFXPolygon::DivVertex | SFXPolygon::DivVertexY | SFXPolygon::ModVertexX | SFXPolygon::NegVertexX


SFXPolygon::DivVertexY
頂点の Y 座標を除算します。
[ public ]
SFXPolygonRef DivVertexY(
    SInt16 index   // 除算対象の頂点のインデックス
    SInt16 value   // 頂点の Y 座標を除算する値
);

解説

value の値が 0 の場合の動作は未定義です。

参照

SFXPolygon::AddVertexY | SFXPolygon::SubVertexY | SFXPolygon::MulVertexY | SFXPolygon::DivVertex | SFXPolygon::DivVertexX | SFXPolygon::ModVertexY | SFXPolygon::NegVertexY


SFXPolygon::EmptyInstance
空の多角形を取得します。
[ public, static ]
SFXPolygonConstRef EmptyInstance(Void);

戻り値

面積がゼロである多角形を表すインスタンスを返します。

解説

図形で長さを表す変数が、0 以下のときその図形の面積はゼロになります。主に、代入文での図形の初期値や、関数での図形の戻り値として利用します。


SFXPolygon::Equals
指定した多角形と等しいか判定します。
[ public, const ]
Bool Equals(
    SFXPolygonConstRef param   // 比較対象の多角形
);
[ public, const ]
Bool Equals(
    SFXPixelConstPtr vertex   // 比較対象の頂点の列
    SInt16 length             // 比較対象の頂点の数
);

戻り値

  • 等しいとき: true
  • 異なるとき : false

参照

operator== | operator!=


SFXPolygon::GetLength
頂点の数を取得します。
[ public, const ]
SInt16 GetLength(Void);

参照

SFXPolygon::SetLength


SFXPolygon::GetVertex
頂点の座標を取得します。
[ public, const ]
SFXPixelPtr GetVertex(Void);
[ public, const ]
SFXPixelConstRef GetVertex(
    SInt16 index   // 取得する頂点のインデックス
);

参照

SFXPolygon::GetVertexX | SFXPolygon::GetVertexY | SFXPolygon::SetVertex


SFXPolygon::GetVertexX
頂点の X 座標を取得します。
[ public, const ]
SInt16 GetVertexX(
    SInt16 index   // 取得対象の頂点のインデックス
);

参照

SFXPolygon::GetVertex | SFXPolygon::GetVertexY | SFXPolygon::SetVertexX


SFXPolygon::GetVertexY
頂点の Y 座標を取得します。
[ public, const ]
SInt16 GetVertexY(
    SInt16 index   // 取得対象の頂点のインデックス
);

参照

SFXPolygon::GetVertex | SFXPolygon::GetVertexX | SFXPolygon::SetVertexY


SFXPolygon::IsEmpty
多角形が空であるか判定します。
[ public, const ]
Bool IsEmpty(Void);

戻り値

  • 空のとき : true
  • 空でないとき : false

SFXPolygon::ModVertex
頂点の座標を剰余します。
[ public ]
SFXPolygonRef ModVertex(
    SInt16 index   // 剰余を求める頂点のインデックス
    SInt16 x       // 頂点の X 座標を除算する値
    SInt16 y       // 頂点の Y 座標を除算する値
);
[ public ]
SFXPolygonRef ModVertex(
    SInt16 index   // 剰余を求める頂点のインデックス
    SInt16 value   // 頂点の座標を除算する値
);

解説

value、x、y の値が 0 の場合の動作は未定義です。

参照

SFXPolygon::AddVertex | SFXPolygon::SubVertex | SFXPolygon::MulVertex | SFXPolygon::DivVertex | SFXPolygon::ModVertexX | SFXPolygon::ModVertexY | SFXPolygon::NegVertex


SFXPolygon::ModVertexX
頂点の X 座標を剰余します。
[ public ]
SFXPolygonRef ModVertexX(
    SInt16 index   // 剰余を求める対象の頂点のインデックス
    SInt16 value   // 頂点の座標を除算する値
);

解説

value の値が 0 の場合の動作は未定義です。

参照

SFXPolygon::AddVertexX | SFXPolygon::SubVertexX | SFXPolygon::MulVertexX | SFXPolygon::DivVertexX | SFXPolygon::ModVertex | SFXPolygon::ModVertexY | SFXPolygon::NegVertexX


SFXPolygon::ModVertexY
頂点の Y 座標を剰余します。
[ public ]
SFXPolygonRef ModVertexY(
    SInt16 index   // 剰余を求める対象の頂点のインデックス
    SInt16 value   // 頂点の座標を除算する値
);

解説

value の値が 0 の場合の動作は未定義です。

参照

SFXPolygon::AddVertexY | SFXPolygon::SubVertexY | SFXPolygon::MulVertexY | SFXPolygon::DivVertexY | SFXPolygon::ModVertex | SFXPolygon::ModVertexX | SFXPolygon::NegVertexY


SFXPolygon::MulVertex
頂点の座標を乗算します。
[ public ]
SFXPolygonRef MulVertex(
    SInt16 index   // 乗算対象の頂点のインデックス
    SInt16 x       // 頂点の X 座標に乗算する値
    SInt16 y       // 頂点の Y 座標に乗算する値
);
[ public ]
SFXPolygonRef MulVertex(
    SInt16 index   // 乗算対象の頂点のインデックス
    SInt16 value   // 頂点の座標に乗算する値
);

参照

SFXPolygon::AddVertex | SFXPolygon::SubVertex | SFXPolygon::MulVertexX | SFXPolygon::MulVertexY | SFXPolygon::DivVertex | SFXPolygon::ModVertex | SFXPolygon::NegVertex


SFXPolygon::MulVertexX
頂点の X 座標を乗算します。
[ public ]
SFXPolygonRef MulVertexX(
    SInt16 index   // 乗算対象の頂点のインデックス
    SInt16 value   // 頂点の座標に乗算する値
);

参照

SFXPolygon::AddVertexX | SFXPolygon::SubVertexX | SFXPolygon::MulVertex | SFXPolygon::MulVertexY | SFXPolygon::DivVertexX | SFXPolygon::ModVertexX | SFXPolygon::NegVertexX


SFXPolygon::MulVertexY
頂点の Y 座標を乗算します。
[ public ]
SFXPolygonRef MulVertexY(
    SInt16 index   // 乗算対象の頂点のインデックス
    SInt16 value   // 頂点の Y 座標に乗算する値
);

参照

SFXPolygon::AddVertexY | SFXPolygon::SubVertexY | SFXPolygon::MulVertex | SFXPolygon::MulVertexX | SFXPolygon::DivVertexY | SFXPolygon::ModVertexY | SFXPolygon::NegVertexY


SFXPolygon::NegVertex
頂点の座標の符号を反転します。
[ public ]
SFXPolygonRef NegVertex(
    SInt16 index   // 対象となる頂点のインデックス
);

参照

SFXPolygon::AddVertex | SFXPolygon::SubVertex | SFXPolygon::MulVertex | SFXPolygon::DivVertex | SFXPolygon::ModVertex | SFXPolygon::NegVertexX | SFXPolygon::NegVertexY


SFXPolygon::NegVertexX
頂点の X 座標の符号を反転します。
[ public ]
SFXPolygonRef NegVertexX(
    SInt16 index   // 対象となる頂点のインデックス
);

参照

SFXPolygon::AddVertexX | SFXPolygon::SubVertexX | SFXPolygon::MulVertexX | SFXPolygon::DivVertexX | SFXPolygon::ModVertexX | SFXPolygon::NegVertex | SFXPolygon::NegVertexY


SFXPolygon::NegVertexY
頂点の Y 座標の符号を反転します。
[ public ]
SFXPolygonRef NegVertexY(
    SInt16 index   // 対象となる頂点のインデックス
);

参照

SFXPolygon::AddVertexY | SFXPolygon::SubVertexY | SFXPolygon::MulVertexY | SFXPolygon::DivVertexY | SFXPolygon::ModVertexY | SFXPolygon::NegVertex | SFXPolygon::NegVertexX


SFXPolygon::Normalize
多角形を正規化します。
[ public ]
SFXPolygonRef Normalize(Void);

解説

何も行いません。


SFXPolygon::Offset
全ての頂点の座標を加算し、多角形を移動します。
[ public ]
SFXPolygonRef Offset(
    SFXGridConstRef param   // 全ての頂点の座標に加える値
);
[ public ]
SFXPolygonRef Offset(
    SInt16 x   // 全ての頂点の X 座標に加える値
    SInt16 y   // 全ての頂点の Y 座標に加える値
);

参照

SFXPolygon::Unoffset | operator- | operator+


SFXPolygon::Set
多角形を設定します。
[ public ]
SFXPolygonRef Set(
    SFXPolygonConstRef param   // コピー元の多角形
);
[ public ]
SFXPolygonRef Set(
    SFXPixelPtr vertex   // 頂点の座標の列
    SInt16 length        // 頂点の数
);
[ public ]
SFXPolygonRef Set(
    SFXPolylineConstRef polyline   // 元になる折れ線
);

参照

SFXPolygon::operator=


SFXPolygon::SetLength
頂点の数を設定します。
[ public ]
SFXPolygonRef SetLength(
    SInt16 param   // 設定する値
);

参照

SFXPolygon::GetLength


SFXPolygon::SetVertex
頂点の座標を設定します。
[ public ]
SFXPolygonRef SetVertex(
    SFXPixelPtr param   // 設定する座標の列
);
[ public ]
SFXPolygonRef SetVertex(
    SInt16 index             // 設定対象の頂点のインデックス
    SFXPixelConstRef value   // 設定する座標
);
[ public ]
SFXPolygonRef SetVertex(
    SInt16 index   // 設定対象の頂点のインデックス
    SInt16 x       // 設定する X 座標
    SInt16 y       // 設定する Y 座標
);

参照

SFXPolygon::GetVertex | SFXPolygon::SetVertexX | SFXPolygon::SetVertexY


SFXPolygon::SetVertexX
頂点の X 座標を設定します。
[ public ]
SFXPolygonRef SetVertexX(
    SInt16 index   // 設定対象の頂点のインデックス
    SInt16 value   // 設定する値
);

参照

SFXPolygon::GetVertexX | SFXPolygon::SetVertex | SFXPolygon::SetVertexY


SFXPolygon::SetVertexY
頂点の Y 座標を設定します。
[ public ]
SFXPolygonRef SetVertexY(
    SInt16 index   // 設定対象の頂点のインデックス
    SInt16 value   // 設定する値
);

参照

SFXPolygon::GetVertexY | SFXPolygon::SetVertex | SFXPolygon::SetVertexX


SFXPolygon::SubVertex
頂点の座標を減算します。
[ public ]
SFXPolygonRef SubVertex(
    SInt16 index             // 減算対象の頂点のインデックス
    SFXPixelConstRef value   // 頂点の座標から減算する値
);
[ public ]
SFXPolygonRef SubVertex(
    SInt16 index   // 減算対象の頂点のインデックス
    SInt16 x       // 頂点の X 座標から減算する値
    SInt16 y       // 頂点の Y 座標から減算する値
);

参照

SFXPolygon::AddVertex | SFXPolygon::SubVertexX | SFXPolygon::SubVertexY | SFXPolygon::MulVertex | SFXPolygon::DivVertex | SFXPolygon::ModVertex | SFXPolygon::NegVertex


SFXPolygon::SubVertexX
頂点の X 座標を減算します。
[ public ]
SFXPolygonRef SubVertexX(
    SInt16 index   // 減算対象の頂点のインデックス
    SInt16 value   // 頂点の X 座標から減算する値
);

参照

SFXPolygon::AddVertexX | SFXPolygon::SubVertex | SFXPolygon::SubVertexY | SFXPolygon::MulVertexX | SFXPolygon::DivVertexX | SFXPolygon::ModVertexX | SFXPolygon::NegVertexX


SFXPolygon::SubVertexY
頂点の Y 座標を減算します。
[ public ]
SFXPolygonRef SubVertexY(
    SInt16 index   // 減算対象の頂点のインデックス
    SInt16 value   // 頂点の Y 座標から減算する値
);

参照

SFXPolygon::AddVertexY | SFXPolygon::SubVertex | SFXPolygon::SubVertexX | SFXPolygon::MulVertexY | SFXPolygon::DivVertexY | SFXPolygon::ModVertexY | SFXPolygon::NegVertexY


SFXPolygon::Unoffset
全ての頂点の座標を減算し、多角形を移動します。
[ public ]
SFXPolygonRef Unoffset(
    SFXGridConstRef param   // 全ての頂点の座標から減算する値
);
[ public ]
SFXPolygonRef Unoffset(
    SInt16 x   // 全ての頂点の X 座標から減算する値
    SInt16 y   // 全ての頂点の Y 座標から減算する値
);

参照

SFXPolygon::Offset | operator- | operator+


SFXPolygon::ZeroInstance
0 を表すインスタンスを取得します。
[ public, static ]
SFXPolygonConstRef ZeroInstance(Void);

解説

多角形を表す変数の値が 0 であるインスタンスを返します。

[Note] 0 を表すインスタンスとは

0 を表すインスタンスとは、対応する AtomRec 構造体のすべてのメンバ変数が 0 または null に設定されたインスタンスのことです。

使用例

SFXPixel vertex[] = {
    SFXPixel(40, 40),
    SFXPixel(40, 60),
    SFXPixel(50, 30),
    SFXPixel(60, 20),
    SFXPixel(30, 30)
};

SFXPolygon polygon;

// 多角形を設定する
polygon.Set(vertex, lengthof(vertex));

// 頂点の数を取得する
TRACE("Length = %d", polygon.GetLength()); // Length = 5

// polygon を初期化する
polygon = SFXPolygon::ZeroInstance();

// 頂点の数を取得する
TRACE("Length = %d", polygon.GetLength());  // Length = 0

参照

SFXPolygon::AtomRec


atomic_cast
SFXPolygon を SFXPolygon::AtomRec に変換します。
[ public, friend ]
SFXPolygon::AtomRec * atomic_cast(
    SFXPolygon * param   // キャストする多角形
);
[ public, friend ]
AtomRec const * atomic_cast(
    SFXPolygon::SFXPolygon const * param   // キャストする多角形
);

参照

SFXPolygon::AtomRec


interface_cast
SFXPolygon を AEEPolygon に変換します。
[ public, friend ]
AEEPolygon * interface_cast(
    SFXPolygon * param   // キャストする多角形
);
[ public, friend ]
AEEPolygon const * interface_cast(
    SFXPolygon const * param   // キャストする多角形
);

SFXPolygon::operator=
多角形を代入します。
[ public ]
SFXPolygonRef operator=(
    SFXPolygonConstRef param   // コピー元の多角形
);

参照

SFXPolygon::Set


operator==
== の関係を判定します。
[ public, friend ]
Bool operator==(
    SFXPolygonConstRef left    // 比較する多角形
    SFXPolygonConstRef right   // 比較する多角形
);

戻り値

  • 等しいとき : true
  • 異なるとき : false

参照

SFXPolygon::Equals | operator!=


SFXPolygon::operator[]
指定した頂点の座標を取得します。
[ public, const ]
SFXPixelRef operator[](
    SInt16 index   // 取得する頂点の位置
);

参照

SFXPolygon::GetVertex | SFXPolygon::SetVertex


SFXPolygon::operator-=
全ての頂点の座標を減算し、多角形を移動します。
[ public ]
SFXPolygonRef operator-=(
    SFXGridConstRef param   // 全ての頂点から減算する値
);

参照

SFXPolygon::Unoffset | operator- | SFXPolygon::operator+=


operator-
全ての頂点の座標を減算し、多角形を移動します。
[ public, friend ]
SFXPolygon operator-(
    SFXPolygonConstRef left   // 移動対象の多角形
    SFXGridConstRef right     // 全ての頂点の座標から減算する値
);

参照

SFXPolygon::Unoffset | SFXPolygon::operator-= | operator+


operator!=
!= の関係を判定します。
[ public, friend ]
Bool operator!=(
    SFXPolygonConstRef left    // 比較する多角形
    SFXPolygonConstRef right   // 比較する多角形
);

戻り値

  • 異なるとき : true
  • 等しいとき : false

参照

SFXPolygon::Equals | operator==


SFXPolygon::operator+=
全ての頂点を加算し、多角形を移動します。
[ public ]
SFXPolygonRef operator+=(
    SFXGridConstRef param   // 全ての頂点の座標に加算する値
);

参照

SFXPolygon::Offset | SFXPolygon::operator-= | operator+


operator+
全ての頂点を加算し、多角形を移動します。
[ public, friend ]
SFXPolygon operator+(
    SFXPolygonConstRef left   // 移動対象の多角形
    SFXGridConstRef right     // 全ての頂点の座標に加算する値
);

参照

SFXPolygon::Offset | operator- | SFXPolygon::operator+=


SFXPolygon::AtomRec
多角形を表す構造体です。
struct AtomRec {
  SInt16                length;  // 頂点の数
  SFXPixel::AtomRecPtr  vertex;  // 頂点の座標の列
};