TuttleOFX
1
|
Rectangle block definition defined by two points. More...
#include <DPX.h>
Public Member Functions | |
Block () | |
Constructor. | |
Block (const int x1, const int y1, const int x2, const int y2) | |
Constructor. | |
void | Set (const int x1, const int y1, const int x2, const int y2) |
Set the block coordinates. | |
bool | Inside (const int x, const int y) const |
Check to see if a point is within the block. | |
void | Check () |
Rearrange coordinates if necessary so the first coordinate is upper left and the second is lower right. | |
Data Fields | |
int | x1 |
int | y1 |
int | x2 |
int | y2 |
dpx::Block::Block | ( | const int | x1, |
const int | y1, | ||
const int | x2, | ||
const int | y2 | ||
) | [inline] |
void dpx::Block::Check | ( | ) | [inline] |
Rearrange coordinates if necessary so the first coordinate is upper left and the second is lower right.
Definition at line 488 of file DPX.h.
Referenced by Block(), and dpx::Reader::ReadBlock().
bool dpx::Block::Inside | ( | const int | x, |
const int | y | ||
) | const [inline] |
void dpx::Block::Set | ( | const int | x1, |
const int | y1, | ||
const int | x2, | ||
const int | y2 | ||
) | [inline] |
int dpx::Block::x1 |
Definition at line 82 of file DPX.h.
Referenced by dpx::Read10bitFilled(), dpx::Read12bitFilledMethodB(), dpx::Reader::ReadBlock(), dpx::ReadBlockTypes(), and dpx::ReadPacked().
int dpx::Block::x2 |
Definition at line 82 of file DPX.h.
Referenced by dpx::Read10bitFilled(), dpx::Read12bitFilledMethodB(), dpx::Reader::ReadBlock(), dpx::ReadBlockTypes(), and dpx::ReadPacked().
int dpx::Block::y1 |
Definition at line 82 of file DPX.h.
Referenced by dpx::Read10bitFilled(), dpx::Read12bitFilledMethodB(), dpx::Reader::ReadBlock(), dpx::ReadBlockTypes(), and dpx::ReadPacked().
int dpx::Block::y2 |
Definition at line 82 of file DPX.h.
Referenced by dpx::Read10bitFilled(), dpx::Read12bitFilledMethodB(), dpx::Reader::ReadBlock(), dpx::ReadBlockTypes(), and dpx::ReadPacked().