画像中の矩形領域を表すクラス [詳細]
Public メソッド | |
fk_Rect (int x=0, int y=0, int w=0, int h=0) | |
コンストラクタ [詳細] | |
fk_Rect (const fk_Rect &) | |
コピーコンストラクタ [詳細] | |
void | set (int x, int y, int w, int h) |
領域設定関数 [詳細] | |
void | setPos (int x, int y) |
領域位置設定関数 [詳細] | |
void | setSize (int w, int h) |
領域サイズ設定関数 [詳細] | |
fk_Dimension | getSize (void) |
領域サイズ参照関数 [詳細] | |
Public 変数 | |
int | x |
領域左上の x 座標 [詳細] | |
int | y |
領域左上の y 座標 [詳細] | |
int | w |
領域の横幅 [詳細] | |
int | h |
領域の縦幅 [詳細] | |
画像中の矩形領域を表すクラス
このクラスは、画像中の矩形領域を表します。 このクラスの座標系は、画像の左上を原点とし、 x の正方向は右、y の正方向は下となります。
fk_Rect::fk_Rect | ( | int | x = 0 , |
int | y = 0 , |
||
int | w = 0 , |
||
int | h = 0 |
||
) |
コンストラクタ
[in] | x | 領域左上の x 座標 |
[in] | y | 領域左上の y 座標 |
[in] | w | 領域の横幅 |
[in] | h | 領域の縦幅 |
fk_Rect::fk_Rect | ( | const fk_Rect & | ) |
コピーコンストラクタ
void fk_Rect::set | ( | int | x, |
int | y, | ||
int | w, | ||
int | h | ||
) |
領域設定関数
[in] | x | 領域左上の x 座標 |
[in] | y | 領域左上の y 座標 |
[in] | w | 領域の横幅 |
[in] | h | 領域の縦幅 |
void fk_Rect::setPos | ( | int | x, |
int | y | ||
) |
領域位置設定関数
[in] | x | 領域左上の x 座標 |
[in] | y | 領域左上の y 座標 |
void fk_Rect::setSize | ( | int | w, |
int | h | ||
) |
領域サイズ設定関数
[in] | w | 領域の横幅 |
[in] | h | 領域の縦幅 |
fk_Dimension fk_Rect::getSize | ( | void | ) |
領域サイズ参照関数
int fk_Rect::x |
領域左上の x 座標
int fk_Rect::y |
領域左上の y 座標
int fk_Rect::w |
領域の横幅
int fk_Rect::h |
領域の縦幅