![]() |
SAGA API
v9.2
|
#include <geo_tools.h>
Public Member Functions | |
CSG_Rect_Int (void) | |
CSG_Rect_Int (const CSG_Rect_Int &Rect) | |
CSG_Rect_Int (const TSG_Rect_Int &Rect) | |
CSG_Rect_Int (const TSG_Point_Int &A, const TSG_Point_Int &B) | |
CSG_Rect_Int (int xMin, int yMin, int xMax, int yMax) | |
~CSG_Rect_Int (void) | |
bool | operator== (const CSG_Rect_Int &Rect) const |
bool | operator!= (const CSG_Rect_Int &Rect) const |
CSG_Rect_Int & | operator= (const CSG_Rect_Int &Rect) |
void | operator+= (const TSG_Point_Int &Point) |
void | operator-= (const TSG_Point_Int &Point) |
void | Assign (int xMin, int yMin, int xMax, int yMax) |
void | Assign (const TSG_Point_Int &A, const TSG_Point_Int &B) |
void | Assign (const CSG_Rect_Int &Rect) |
void | Set_BottomLeft (int x, int y) |
void | Set_BottomLeft (const TSG_Point_Int &Point) |
void | Set_TopRight (int x, int y) |
void | Set_TopRight (const TSG_Point_Int &Point) |
bool | is_Equal (int xMin, int yMin, int xMax, int yMax) const |
bool | is_Equal (const CSG_Rect_Int &Rect) const |
int | Get_XMin (void) const |
int | Get_XMax (void) const |
int | Get_YMin (void) const |
int | Get_YMax (void) const |
int | Get_XRange (void) const |
int | Get_YRange (void) const |
double | Get_Area (void) const |
double | Get_Diameter (void) const |
TSG_Point_Int | Get_TopLeft (void) const |
TSG_Point_Int | Get_BottomRight (void) const |
void | Move (int dx, int dy) |
void | Move (const TSG_Point_Int &Point) |
void | Inflate (int d) |
void | Deflate (int d) |
void | Inflate (int dx, int dy) |
void | Deflate (int dx, int dy) |
void | Union (int x, int y) |
void | Union (const TSG_Point_Int &Point) |
void | Union (const CSG_Rect_Int &Rect) |
bool | Intersect (const CSG_Rect_Int &Rect) |
TSG_Intersection | Intersects (const CSG_Rect_Int &Rect) const |
bool | Contains (double x, double y) const |
bool | Contains (const TSG_Point_Int &Point) const |
Additional Inherited Members | |
![]() | |
int | xMin |
int | yMin |
int | xMax |
int | yMax |
Definition at line 582 of file geo_tools.h.
CSG_Rect_Int::CSG_Rect_Int | ( | void | ) |
Definition at line 1014 of file geo_classes.cpp.
References Assign().
CSG_Rect_Int::CSG_Rect_Int | ( | const CSG_Rect_Int & | Rect | ) |
Definition at line 1019 of file geo_classes.cpp.
References Assign(), SSG_Rect_Int::xMax, SSG_Rect_Int::xMin, SSG_Rect_Int::yMax, and SSG_Rect_Int::yMin.
CSG_Rect_Int::CSG_Rect_Int | ( | const TSG_Rect_Int & | Rect | ) |
Definition at line 1024 of file geo_classes.cpp.
References Assign(), SSG_Rect_Int::xMax, SSG_Rect_Int::xMin, SSG_Rect_Int::yMax, and SSG_Rect_Int::yMin.
CSG_Rect_Int::CSG_Rect_Int | ( | const TSG_Point_Int & | A, |
const TSG_Point_Int & | B | ||
) |
Definition at line 1029 of file geo_classes.cpp.
CSG_Rect_Int::CSG_Rect_Int | ( | int | xMin, |
int | yMin, | ||
int | xMax, | ||
int | yMax | ||
) |
Definition at line 1034 of file geo_classes.cpp.
References Assign(), SSG_Rect_Int::xMax, SSG_Rect_Int::xMin, SSG_Rect_Int::yMax, and SSG_Rect_Int::yMin.
CSG_Rect_Int::~CSG_Rect_Int | ( | void | ) |
Definition at line 1040 of file geo_classes.cpp.
void CSG_Rect_Int::Assign | ( | const CSG_Rect_Int & | Rect | ) |
Definition at line 1102 of file geo_classes.cpp.
References Assign(), SSG_Rect_Int::xMax, SSG_Rect_Int::xMin, SSG_Rect_Int::yMax, and SSG_Rect_Int::yMin.
void CSG_Rect_Int::Assign | ( | const TSG_Point_Int & | A, |
const TSG_Point_Int & | B | ||
) |
Definition at line 1097 of file geo_classes.cpp.
void CSG_Rect_Int::Assign | ( | int | xMin, |
int | yMin, | ||
int | xMax, | ||
int | yMax | ||
) |
Definition at line 1072 of file geo_classes.cpp.
References SSG_Rect_Int::xMax, SSG_Rect_Int::xMin, SSG_Rect_Int::yMax, and SSG_Rect_Int::yMin.
Referenced by Assign(), CSG_Rect_Int(), Inflate(), operator=(), Set_BottomLeft(), and Set_TopRight().
bool CSG_Rect_Int::Contains | ( | const TSG_Point_Int & | Point | ) | const |
Definition at line 1258 of file geo_classes.cpp.
References Contains(), SSG_Point_Int::x, and SSG_Point_Int::y.
bool CSG_Rect_Int::Contains | ( | double | x, |
double | y | ||
) | const |
Definition at line 1253 of file geo_classes.cpp.
References SSG_Rect_Int::xMax, SSG_Rect_Int::xMin, SSG_Rect_Int::yMax, and SSG_Rect_Int::yMin.
Referenced by Contains(), and Intersects().
void CSG_Rect_Int::Deflate | ( | int | d | ) |
Definition at line 1168 of file geo_classes.cpp.
void CSG_Rect_Int::Deflate | ( | int | dx, |
int | dy | ||
) |
Definition at line 1163 of file geo_classes.cpp.
References Inflate().
|
inline |
Definition at line 620 of file geo_tools.h.
|
inline |
Definition at line 624 of file geo_tools.h.
References SSG_Point_Int::x, SSG_Rect_Int::xMax, SSG_Point_Int::y, and SSG_Rect_Int::yMin.
|
inline |
Definition at line 621 of file geo_tools.h.
References SSG_Rect_Int::yMin.
|
inline |
Definition at line 623 of file geo_tools.h.
References SSG_Point_Int::x, SSG_Rect_Int::xMin, SSG_Point_Int::y, and SSG_Rect_Int::yMax.
|
inline |
Definition at line 613 of file geo_tools.h.
Referenced by Intersect(), Intersects(), and Union().
|
inline |
Definition at line 612 of file geo_tools.h.
Referenced by Intersect(), Intersects(), and Union().
|
inline |
Definition at line 617 of file geo_tools.h.
|
inline |
Definition at line 615 of file geo_tools.h.
Referenced by Intersect(), Intersects(), and Union().
|
inline |
Definition at line 614 of file geo_tools.h.
Referenced by Intersect(), Intersects(), and Union().
|
inline |
Definition at line 618 of file geo_tools.h.
void CSG_Rect_Int::Inflate | ( | int | d | ) |
Definition at line 1158 of file geo_classes.cpp.
Referenced by Deflate().
void CSG_Rect_Int::Inflate | ( | int | dx, |
int | dy | ||
) |
Definition at line 1153 of file geo_classes.cpp.
References Assign(), SSG_Rect_Int::xMax, SSG_Rect_Int::xMin, SSG_Rect_Int::yMax, and SSG_Rect_Int::yMin.
bool CSG_Rect_Int::Intersect | ( | const CSG_Rect_Int & | Rect | ) |
Definition at line 1197 of file geo_classes.cpp.
References Get_XMax(), Get_XMin(), Get_YMax(), Get_YMin(), INTERSECTION_Contained, INTERSECTION_Contains, INTERSECTION_Identical, INTERSECTION_None, INTERSECTION_Overlaps, Intersects(), SSG_Rect_Int::xMax, SSG_Rect_Int::xMin, SSG_Rect_Int::yMax, and SSG_Rect_Int::yMin.
TSG_Intersection CSG_Rect_Int::Intersects | ( | const CSG_Rect_Int & | Rect | ) | const |
Definition at line 1224 of file geo_classes.cpp.
References Contains(), Get_XMax(), Get_XMin(), Get_YMax(), Get_YMin(), INTERSECTION_Contained, INTERSECTION_Contains, INTERSECTION_Identical, INTERSECTION_None, INTERSECTION_Overlaps, is_Equal(), SSG_Rect_Int::xMax, SSG_Rect_Int::xMin, SSG_Rect_Int::yMax, and SSG_Rect_Int::yMin.
Referenced by Intersect().
bool CSG_Rect_Int::is_Equal | ( | const CSG_Rect_Int & | Rect | ) | const |
Definition at line 1135 of file geo_classes.cpp.
References is_Equal(), SSG_Rect_Int::xMax, SSG_Rect_Int::xMin, SSG_Rect_Int::yMax, and SSG_Rect_Int::yMin.
bool CSG_Rect_Int::is_Equal | ( | int | xMin, |
int | yMin, | ||
int | xMax, | ||
int | yMax | ||
) | const |
Definition at line 1129 of file geo_classes.cpp.
References SSG_Rect_Int::xMax, SSG_Rect_Int::xMin, SSG_Rect_Int::yMax, and SSG_Rect_Int::yMin.
Referenced by Intersects(), is_Equal(), operator!=(), and operator==().
void CSG_Rect_Int::Move | ( | const TSG_Point_Int & | Point | ) |
Definition at line 1147 of file geo_classes.cpp.
References Move(), SSG_Point_Int::x, and SSG_Point_Int::y.
void CSG_Rect_Int::Move | ( | int | dx, |
int | dy | ||
) |
Definition at line 1141 of file geo_classes.cpp.
References SSG_Rect_Int::xMax, SSG_Rect_Int::xMin, SSG_Rect_Int::yMax, and SSG_Rect_Int::yMin.
Referenced by Move(), operator+=(), and operator-=().
bool CSG_Rect_Int::operator!= | ( | const CSG_Rect_Int & | Rect | ) | const |
Definition at line 1049 of file geo_classes.cpp.
References is_Equal().
void CSG_Rect_Int::operator+= | ( | const TSG_Point_Int & | Point | ) |
Definition at line 1061 of file geo_classes.cpp.
References Move(), SSG_Point_Int::x, and SSG_Point_Int::y.
void CSG_Rect_Int::operator-= | ( | const TSG_Point_Int & | Point | ) |
Definition at line 1066 of file geo_classes.cpp.
References Move(), and SSG_Point_Int::y.
CSG_Rect_Int & CSG_Rect_Int::operator= | ( | const CSG_Rect_Int & | Rect | ) |
Definition at line 1054 of file geo_classes.cpp.
References Assign().
bool CSG_Rect_Int::operator== | ( | const CSG_Rect_Int & | Rect | ) | const |
Definition at line 1044 of file geo_classes.cpp.
References is_Equal().
void CSG_Rect_Int::Set_BottomLeft | ( | const TSG_Point_Int & | Point | ) |
Definition at line 1113 of file geo_classes.cpp.
References Set_BottomLeft(), SSG_Point_Int::x, and SSG_Point_Int::y.
void CSG_Rect_Int::Set_BottomLeft | ( | int | x, |
int | y | ||
) |
Definition at line 1108 of file geo_classes.cpp.
References Assign(), SSG_Rect_Int::xMax, and SSG_Rect_Int::yMax.
Referenced by Set_BottomLeft().
void CSG_Rect_Int::Set_TopRight | ( | const TSG_Point_Int & | Point | ) |
Definition at line 1123 of file geo_classes.cpp.
References Set_TopRight(), SSG_Point_Int::x, and SSG_Point_Int::y.
void CSG_Rect_Int::Set_TopRight | ( | int | x, |
int | y | ||
) |
Definition at line 1118 of file geo_classes.cpp.
References Assign(), SSG_Rect_Int::xMin, and SSG_Rect_Int::yMin.
Referenced by Set_TopRight().
void CSG_Rect_Int::Union | ( | const CSG_Rect_Int & | Rect | ) |
Definition at line 1188 of file geo_classes.cpp.
References Get_XMax(), Get_XMin(), Get_YMax(), Get_YMin(), SSG_Rect_Int::xMax, SSG_Rect_Int::xMin, SSG_Rect_Int::yMax, and SSG_Rect_Int::yMin.
void CSG_Rect_Int::Union | ( | const TSG_Point_Int & | Point | ) |
Definition at line 1181 of file geo_classes.cpp.
References SSG_Point_Int::x, SSG_Rect_Int::xMax, SSG_Rect_Int::xMin, SSG_Point_Int::y, SSG_Rect_Int::yMax, and SSG_Rect_Int::yMin.
void CSG_Rect_Int::Union | ( | int | x, |
int | y | ||
) |
Definition at line 1174 of file geo_classes.cpp.
References SSG_Rect_Int::xMax, SSG_Rect_Int::xMin, SSG_Rect_Int::yMax, and SSG_Rect_Int::yMin.