![]() ![]() ![]()
|
BREW C++ ライブラリ & GUI フレームワーク & XML ミドルウェア : SophiaFramework 4.1 |
SFXPixel はピクセル座標を取り扱うクラスです。
SophiaFramework には、グリッド座標系とピクセル座標系の 2 つの座標系があります。 ピクセル座標は、画面上のドットを構成します。
両者の違いを図で表すと、次のようになります。
囲碁や将棋に例えると、「描画する平面」は盤面、「グリッド」は囲碁の碁石を置く場所、「ピクセル」は将棋の駒を置く場所です。
| コンストラクタ/デストラクタ |
|---|
|
SFXPixel( Void ) SFXPixel( SFXPixelConstRef param ) SFXPixel( SInt16 x , SInt16 y ) SFXPixel クラスのコンストラクタです。
|
| 型 |
|---|
|
AtomRec
ピクセルを表す構造体です。
|
| グローバル関数 | |
|---|---|
| SFXPixel::AtomRec * |
atomic_cast(
SFXPixel * param
) SFXPixel を SFXPixel::AtomRec に変換します。
|
| SFXPixel::AtomRec const * |
atomic_cast(
SFXPixel const * param
) SFXPixel を SFXPixel::AtomRec に変換します。
|
| SFXPixel |
operator%(
SFXPixelConstRef left
, SInt16 right
) 座標を剰余します。
|
| SFXPixel |
operator/(
SFXPixelConstRef left
, SInt16 right
) 座標を除算します。
|
| Bool |
operator==(
SFXPixelConstRef left
, SFXPixelConstRef right
) == の関係を判定します。
|
| SFXPixel |
operator-( Void ) operator-( SFXPixelConstRef left , SFXGridConstRef right ) operator-( SFXPixelConstRef left , SFXPixelConstRef right ) ピクセルを減算します。
|
| SFXPixel |
operator*(
SFXPixelConstRef left
, SInt16 right
) 座標を乗算します。
|
| Bool |
operator!=(
SFXPixelConstRef left
, SFXPixelConstRef right
) != の関係を判定します。
|
| SFXPixel |
operator+( Void ) operator+( SFXPixelConstRef left , SFXGridConstRef right ) operator+( SFXPixelConstRef left , SFXPixelConstRef right ) 座標を加算し、ピクセルを移動します。
|
[ public, explicit ] SFXPixel(Void);
[ public ]
SFXPixel(
SFXPixelConstRef param // 元になるピクセル
);
[ public, explicit ]
SFXPixel(
SInt16 x // X 座標
SInt16 y // Y 座標
);
[ public ] SFXPixelRef Add( SFXPixelConstRef param // 座標に加える値 );
[ public ] SFXPixelRef Add( SInt16 x // X 座標に加える値 SInt16 y // Y 座標に加える値 );
SFXPixel::AddX | SFXPixel::AddY | SFXPixel::Sub | SFXPixel::Mul | SFXPixel::Div | SFXPixel::Mod | SFXPixel::Neg
[ public ] SFXPixelRef AddX( SInt16 param // X 座標に加える値 );
SFXPixel::Add | SFXPixel::AddY | SFXPixel::SubX | SFXPixel::MulX | SFXPixel::DivX | SFXPixel::ModX | SFXPixel::NegX
[ public ] SFXPixelRef AddY( SInt16 param // Y 座標に加える値 );
SFXPixel::Add | SFXPixel::AddX | SFXPixel::SubY | SFXPixel::MulY | SFXPixel::DivY | SFXPixel::ModY | SFXPixel::NegY
[ public ] SFXPixelRef Div( SInt16 x // X 座標を除算する値 SInt16 y // Y 座標を除算する値 );
[ public ] SFXPixelRef Div( SInt16 param // 座標を除算する値 );
x、y、または param の値が 0 の場合の動作は未定義です。
SFXPixel::Add | SFXPixel::Sub | SFXPixel::Mul | SFXPixel::DivX | SFXPixel::DivY | SFXPixel::Mod | SFXPixel::Neg | operator/ | SFXPixel::operator/=
[ public ] SFXPixelRef DivX( SInt16 param // X 座標を除算する値 );
param の値が 0 の場合の動作は未定義です。
SFXPixel::AddX | SFXPixel::SubX | SFXPixel::MulX | SFXPixel::Div | SFXPixel::DivY | SFXPixel::ModX | SFXPixel::NegX
[ public ] SFXPixelRef DivY( SInt16 param // Y 座標を除算する値 );
param の値が 0 の場合の動作は未定義です。
SFXPixel::AddY | SFXPixel::SubY | SFXPixel::MulY | SFXPixel::Div | SFXPixel::DivX | SFXPixel::ModY | SFXPixel::NegY
[ public, const ] Bool Equals( SFXPixelConstRef param // 比較対象のピクセル );
[ public, const ] Bool Equals( SInt16 x // 比較対象の X 座標 SInt16 y // 比較対象の Y 座標 );
[ public, const ] SInt16 GetBottom(Void);
SFXPixel::GetTop | SFXPixel::GetLeft | SFXPixel::GetRight | SFXPixel::GetLeftTop | SFXPixel::GetRightTop | SFXPixel::GetLeftBottom | SFXPixel::GetRightBottom | SFXPixel::SetBottom
[ public, const ] SInt16 GetLeft(Void);
SFXPixel::GetTop | SFXPixel::GetBottom | SFXPixel::GetRight | SFXPixel::GetLeftTop | SFXPixel::GetRightTop | SFXPixel::GetLeftBottom | SFXPixel::GetRightBottom | SFXPixel::SetLeft
[ public, const ] SFXGrid GetLeftBottom(Void);
[ public, const ] SFXGrid GetLeftTop(Void);
[ public, const ] SInt16 GetRight(Void);
SFXPixel::GetTop | SFXPixel::GetBottom | SFXPixel::GetLeft | SFXPixel::GetLeftTop | SFXPixel::GetRightTop | SFXPixel::GetLeftBottom | SFXPixel::GetRightBottom | SFXPixel::SetRight
[ public, const ] SFXGrid GetRightBottom(Void);
[ public, const ] SFXGrid GetRightTop(Void);
[ public, const ] SInt16 GetTop(Void);
SFXPixel::GetBottom | SFXPixel::GetLeft | SFXPixel::GetRight | SFXPixel::GetLeftTop | SFXPixel::GetRightTop | SFXPixel::GetLeftBottom | SFXPixel::GetRightBottom | SFXPixel::SetTop
[ public, const ] SInt16 GetX(Void);
[ public, const ] SInt16 GetY(Void);
[ public, const ] Bool IsInsideOf( SFXRectangleConstRef param // 基準となる矩形領域 );
矩形領域は辺の上も含まれます。
[ public ] SFXPixelRef Mod( SInt16 x // X 座標を除算する値 SInt16 y // Y 座標を除算する値 );
[ public ] SFXPixelRef Mod( SInt16 param // 座標を除算する値 );
x、y、または param の値が 0 の場合の動作は未定義です。
SFXPixel::Add | SFXPixel::Sub | SFXPixel::Mul | SFXPixel::Div | SFXPixel::ModX | SFXPixel::ModY | SFXPixel::Neg | operator% | SFXPixel::operator%=
[ public ] SFXPixelRef ModX( SInt16 param // X 座標を除算する値 );
param の値が 0 の場合の動作は未定義です。
SFXPixel::AddX | SFXPixel::SubX | SFXPixel::MulX | SFXPixel::DivX | SFXPixel::Mod | SFXPixel::ModY | SFXPixel::NegX
[ public ] SFXPixelRef ModY( SInt16 param // Y 座標を除算する値 );
param の値が 0 の場合の動作は未定義です。
SFXPixel::AddY | SFXPixel::SubY | SFXPixel::MulY | SFXPixel::DivY | SFXPixel::Mod | SFXPixel::ModX | SFXPixel::NegY
[ public ] SFXPixelRef Mul( SInt16 x // X 座標に乗算する値 SInt16 y // Y 座標に乗算する値 );
[ public ] SFXPixelRef Mul( SInt16 param // 座標に乗算する値 );
SFXPixel::Add | SFXPixel::Sub | SFXPixel::MulX | SFXPixel::MulY | SFXPixel::Div | SFXPixel::Mod | SFXPixel::Neg | operator* | SFXPixel::operator*=
[ public ] SFXPixelRef MulX( SInt16 param // X 座標に乗算する値 );
SFXPixel::AddX | SFXPixel::SubX | SFXPixel::Mul | SFXPixel::MulY | SFXPixel::DivX | SFXPixel::ModX | SFXPixel::NegX
[ public ] SFXPixelRef MulY( SInt16 param // Y 座標に乗算する値 );
SFXPixel::AddY | SFXPixel::SubY | SFXPixel::Mul | SFXPixel::MulX | SFXPixel::DivY | SFXPixel::ModY | SFXPixel::NegY
[ public ] SFXPixelRef Neg(Void);
SFXPixel::Add | SFXPixel::Sub | SFXPixel::Mul | SFXPixel::Div | SFXPixel::Mod | SFXPixel::NegX | SFXPixel::NegY
[ public ] SFXPixelRef NegX(Void);
SFXPixel::AddX | SFXPixel::SubX | SFXPixel::MulX | SFXPixel::DivX | SFXPixel::ModX | SFXPixel::Neg | SFXPixel::NegY
[ public ] SFXPixelRef NegY(Void);
SFXPixel::AddY | SFXPixel::SubY | SFXPixel::MulY | SFXPixel::DivY | SFXPixel::ModY | SFXPixel::Neg | SFXPixel::NegX
[ public ] SFXPixelRef Offset( SFXGridConstRef param // 座標に加える値 );
[ public ] SFXPixelRef Offset( SInt16 x // X 座標に加える値 SInt16 y // Y 座標に加える値 );
[ public ] SFXPixelRef Set( SFXPixelConstRef param // コピー元のピクセル );
[ public ] SFXPixelRef Set( SInt16 x // X 座標 SInt16 y // Y 座標 );
[ public ] SFXPixelRef SetBottom( SInt16 param // 設定する値 );
SFXPixel::GetBottom | SFXPixel::SetTop | SFXPixel::SetLeft | SFXPixel::SetRight | SFXPixel::SetLeftTop | SFXPixel::SetRightTop | SFXPixel::SetLeftBottom | SFXPixel::SetRightBottom
[ public ] SFXPixelRef SetLeft( SInt16 param // 設定する値 );
SFXPixel::GetLeft | SFXPixel::SetTop | SFXPixel::SetBottom | SFXPixel::SetRight | SFXPixel::SetLeftTop | SFXPixel::SetRightTop | SFXPixel::SetLeftBottom | SFXPixel::SetRightBottom
[ public ] SFXPixelRef SetLeftBottom( SFXGridConstRef param // 左下端の座標 );
[ public ] SFXPixelRef SetLeftBottom( SInt16 x // 左下端の X 座標 SInt16 y // 左下端の Y 座標 );
[ public ] SFXPixelRef SetLeftTop( SFXGridConstRef param // 左上端の座標 );
[ public ] SFXPixelRef SetLeftTop( SInt16 x // 左上端の X 座標 SInt16 y // 左上端の Y 座標 );
[ public ] SFXPixelRef SetRight( SInt16 param // 設定する値 );
SFXPixel::GetRight | SFXPixel::SetTop | SFXPixel::SetBottom | SFXPixel::SetLeft | SFXPixel::SetLeftTop | SFXPixel::SetRightTop | SFXPixel::SetLeftBottom | SFXPixel::SetRightBottom
[ public ] SFXPixelRef SetRightBottom( SFXGridConstRef param // 右下端の座標 );
[ public ] SFXPixelRef SetRightBottom( SInt16 x // 右下端の X 座標 SInt16 y // 右下端の Y 座標 );
[ public ] SFXPixelRef SetRightTop( SFXGridConstRef param // 右上端の座標 );
[ public ] SFXPixelRef SetRightTop( SInt16 x // 右上端の X 座標 SInt16 y // 右上端の Y 座標 );
[ public ] SFXPixelRef SetTop( SInt16 param // 設定する値 );
SFXPixel::GetTop | SFXPixel::SetBottom | SFXPixel::SetLeft | SFXPixel::SetRight | SFXPixel::SetLeftTop | SFXPixel::SetRightTop | SFXPixel::SetLeftBottom | SFXPixel::SetRightBottom
[ public ] SFXPixelRef SetX( SInt16 param // 設定する値 );
[ public ] SFXPixelRef SetY( SInt16 param // 設定する値 );
[ public ] SFXPixelRef Sub( SFXPixelConstRef param // 座標から減算する値 );
[ public ] SFXPixelRef Sub( SInt16 x // X 座標から減算する値 SInt16 y // Y 座標から減算する値 );
SFXPixel::Add | SFXPixel::SubX | SFXPixel::SubY | SFXPixel::Mul | SFXPixel::Div | SFXPixel::Mod | SFXPixel::Neg
[ public ] SFXPixelRef SubX( SInt16 param // X 座標から減算する値 );
SFXPixel::AddX | SFXPixel::Sub | SFXPixel::SubY | SFXPixel::MulX | SFXPixel::DivX | SFXPixel::ModX | SFXPixel::NegX
[ public ] SFXPixelRef SubY( SInt16 param // Y 座標から減算する値 );
SFXPixel::AddY | SFXPixel::Sub | SFXPixel::SubX | SFXPixel::MulY | SFXPixel::DivY | SFXPixel::ModY | SFXPixel::NegY
[ public ] SFXPixelRef Unoffset( SFXGridConstRef param // 座標から減算する値 );
[ public ] SFXPixelRef Unoffset( SInt16 x // X 座標から減算する値 SInt16 y // Y 座標から減算する値 );
[ public, static ] SFXPixelConstRef ZeroInstance(Void);
ピクセルを表す変数の値が 0 であるインスタンスを返します。
![]() |
0 を表すインスタンスとは |
|---|---|
0 を表すインスタンスとは、対応する AtomRec 構造体のすべてのメンバ変数が 0 または null に設定されたインスタンスのことです。 | |
SFXPixel pixel(10, 20); pixel = SFXPixel::ZeroInstance(); // pixel を初期化する TRACE("x = %d, y = %d", pixel.GetX(), pixel.GetY()); // x = 0, y = 0
[ public, friend ]
SFXPixel::AtomRec * atomic_cast(
SFXPixel * param // キャストするピクセル座標
);
[ public, friend ]
SFXPixel::AtomRec const * atomic_cast(
SFXPixel const * param // キャストするピクセル座標
);
[ public, friend ] SFXPixel operator%( SFXPixelConstRef left // 除算するピクセル SInt16 right // 座標を除算する値 );
right の値が 0 の場合の動作は未定義です。
[ public ] SFXPixelRef operator%=( SInt16 param // 座標を除算する値 );
param の値が 0 の場合の動作は未定義です。
[ public ] SFXPixelRef operator=( SFXPixelConstRef param // コピー元のピクセル );
[ public ] SFXPixelRef operator/=( SInt16 param // 座標を除算する値 );
param の値が 0 の場合の動作は未定義です。
[ public, friend ] SFXPixel operator/( SFXPixelConstRef left // 除算するピクセル SInt16 right // 座標を除算する値 );
right の値が 0 の場合の動作は未定義です。
[ public, friend ] Bool operator==( SFXPixelConstRef left // 比較するピクセル SFXPixelConstRef right // 比較するピクセル );
[ public ] SFXPixelRef operator-=( SFXPixelConstRef param // ピクセルから減算する値 );
[ public ] SFXPixelRef operator-=( SFXGridConstRef param // ピクセルから減算する値 );
[ public, const ] SFXPixel operator-(Void);
[ public, friend ] SFXPixel operator-( SFXPixelConstRef left // 移動対象のピクセル SFXPixelConstRef right // 座標から減算する値 );
[ public, friend ] SFXPixel operator-( SFXPixelConstRef left // 移動対象のピクセル SFXGridConstRef right // 座標から減算する値 );
[ public ] SFXPixelRef operator*=( SInt16 param // ピクセルに乗算する値 );
[ public, friend ] SFXPixel operator*( SFXPixelConstRef left // 乗算するピクセル SInt16 right // 座標に乗算する値 );
[ public, friend ] Bool operator!=( SFXPixelConstRef left // 比較するピクセル SFXPixelConstRef right // 比較するピクセル );
[ public ] SFXPixelRef operator+=( SFXPixelConstRef param // 座標に加算する値 );
[ public ] SFXPixelRef operator+=( SFXGridConstRef param // 座標に加算する値 );
[ public, const ] SFXPixel operator+(Void);
[ public, friend ] SFXPixel operator+( SFXPixelConstRef left // 移動対象のピクセル SFXPixelConstRef right // 座標に加算する値 );
[ public, friend ] SFXPixel operator+( SFXPixelConstRef left // 移動対象のピクセル SFXGridConstRef right // 座標に加算する値 );
struct AtomRec {
SInt16 x; // X 座標
SInt16 y; // Y 座標
};
|
Copyright (C) 2002 - 2009 Sophia Cradle, Inc. All Rights Reserved. |
![]() ![]() ![]()
|