|
SAGA API v2.0.8
|
#include <geo_tools.h>
Public Member Functions | |
| CSG_Rect (void) | |
| CSG_Rect (const CSG_Rect &Rect) | |
| CSG_Rect (const TSG_Rect &Rect) | |
| CSG_Rect (const CSG_Point &A, const CSG_Point &B) | |
| CSG_Rect (double xMin, double yMin, double xMax, double yMax) | |
| ~CSG_Rect (void) | |
| operator const TSG_Rect & (void) const | |
| bool | operator== (const CSG_Rect &Rect) const |
| bool | operator!= (const CSG_Rect &Rect) const |
| CSG_Rect & | operator= (const CSG_Rect &Rect) |
| void | operator+= (const CSG_Point &Point) |
| void | operator-= (const CSG_Point &Point) |
| void | Assign (double xMin, double yMin, double xMax, double yMax) |
| void | Assign (const CSG_Point &A, const CSG_Point &B) |
| void | Assign (const CSG_Rect &Rect) |
| void | Set_BottomLeft (double x, double y) |
| void | Set_BottomLeft (const CSG_Point &Point) |
| void | Set_TopRight (double x, double y) |
| void | Set_TopRight (const CSG_Point &Point) |
| bool | is_Equal (double xMin, double yMin, double xMax, double yMax) const |
| bool | is_Equal (const CSG_Rect &Rect) const |
| double | Get_XMin (void) const |
| double | Get_XMax (void) const |
| double | Get_YMin (void) const |
| double | Get_YMax (void) const |
| double | Get_XRange (void) const |
| double | Get_YRange (void) const |
| CSG_Point | Get_TopLeft (void) |
| CSG_Point | Get_BottomRight (void) |
| CSG_Point | Get_Center (void) const |
| double | Get_XCenter (void) const |
| double | Get_YCenter (void) const |
| void | Move (double dx, double dy) |
| void | Move (const CSG_Point &Point) |
| void | Inflate (double d, bool bPercent=true) |
| void | Deflate (double d, bool bPercent=true) |
| void | Inflate (double dx, double dy, bool bPercent=true) |
| void | Deflate (double dx, double dy, bool bPercent=true) |
| void | Union (const CSG_Rect &Rect) |
| bool | Intersect (const CSG_Rect &Rect) |
| TSG_Intersection | Intersects (const CSG_Rect &Rect) const |
| bool | Contains (double x, double y) const |
| bool | Contains (const CSG_Point &Point) const |
Public Attributes | |
| TSG_Rect | m_rect |
Definition at line 413 of file geo_tools.h.
| CSG_Rect::CSG_Rect | ( | void | ) |
Definition at line 679 of file geo_classes.cpp.
References Assign().
| CSG_Rect::CSG_Rect | ( | const CSG_Rect & | Rect | ) |
Definition at line 684 of file geo_classes.cpp.
| CSG_Rect::CSG_Rect | ( | const TSG_Rect & | Rect | ) |
Definition at line 689 of file geo_classes.cpp.
References Assign(), SSG_Rect::xMax, SSG_Rect::xMin, SSG_Rect::yMax, and SSG_Rect::yMin.
Definition at line 694 of file geo_classes.cpp.
References Assign(), CSG_Point::Get_X(), and CSG_Point::Get_Y().
| CSG_Rect::CSG_Rect | ( | double | xMin, |
| double | yMin, | ||
| double | xMax, | ||
| double | yMax | ||
| ) |
Definition at line 699 of file geo_classes.cpp.
References Assign().
| CSG_Rect::~CSG_Rect | ( | void | ) |
Definition at line 705 of file geo_classes.cpp.
| void CSG_Rect::Assign | ( | double | xMin, |
| double | yMin, | ||
| double | xMax, | ||
| double | yMax | ||
| ) |
Definition at line 737 of file geo_classes.cpp.
References m_rect, SSG_Rect::xMax, SSG_Rect::xMin, SSG_Rect::yMax, and SSG_Rect::yMin.
Referenced by CSG_TIN::_Triangulate(), CSG_Shape_Part::_Update_Extent(), CSG_Grid_System::Assign(), Assign(), CSG_Rect(), CSG_Shape_Point::Get_Extent(), CSG_Shapes::Get_Selection_Extent(), CSG_PointCloud::Get_Selection_Extent(), Inflate(), CSG_Shapes::On_Update(), CSG_PointCloud::On_Update(), operator=(), Set_BottomLeft(), and Set_TopRight().
Definition at line 761 of file geo_classes.cpp.
References Assign(), CSG_Point::Get_X(), and CSG_Point::Get_Y().
| void CSG_Rect::Assign | ( | const CSG_Rect & | Rect | ) |
Definition at line 766 of file geo_classes.cpp.
References Assign(), Get_XMax(), Get_XMin(), Get_YMax(), and Get_YMin().
| bool CSG_Rect::Contains | ( | double | x, |
| double | y | ||
| ) | const |
Definition at line 944 of file geo_classes.cpp.
References m_rect, SSG_Rect::xMax, SSG_Rect::xMin, SSG_Rect::yMax, and SSG_Rect::yMin.
Referenced by CSG_Shape_Polygon::Contains(), Contains(), CSG_PointCloud::Get_Shape(), CSG_Grid::Get_Value(), Intersects(), and CSG_TIN_Triangle::is_Containing().
| bool CSG_Rect::Contains | ( | const CSG_Point & | Point | ) | const |
Definition at line 951 of file geo_classes.cpp.
References Contains(), CSG_Point::Get_X(), and CSG_Point::Get_Y().
| void CSG_Rect::Deflate | ( | double | dx, |
| double | dy, | ||
| bool | bPercent = true |
||
| ) |
Definition at line 838 of file geo_classes.cpp.
References Inflate().
| void CSG_Rect::Deflate | ( | double | d, |
| bool | bPercent = true |
||
| ) |
Definition at line 843 of file geo_classes.cpp.
| CSG_Point CSG_Rect::Get_BottomRight | ( | void | ) | [inline] |
Definition at line 454 of file geo_tools.h.
| CSG_Point CSG_Rect::Get_Center | ( | void | ) | const [inline] |
Definition at line 456 of file geo_tools.h.
| CSG_Point CSG_Rect::Get_TopLeft | ( | void | ) | [inline] |
Definition at line 453 of file geo_tools.h.
| double CSG_Rect::Get_XCenter | ( | void | ) | const [inline] |
Definition at line 457 of file geo_tools.h.
Referenced by CSG_TIN::_Triangulate(), CSG_Shape_Polygon_Part::_Update_Area(), and CSG_PRQuadTree::Create().
| double CSG_Rect::Get_XMax | ( | void | ) | const [inline] |
Definition at line 446 of file geo_tools.h.
Referenced by Assign(), Intersect(), Intersects(), is_Equal(), CSG_Parameter_Grid_System::On_Serialize(), and Union().
| double CSG_Rect::Get_XMin | ( | void | ) | const [inline] |
Definition at line 445 of file geo_tools.h.
Referenced by Assign(), CSG_Shape_Polygon::Contains(), CSG_Shape_Polygon_Part::Contains(), Intersect(), Intersects(), is_Equal(), CSG_Parameter_Grid_System::On_Serialize(), and Union().
| double CSG_Rect::Get_XRange | ( | void | ) | const [inline] |
Definition at line 450 of file geo_tools.h.
Referenced by CSG_TIN::_Triangulate(), CSG_PRQuadTree::Create(), and Inflate().
| double CSG_Rect::Get_YCenter | ( | void | ) | const [inline] |
Definition at line 458 of file geo_tools.h.
Referenced by CSG_TIN::_Triangulate(), CSG_Shape_Polygon_Part::_Update_Area(), and CSG_PRQuadTree::Create().
| double CSG_Rect::Get_YMax | ( | void | ) | const [inline] |
Definition at line 448 of file geo_tools.h.
Referenced by Assign(), Intersect(), Intersects(), CSG_TIN_Triangle::is_Containing(), is_Equal(), CSG_Parameter_Grid_System::On_Serialize(), and Union().
| double CSG_Rect::Get_YMin | ( | void | ) | const [inline] |
Definition at line 447 of file geo_tools.h.
Referenced by Assign(), Intersect(), Intersects(), CSG_TIN_Triangle::is_Containing(), is_Equal(), CSG_Parameter_Grid_System::On_Serialize(), and Union().
| double CSG_Rect::Get_YRange | ( | void | ) | const [inline] |
Definition at line 451 of file geo_tools.h.
Referenced by CSG_TIN::_Triangulate(), CSG_PRQuadTree::Create(), and Inflate().
| void CSG_Rect::Inflate | ( | double | d, |
| bool | bPercent = true |
||
| ) |
Definition at line 833 of file geo_classes.cpp.
Referenced by Deflate().
| void CSG_Rect::Inflate | ( | double | dx, |
| double | dy, | ||
| bool | bPercent = true |
||
| ) |
Definition at line 819 of file geo_classes.cpp.
References Assign(), Get_XRange(), Get_YRange(), m_rect, SSG_Rect::xMax, SSG_Rect::xMin, SSG_Rect::yMax, and SSG_Rect::yMin.
| bool CSG_Rect::Intersect | ( | const CSG_Rect & | Rect | ) |
Definition at line 873 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(), m_rect, SSG_Rect::xMax, SSG_Rect::xMin, SSG_Rect::yMax, and SSG_Rect::yMin.
| TSG_Intersection CSG_Rect::Intersects | ( | const CSG_Rect & | Rect | ) | const |
Definition at line 915 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(), m_rect, SSG_Rect::xMax, SSG_Rect::xMin, SSG_Rect::yMax, and SSG_Rect::yMin.
Referenced by CSG_Shapes::Get_Shape(), CSG_PointCloud::Get_Shape(), Intersect(), CSG_Shape::Intersects(), CSG_Shape_Polygon::On_Intersects(), and CSG_Shape_Line::On_Intersects().
| bool CSG_Rect::is_Equal | ( | double | xMin, |
| double | yMin, | ||
| double | xMax, | ||
| double | yMax | ||
| ) | const |
Definition at line 793 of file geo_classes.cpp.
References m_rect, SSG_Rect::xMax, SSG_Rect::xMin, SSG_Rect::yMax, and SSG_Rect::yMin.
Referenced by Intersects(), is_Equal(), operator!=(), and operator==().
| bool CSG_Rect::is_Equal | ( | const CSG_Rect & | Rect | ) | const |
Definition at line 799 of file geo_classes.cpp.
References Get_XMax(), Get_XMin(), Get_YMax(), Get_YMin(), and is_Equal().
| void CSG_Rect::Move | ( | const CSG_Point & | Point | ) |
Definition at line 813 of file geo_classes.cpp.
References CSG_Point::Get_X(), CSG_Point::Get_Y(), and Move().
| void CSG_Rect::Move | ( | double | dx, |
| double | dy | ||
| ) |
Definition at line 805 of file geo_classes.cpp.
References m_rect, SSG_Rect::xMax, SSG_Rect::xMin, SSG_Rect::yMax, and SSG_Rect::yMin.
Referenced by Move(), operator+=(), and operator-=().
| CSG_Rect::operator const TSG_Rect & | ( | void | ) | const [inline] |
Definition at line 424 of file geo_tools.h.
| bool CSG_Rect::operator!= | ( | const CSG_Rect & | Rect | ) | const |
Definition at line 714 of file geo_classes.cpp.
References is_Equal().
| void CSG_Rect::operator+= | ( | const CSG_Point & | Point | ) |
Definition at line 726 of file geo_classes.cpp.
References CSG_Point::Get_X(), CSG_Point::Get_Y(), and Move().
| void CSG_Rect::operator-= | ( | const CSG_Point & | Point | ) |
Definition at line 731 of file geo_classes.cpp.
References CSG_Point::Get_Y(), and Move().
Definition at line 719 of file geo_classes.cpp.
References Assign().
| bool CSG_Rect::operator== | ( | const CSG_Rect & | Rect | ) | const |
Definition at line 709 of file geo_classes.cpp.
References is_Equal().
| void CSG_Rect::Set_BottomLeft | ( | const CSG_Point & | Point | ) |
Definition at line 777 of file geo_classes.cpp.
References CSG_Point::Get_X(), CSG_Point::Get_Y(), and Set_BottomLeft().
| void CSG_Rect::Set_BottomLeft | ( | double | x, |
| double | y | ||
| ) |
Definition at line 772 of file geo_classes.cpp.
References Assign(), m_rect, SSG_Rect::xMax, and SSG_Rect::yMax.
Referenced by Set_BottomLeft().
| void CSG_Rect::Set_TopRight | ( | double | x, |
| double | y | ||
| ) |
Definition at line 782 of file geo_classes.cpp.
References Assign(), m_rect, SSG_Rect::xMin, and SSG_Rect::yMin.
Referenced by Set_TopRight().
| void CSG_Rect::Set_TopRight | ( | const CSG_Point & | Point | ) |
Definition at line 787 of file geo_classes.cpp.
References CSG_Point::Get_X(), CSG_Point::Get_Y(), and Set_TopRight().
| void CSG_Rect::Union | ( | const CSG_Rect & | Rect | ) |
Definition at line 849 of file geo_classes.cpp.
References Get_XMax(), Get_XMin(), Get_YMax(), Get_YMin(), m_rect, SSG_Rect::xMax, SSG_Rect::xMin, SSG_Rect::yMax, and SSG_Rect::yMin.
Referenced by _SG_Polygon_Clip(), CSG_TIN::_Triangulate(), CSG_Shape_Points::_Update_Extent(), CSG_Shapes::Get_Selection_Extent(), and CSG_Shapes::On_Update().
Definition at line 478 of file geo_tools.h.
Referenced by CSG_Grid_System::Assign(), Assign(), Contains(), CSG_Rect(), Inflate(), Intersect(), Intersects(), CSG_TIN_Triangle::is_Containing(), CSG_Grid_System::is_Equal(), is_Equal(), CSG_Grid::is_Intersecting(), Move(), CSG_PointCloud::Select(), Set_BottomLeft(), Set_TopRight(), and Union().