SAGA API  v9.5
CSG_Rect Class Reference

#include <geo_tools.h>

Inheritance diagram for CSG_Rect:
SSG_Rect

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)
 
bool Create (double xMin, double yMin, double xMax, double yMax)
 
bool Create (const CSG_Point &A, const CSG_Point &B)
 
bool Create (const CSG_Rect &Rect)
 
bool operator== (const CSG_Rect &Rect) const
 
bool operator!= (const CSG_Rect &Rect) const
 
CSG_Rectoperator= (const CSG_Rect &Rect)
 
CSG_Rectoperator+= (const CSG_Point &Point)
 
CSG_Rectoperator-= (const CSG_Point &Point)
 
CSG_RectAssign (double xMin, double yMin, double xMax, double yMax)
 
CSG_RectAssign (const CSG_Point &A, const CSG_Point &B)
 
CSG_RectAssign (const CSG_Rect &Rect)
 
CSG_RectSet_BottomLeft (double x, double y)
 
CSG_RectSet_BottomLeft (const CSG_Point &Point)
 
CSG_RectSet_TopRight (double x, double y)
 
CSG_RectSet_TopRight (const CSG_Point &Point)
 
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
 
double Get_Area (void) const
 
double Get_Diameter (void) const
 
CSG_Point Get_TopLeft (void) const
 
CSG_Point Get_BottomRight (void) const
 
CSG_Point Get_Center (void) const
 
double Get_XCenter (void) const
 
double Get_YCenter (void) const
 
CSG_RectMove (double dx, double dy)
 
CSG_RectMove (const CSG_Point &Point)
 
CSG_RectInflate (double d, bool bPercent=true)
 
CSG_RectDeflate (double d, bool bPercent=true)
 
CSG_RectInflate (double dx, double dy, bool bPercent=true)
 
CSG_RectDeflate (double dx, double dy, bool bPercent=true)
 
CSG_RectUnion (double x, double y)
 
CSG_RectUnion (const CSG_Point &Point)
 
CSG_RectUnion (const CSG_Rect &Rect)
 
bool Intersect (const CSG_Rect &Rect)
 
bool is_Equal (double xMin, double yMin, double xMax, double yMax, double epsilon=0.) const
 
bool is_Equal (const CSG_Rect &Rect, double epsilon=0.) const
 
bool Contains (double x, double y) const
 
bool Contains (const CSG_Point &Point) const
 
TSG_Intersection Intersects (const CSG_Rect &Rect) const
 

Additional Inherited Members

- Public Attributes inherited from SSG_Rect
double xMin
 
double yMin
 
double xMax
 
double yMax
 

Detailed Description

Definition at line 470 of file geo_tools.h.

Constructor & Destructor Documentation

◆ CSG_Rect() [1/5]

CSG_Rect::CSG_Rect ( void  )

Definition at line 663 of file geo_classes.cpp.

References Assign().

◆ CSG_Rect() [2/5]

CSG_Rect::CSG_Rect ( const CSG_Rect Rect)

Definition at line 668 of file geo_classes.cpp.

References Assign(), SSG_Rect::xMax, SSG_Rect::xMin, SSG_Rect::yMax, and SSG_Rect::yMin.

◆ CSG_Rect() [3/5]

CSG_Rect::CSG_Rect ( const TSG_Rect Rect)

Definition at line 673 of file geo_classes.cpp.

References Assign(), SSG_Rect::xMax, SSG_Rect::xMin, SSG_Rect::yMax, and SSG_Rect::yMin.

◆ CSG_Rect() [4/5]

CSG_Rect::CSG_Rect ( const CSG_Point A,
const CSG_Point B 
)

Definition at line 678 of file geo_classes.cpp.

References A, Assign(), and B.

◆ CSG_Rect() [5/5]

CSG_Rect::CSG_Rect ( double  xMin,
double  yMin,
double  xMax,
double  yMax 
)

Definition at line 683 of file geo_classes.cpp.

References Assign(), SSG_Rect::xMax, SSG_Rect::xMin, SSG_Rect::yMax, and SSG_Rect::yMin.

◆ ~CSG_Rect()

CSG_Rect::~CSG_Rect ( void  )

Definition at line 689 of file geo_classes.cpp.

Member Function Documentation

◆ Assign() [1/3]

CSG_Rect & CSG_Rect::Assign ( const CSG_Point A,
const CSG_Point B 
)

Definition at line 734 of file geo_classes.cpp.

References A, B, and Create().

◆ Assign() [2/3]

CSG_Rect & CSG_Rect::Assign ( const CSG_Rect Rect)

Definition at line 741 of file geo_classes.cpp.

References Create(), SSG_Rect::xMax, SSG_Rect::xMin, SSG_Rect::yMax, and SSG_Rect::yMin.

◆ Assign() [3/3]

◆ Contains() [1/2]

bool CSG_Rect::Contains ( const CSG_Point Point) const

Definition at line 875 of file geo_classes.cpp.

References Contains(), SSG_Point::x, and SSG_Point::y.

◆ Contains() [2/2]

bool CSG_Rect::Contains ( double  x,
double  y 
) const

◆ Create() [1/3]

bool CSG_Rect::Create ( const CSG_Point A,
const CSG_Point B 
)

Definition at line 710 of file geo_classes.cpp.

References A, B, and Create().

◆ Create() [2/3]

bool CSG_Rect::Create ( const CSG_Rect Rect)

Definition at line 716 of file geo_classes.cpp.

References SSG_Rect::xMax, SSG_Rect::xMin, SSG_Rect::yMax, and SSG_Rect::yMin.

◆ Create() [3/3]

bool CSG_Rect::Create ( double  xMin,
double  yMin,
double  xMax,
double  yMax 
)

Definition at line 698 of file geo_classes.cpp.

References SSG_Rect::xMax, SSG_Rect::xMin, SSG_Rect::yMax, and SSG_Rect::yMin.

Referenced by Assign(), Create(), and CSG_Grid_System::Destroy().

◆ Deflate() [1/2]

CSG_Rect & CSG_Rect::Deflate ( double  d,
bool  bPercent = true 
)

Definition at line 818 of file geo_classes.cpp.

Referenced by CSG_Parameters_Grid_Target::Get_System().

◆ Deflate() [2/2]

CSG_Rect & CSG_Rect::Deflate ( double  dx,
double  dy,
bool  bPercent = true 
)

Definition at line 813 of file geo_classes.cpp.

References Inflate().

◆ Get_Area()

double CSG_Rect::Get_Area ( void  ) const
inline

◆ Get_BottomRight()

CSG_Point CSG_Rect::Get_BottomRight ( void  ) const
inline

Definition at line 514 of file geo_tools.h.

◆ Get_Center()

CSG_Point CSG_Rect::Get_Center ( void  ) const
inline

Definition at line 516 of file geo_tools.h.

Referenced by CSG_Grid_System::Create().

◆ Get_Diameter()

double CSG_Rect::Get_Diameter ( void  ) const
inline

Definition at line 511 of file geo_tools.h.

◆ Get_TopLeft()

CSG_Point CSG_Rect::Get_TopLeft ( void  ) const
inline

Definition at line 513 of file geo_tools.h.

◆ Get_XCenter()

◆ Get_XMax()

◆ Get_XMin()

◆ Get_XRange()

double CSG_Rect::Get_XRange ( void  ) const
inline

◆ Get_YCenter()

◆ Get_YMax()

◆ Get_YMin()

◆ Get_YRange()

double CSG_Rect::Get_YRange ( void  ) const
inline

◆ Inflate() [1/2]

CSG_Rect & CSG_Rect::Inflate ( double  d,
bool  bPercent = true 
)

◆ Inflate() [2/2]

CSG_Rect & CSG_Rect::Inflate ( double  dx,
double  dy,
bool  bPercent = true 
)

◆ Intersect()

◆ Intersects()

◆ is_Equal() [1/2]

bool CSG_Rect::is_Equal ( const CSG_Rect Rect,
double  epsilon = 0. 
) const

Definition at line 864 of file geo_classes.cpp.

References is_Equal(), SSG_Rect::xMax, SSG_Rect::xMin, SSG_Rect::yMax, and SSG_Rect::yMin.

◆ is_Equal() [2/2]

bool CSG_Rect::is_Equal ( double  xMin,
double  yMin,
double  xMax,
double  yMax,
double  epsilon = 0. 
) const

Definition at line 858 of file geo_classes.cpp.

References SG_Is_Equal(), SSG_Rect::xMax, SSG_Rect::xMin, SSG_Rect::yMax, and SSG_Rect::yMin.

Referenced by Intersects(), and is_Equal().

◆ Move() [1/2]

CSG_Rect & CSG_Rect::Move ( const CSG_Point Point)

Definition at line 786 of file geo_classes.cpp.

References Move(), SSG_Point::x, and SSG_Point::y.

◆ Move() [2/2]

CSG_Rect & CSG_Rect::Move ( double  dx,
double  dy 
)

Definition at line 778 of file geo_classes.cpp.

References SSG_Rect::xMax, SSG_Rect::xMin, SSG_Rect::yMax, and SSG_Rect::yMin.

Referenced by Move().

◆ operator!=()

bool CSG_Rect::operator!= ( const CSG_Rect Rect) const
inline

Definition at line 486 of file geo_tools.h.

◆ operator+=()

CSG_Rect& CSG_Rect::operator+= ( const CSG_Point Point)
inline

Definition at line 490 of file geo_tools.h.

References SSG_Point::x, and SSG_Point::y.

◆ operator-=()

CSG_Rect& CSG_Rect::operator-= ( const CSG_Point Point)
inline

Definition at line 491 of file geo_tools.h.

References SSG_Point::x, and SSG_Point::y.

◆ operator=()

CSG_Rect& CSG_Rect::operator= ( const CSG_Rect Rect)
inline

Definition at line 488 of file geo_tools.h.

◆ operator==()

bool CSG_Rect::operator== ( const CSG_Rect Rect) const
inline

Definition at line 485 of file geo_tools.h.

◆ Set_BottomLeft() [1/2]

CSG_Rect & CSG_Rect::Set_BottomLeft ( const CSG_Point Point)

Definition at line 756 of file geo_classes.cpp.

References Set_BottomLeft(), SSG_Point::x, and SSG_Point::y.

◆ Set_BottomLeft() [2/2]

CSG_Rect & CSG_Rect::Set_BottomLeft ( double  x,
double  y 
)

Definition at line 749 of file geo_classes.cpp.

References Assign(), SSG_Rect::xMax, and SSG_Rect::yMax.

Referenced by Set_BottomLeft().

◆ Set_TopRight() [1/2]

CSG_Rect & CSG_Rect::Set_TopRight ( const CSG_Point Point)

Definition at line 770 of file geo_classes.cpp.

References Set_TopRight(), SSG_Point::x, and SSG_Point::y.

◆ Set_TopRight() [2/2]

CSG_Rect & CSG_Rect::Set_TopRight ( double  x,
double  y 
)

Definition at line 763 of file geo_classes.cpp.

References Assign(), SSG_Rect::xMin, and SSG_Rect::yMin.

Referenced by Set_TopRight().

◆ Union() [1/3]

CSG_Rect & CSG_Rect::Union ( const CSG_Point Point)

◆ Union() [2/3]

CSG_Rect & CSG_Rect::Union ( const CSG_Rect Rect)

◆ Union() [3/3]


The documentation for this class was generated from the following files: