![]() ![]() ![]()
|
BREW C++ ライブラリ & GUI フレームワーク & XML ミドルウェア : SophiaFramework 4.1 |
SFXPolyline クラスは、頂点の座標を配列として処理します。
SFXPolyline クラスは、内部でヒープの割り当てを行いません。 頂点の座標を保持する配列を作成する必要があります。
SFXPolyline クラスにスコープがある間は、作成した配列が破壊しないようにする必要があります。
| コンストラクタ/デストラクタ |
|---|
|
SFXPolyline( Void ) SFXPolyline( SFXPolylineConstRef param ) SFXPolyline( SFXPixelPtr vertex , SInt16 length ) SFXPolyline( SFXPolygonConstRef polygon ) SFXPolyline クラスのコンストラクタです。
|
| 型 |
|---|
|
AtomRec
折れ線を表す構造体です。
|
| グローバル関数 | |
|---|---|
| SFXPolyline::AtomRec * |
atomic_cast(
SFXPolyline * param
) SFXPolyline を SFXPolyline::AtomRec に変換します。
|
| SFXPolyline::AtomRec const * |
atomic_cast(
SFXPolyline const * param
) SFXPolyline を SFXPolyline::AtomRec に変換します。
|
| AEEPolyline * |
interface_cast(
SFXPolyline * param
) SFXPolyline を AEEPolyline に変換します。
|
| AEEPolyline const * |
interface_cast(
SFXPolyline const * param
) SFXPolyline を AEEPolyline に変換します。
|
| Bool |
operator==(
SFXPolylineConstRef left
, SFXPolylineConstRef right
) == の関係を判定します。
|
| SFXPolyline |
operator-(
SFXPolylineConstRef left
, SFXGridConstRef right
) 全ての頂点の座標を減算し、折れ線を移動します。
|
| Bool |
operator!=(
SFXPolylineConstRef left
, SFXPolylineConstRef right
) != の関係を判定します。
|
| SFXPolyline |
operator+(
SFXPolylineConstRef left
, SFXGridConstRef right
) 全ての頂点の座標を加算し、折れ線を移動します。
|
[ public, explicit ] SFXPolyline(Void);
[ public ]
SFXPolyline(
SFXPolylineConstRef param // 元になる折れ線
);
[ public, explicit ]
SFXPolyline(
SFXPixelPtr vertex // 頂点の座標の列
SInt16 length // 頂点の数
);
[ public, explicit ]
SFXPolyline(
SFXPolygonConstRef polygon // 元になる多角形
);
[ public ] SFXPolylineRef AddVertex( SInt16 index // 加算対象の頂点のインデックス SFXPixelConstRef value // 頂点の座標に加える値 );
[ public ] SFXPolylineRef AddVertex( SInt16 index // 加算対象の頂点のインデックス SInt16 x // 頂点の X 座標に加える値 SInt16 y // 頂点の Y 座標に加える値 );
SFXPolyline::AddVertexX | SFXPolyline::AddVertexY | SFXPolyline::SubVertex | SFXPolyline::MulVertex | SFXPolyline::DivVertex | SFXPolyline::ModVertex | SFXPolyline::NegVertex
[ public ] SFXPolylineRef AddVertexX( SInt16 index // 加算対象の頂点のインデックス SInt16 value // 頂点の X 座標に加える値 );
SFXPolyline::AddVertex | SFXPolyline::AddVertexY | SFXPolyline::SubVertexX | SFXPolyline::MulVertexX | SFXPolyline::DivVertexX | SFXPolyline::ModVertexX | SFXPolyline::NegVertexX
[ public ] SFXPolylineRef AddVertexY( SInt16 index // 加算対象の頂点のインデックス SInt16 value // 頂点の Y 座標に加える値 );
SFXPolyline::AddVertex | SFXPolyline::AddVertexX | SFXPolyline::SubVertexY | SFXPolyline::MulVertexY | SFXPolyline::DivVertexY | SFXPolyline::ModVertexY | SFXPolyline::NegVertexY
[ public ] SFXPolylineRef DivVertex( SInt16 index // 除算対象の頂点のインデックス SInt16 x // 頂点の X 座標を除算する値 SInt16 y // 頂点の Y 座標を除算する値 );
[ public ] SFXPolylineRef DivVertex( SInt16 index // 除算対象の頂点のインデックス SInt16 value // 頂点の座標を除算する値 );
value、x、y の値が 0 の場合の動作は未定義です。
SFXPolyline::AddVertex | SFXPolyline::SubVertex | SFXPolyline::MulVertex | SFXPolyline::DivVertexX | SFXPolyline::DivVertexY | SFXPolyline::ModVertex | SFXPolyline::NegVertex
[ public ] SFXPolylineRef DivVertexX( SInt16 index // 除算対象の頂点のインデックス SInt16 value // 頂点の X 座標を除算する値 );
value の値が 0 の場合の動作は未定義です。
SFXPolyline::AddVertexX | SFXPolyline::SubVertexX | SFXPolyline::MulVertexX | SFXPolyline::DivVertex | SFXPolyline::DivVertexY | SFXPolyline::ModVertexX | SFXPolyline::NegVertexX
[ public ] SFXPolylineRef DivVertexY( SInt16 index // 除算対象の頂点のインデックス SInt16 value // 頂点の Y 座標を除算する値 );
value の値が 0 の場合の動作は未定義です。
SFXPolyline::AddVertexY | SFXPolyline::SubVertexY | SFXPolyline::MulVertexY | SFXPolyline::DivVertex | SFXPolyline::DivVertexX | SFXPolyline::ModVertexY | SFXPolyline::NegVertexY
[ public, const ] Bool Equals( SFXPolylineConstRef param // 比較対象の折れ線 );
[ public, const ] Bool Equals( SFXPixelConstPtr vertex // 頂点の座標の列 SInt16 length // 頂点の数 );
[ public, const ] SInt16 GetLength(Void);
[ public, const ] SFXPixelPtr GetVertex(Void);
[ public, const ] SFXPixelConstRef GetVertex( SInt16 index // 取得対象の頂点のインデックス );
[ public ] SFXPolylineRef ModVertex( SInt16 index // 剰余を求める対象の頂点のインデックス SInt16 x // 頂点の X 座標を除算する値 SInt16 y // 頂点の Y 座標を除算する値 );
[ public ] SFXPolylineRef ModVertex( SInt16 index // 剰余を求める対象の頂点のインデックス SInt16 value // 頂点の座標を除算する値 );
value、x、y の値が 0 の場合の動作は未定義です。
SFXPolyline::AddVertex | SFXPolyline::SubVertex | SFXPolyline::MulVertex | SFXPolyline::DivVertex | SFXPolyline::ModVertexX | SFXPolyline::ModVertexY | SFXPolyline::NegVertex
[ public ] SFXPolylineRef ModVertexX( SInt16 index // 剰余を求める対象の頂点のインデックス SInt16 value // 頂点の座標を除算する値 );
value の値が 0 の場合の動作は未定義です。
SFXPolyline::AddVertexX | SFXPolyline::SubVertexX | SFXPolyline::MulVertexX | SFXPolyline::DivVertexX | SFXPolyline::ModVertex | SFXPolyline::ModVertexY | SFXPolyline::NegVertexX
[ public ] SFXPolylineRef ModVertexY( SInt16 index // 剰余を求める対象の頂点のインデックス SInt16 value // 頂点の座標を除算する値 );
value の値が 0 の場合の動作は未定義です。
SFXPolyline::AddVertexY | SFXPolyline::SubVertexY | SFXPolyline::MulVertexY | SFXPolyline::DivVertexY | SFXPolyline::ModVertex | SFXPolyline::ModVertexX | SFXPolyline::NegVertexY
[ public ] SFXPolylineRef MulVertex( SInt16 index // 乗算対象の頂点のインデックス SInt16 x // 頂点の X 座標に乗算する値 SInt16 y // 頂点の Y 座標に乗算する値 );
[ public ] SFXPolylineRef MulVertex( SInt16 index // 乗算対象の頂点のインデックス SInt16 value // 頂点の座標に乗算する値 );
SFXPolyline::AddVertex | SFXPolyline::SubVertex | SFXPolyline::MulVertexX | SFXPolyline::MulVertexY | SFXPolyline::DivVertex | SFXPolyline::ModVertex | SFXPolyline::NegVertex
[ public ] SFXPolylineRef MulVertexX( SInt16 index // 乗算対象の頂点のインデックス SInt16 value // 乗算する値 );
SFXPolyline::AddVertexX | SFXPolyline::SubVertexX | SFXPolyline::MulVertex | SFXPolyline::MulVertexY | SFXPolyline::DivVertexX | SFXPolyline::ModVertexX | SFXPolyline::NegVertexX
[ public ] SFXPolylineRef MulVertexY( SInt16 index // 乗算対象の頂点のインデックス SInt16 value // 乗算する値 );
SFXPolyline::AddVertexY | SFXPolyline::SubVertexY | SFXPolyline::MulVertex | SFXPolyline::MulVertexX | SFXPolyline::DivVertexY | SFXPolyline::ModVertexY | SFXPolyline::NegVertexY
[ public ] SFXPolylineRef NegVertex( SInt16 index // 対象となる頂点のインデックス );
SFXPolyline::AddVertex | SFXPolyline::SubVertex | SFXPolyline::MulVertex | SFXPolyline::DivVertex | SFXPolyline::ModVertex | SFXPolyline::NegVertexX | SFXPolyline::NegVertexY
[ public ] SFXPolylineRef NegVertexX( SInt16 index // 対象となる頂点のインデックス );
SFXPolyline::AddVertexX | SFXPolyline::SubVertexX | SFXPolyline::MulVertexX | SFXPolyline::DivVertexX | SFXPolyline::ModVertexX | SFXPolyline::NegVertex | SFXPolyline::NegVertexY
[ public ] SFXPolylineRef NegVertexY( SInt16 index // 対象となる頂点のインデックス );
SFXPolyline::AddVertexY | SFXPolyline::SubVertexY | SFXPolyline::MulVertexY | SFXPolyline::DivVertexY | SFXPolyline::ModVertexY | SFXPolyline::NegVertex | SFXPolyline::NegVertexX
[ public ] SFXPolylineRef Offset( SFXGridConstRef param // 全ての頂点の座標に加える値 );
[ public ] SFXPolylineRef Offset( SInt16 x // 全ての頂点の X 座標に加える値 SInt16 y // 全ての頂点の Y 座標に加える値 );
[ public ] SFXPolylineRef Set( SFXPolylineConstRef param // コピー元の折れ線 );
[ public ] SFXPolylineRef Set( SFXPixelPtr vertex // 頂点の座標の列 SInt16 length // 頂点の数 );
[ public ] SFXPolylineRef Set( SFXPolygonConstRef polygon // 元になる多角形 );
Set 関数は、ヒープの割り当てを行いません。
[ public ] SFXPolylineRef SetLength( SInt16 param // 設定する値 );
SetLength 関数は、ヒープの割り当てを行いません。
[ public ] SFXPolylineRef SetVertex( SFXPixelPtr param // 設定する頂点の座標の列 );
[ public ] SFXPolylineRef SetVertex( SInt16 index // 設定対象の頂点のインデックス SFXPixelConstRef value // 設定する座標 );
[ public ] SFXPolylineRef SetVertex( SInt16 index // 設定対象の頂点のインデックス SInt16 x // 設定する X 座標 SInt16 y // 設定する Y 座標 );
[ public ] SFXPolylineRef SetVertexX( SInt16 index // 設定対象の頂点のインデックス SInt16 value // 設定する値 );
[ public ] SFXPolylineRef SetVertexY( SInt16 index // 設定対象の頂点のインデックス SInt16 value // 設定する値 );
[ public ] SFXPolylineRef SubVertex( SInt16 index // 減算対象の頂点のインデックス SFXPixelConstRef value // 頂点の座標から減算する値 );
[ public ] SFXPolylineRef SubVertex( SInt16 index // 減算対象の頂点のインデックス SInt16 x // 頂点の X 座標から減算する値 SInt16 y // 頂点の Y 座標から減算する値 );
SFXPolyline::AddVertex | SFXPolyline::SubVertexX | SFXPolyline::SubVertexY | SFXPolyline::MulVertex | SFXPolyline::DivVertex | SFXPolyline::ModVertex | SFXPolyline::NegVertex
[ public ] SFXPolylineRef SubVertexX( SInt16 index // 減算対象の頂点のインデックス SInt16 value // 頂点の X 座標から減算する値 );
SFXPolyline::AddVertexX | SFXPolyline::SubVertex | SFXPolyline::SubVertexY | SFXPolyline::MulVertexX | SFXPolyline::DivVertexX | SFXPolyline::ModVertexX | SFXPolyline::NegVertexX
[ public ] SFXPolylineRef SubVertexY( SInt16 index // 減算対象の頂点のインデックス SInt16 value // 頂点の Y 座標から減算する値 );
SFXPolyline::AddVertexY | SFXPolyline::SubVertex | SFXPolyline::SubVertexX | SFXPolyline::MulVertexY | SFXPolyline::DivVertexY | SFXPolyline::ModVertexY | SFXPolyline::NegVertexY
[ public ] SFXPolylineRef Unoffset( SFXGridConstRef param // 全ての頂点の座標から減算する値 );
[ public ] SFXPolylineRef Unoffset( SInt16 x // 全ての頂点の X 座標から減算する値 SInt16 y // 全ての頂点の Y 座標から減算する値 );
[ public, static ] SFXPolylineConstRef ZeroInstance(Void);
折れ線を表す変数の値が 0 であるインスタンスを返します。
![]() |
0 を表すインスタンスとは |
|---|---|
0 を表すインスタンスとは、対応する AtomRec 構造体のすべてのメンバ変数が 0 または null に設定されたインスタンスのことです。 | |
SFXPixel vertex[] = {
SFXPixel(40, 40),
SFXPixel(40, 60),
SFXPixel(50, 30),
SFXPixel(60, 20),
SFXPixel(30, 30)
};
SFXPolyline polyline;
// 折れ線を設定する
polyline.Set(vertex, lengthof(vertex));
// 頂点の数を取得する
TRACE("Length = %d", polyline.GetLength()); // Length = 5
// polyline を初期化する
polyline = SFXPolyline::ZeroInstance();
// 頂点の数を取得する
TRACE("Length = %d", polyline.GetLength()); // Length = 0
[ public, friend ]
SFXPolyline::AtomRec * atomic_cast(
SFXPolyline * param // キャストする折れ線
);
[ public, friend ]
SFXPolyline::AtomRec const * atomic_cast(
SFXPolyline const * param // キャストする折れ線
);
[ public, friend ] AEEPolyline * interface_cast( SFXPolyline * param // キャストする多角線 );
[ public, friend ] AEEPolyline const * interface_cast( SFXPolyline const * param // キャストする多角線 );
[ public ] SFXPolylineRef operator=( SFXPolylineConstRef param // コピー元の折れ線 );
[ public, friend ] Bool operator==( SFXPolylineConstRef left // 比較する折れ線 SFXPolylineConstRef right // 比較する折れ線 );
[ public, const ] SFXPixelRef operator[]( SInt16 index // 取得する頂点の位置 );
[ public ] SFXPolylineRef operator-=( SFXGridConstRef param // 全ての頂点の座標から減算する値 );
[ public, friend ] SFXPolyline operator-( SFXPolylineConstRef left // 移動対象の折れ線 SFXGridConstRef right // 全ての頂点の座標から減算する値 );
[ public, friend ] Bool operator!=( SFXPolylineConstRef left // 比較する折れ線 SFXPolylineConstRef right // 比較する折れ線 );
[ public ] SFXPolylineRef operator+=( SFXGridConstRef param // 全ての頂点の座標に加算する値 );
[ public, friend ] SFXPolyline operator+( SFXPolylineConstRef left // 移動対象の折れ線 SFXGridConstRef right // 全ての頂点の座標に加算する値 );
struct AtomRec {
SInt16 length; // 頂点の数
SFXPixel::AtomRecPtr vertex; // 頂点の座標の列
};
|
Copyright (C) 2002 - 2009 Sophia Cradle, Inc. All Rights Reserved. |
![]() ![]() ![]()
|