SAGA API v9.10
Loading...
Searching...
No Matches
CSG_Rect_Int Class Reference

#include <geo_tools.h>

Inheritance diagram for CSG_Rect_Int:
SSG_Rect_Int

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 Create (int xMin, int yMin, int xMax, int yMax)
bool Create (const TSG_Point_Int &A, const TSG_Point_Int &B)
bool Create (const CSG_Rect_Int &Rect)
bool operator== (const CSG_Rect_Int &Rect) const
bool operator!= (const CSG_Rect_Int &Rect) const
CSG_Rect_Intoperator= (const CSG_Rect_Int &Rect)
CSG_Rect_Intoperator+= (const TSG_Point_Int &Point)
CSG_Rect_Intoperator-= (const TSG_Point_Int &Point)
CSG_Rect_IntAssign (int xMin, int yMin, int xMax, int yMax)
CSG_Rect_IntAssign (const TSG_Point_Int &A, const TSG_Point_Int &B)
CSG_Rect_IntAssign (const CSG_Rect_Int &Rect)
CSG_Rect_IntSet_BottomLeft (int x, int y)
CSG_Rect_IntSet_BottomLeft (const TSG_Point_Int &Point)
CSG_Rect_IntSet_TopRight (int x, int y)
CSG_Rect_IntSet_TopRight (const TSG_Point_Int &Point)
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
CSG_Rect_IntMove (int dx, int dy)
CSG_Rect_IntMove (const TSG_Point_Int &Point)
CSG_Rect_IntInflate (int d)
CSG_Rect_IntDeflate (int d)
CSG_Rect_IntInflate (int dx, int dy)
CSG_Rect_IntDeflate (int dx, int dy)
CSG_Rect_IntUnion (int x, int y)
CSG_Rect_IntUnion (const TSG_Point_Int &Point)
CSG_Rect_IntUnion (const CSG_Rect_Int &Rect)
bool Intersect (const CSG_Rect_Int &Rect)
bool is_Equal (int xMin, int yMin, int xMax, int yMax) const
bool is_Equal (const CSG_Rect_Int &Rect) const
bool Contains (double x, double y) const
bool Contains (const TSG_Point_Int &Point) const
TSG_Intersection Intersects (const CSG_Rect_Int &Rect) const

Additional Inherited Members

Public Attributes inherited from SSG_Rect_Int
int xMin
int yMin
int xMax
int yMax

Detailed Description

Definition at line 590 of file geo_tools.h.

Constructor & Destructor Documentation

◆ CSG_Rect_Int() [1/5]

◆ CSG_Rect_Int() [2/5]

CSG_Rect_Int::CSG_Rect_Int ( const CSG_Rect_Int & Rect)

◆ CSG_Rect_Int() [3/5]

CSG_Rect_Int::CSG_Rect_Int ( const TSG_Rect_Int & Rect)

◆ CSG_Rect_Int() [4/5]

CSG_Rect_Int::CSG_Rect_Int ( const TSG_Point_Int & A,
const TSG_Point_Int & B )

Definition at line 1044 of file geo_classes.cpp.

References A, B, and Create().

◆ CSG_Rect_Int() [5/5]

CSG_Rect_Int::CSG_Rect_Int ( int xMin,
int yMin,
int xMax,
int yMax )

◆ ~CSG_Rect_Int()

CSG_Rect_Int::~CSG_Rect_Int ( void )

Definition at line 1055 of file geo_classes.cpp.

Member Function Documentation

◆ Assign() [1/3]

CSG_Rect_Int & CSG_Rect_Int::Assign ( const CSG_Rect_Int & Rect)

◆ Assign() [2/3]

CSG_Rect_Int & CSG_Rect_Int::Assign ( const TSG_Point_Int & A,
const TSG_Point_Int & B )

Definition at line 1098 of file geo_classes.cpp.

References A, Assign(), B, and CSG_Rect_Int().

◆ Assign() [3/3]

CSG_Rect_Int & CSG_Rect_Int::Assign ( int xMin,
int yMin,
int xMax,
int yMax )

◆ Contains() [1/2]

bool CSG_Rect_Int::Contains ( const TSG_Point_Int & Point) const

Definition at line 1243 of file geo_classes.cpp.

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

◆ Contains() [2/2]

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

Definition at line 1238 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().

◆ Create() [1/3]

bool CSG_Rect_Int::Create ( const CSG_Rect_Int & Rect)

◆ Create() [2/3]

bool CSG_Rect_Int::Create ( const TSG_Point_Int & A,
const TSG_Point_Int & B )

Definition at line 1076 of file geo_classes.cpp.

References A, B, and Create().

◆ Create() [3/3]

bool CSG_Rect_Int::Create ( int xMin,
int yMin,
int xMax,
int yMax )

◆ Deflate() [1/2]

CSG_Rect_Int & CSG_Rect_Int::Deflate ( int d)

Definition at line 1159 of file geo_classes.cpp.

References CSG_Rect_Int(), and Deflate().

Referenced by Deflate().

◆ Deflate() [2/2]

CSG_Rect_Int & CSG_Rect_Int::Deflate ( int dx,
int dy )

Definition at line 1154 of file geo_classes.cpp.

References CSG_Rect_Int(), and Inflate().

◆ Get_Area()

double CSG_Rect_Int::Get_Area ( void ) const
inline

Definition at line 630 of file geo_tools.h.

References Get_XRange(), and Get_YRange().

◆ Get_BottomRight()

TSG_Point_Int CSG_Rect_Int::Get_BottomRight ( void ) const
inline

◆ Get_Diameter()

double CSG_Rect_Int::Get_Diameter ( void ) const
inline

◆ Get_TopLeft()

TSG_Point_Int CSG_Rect_Int::Get_TopLeft ( void ) const
inline

◆ Get_XMax()

int CSG_Rect_Int::Get_XMax ( void ) const
inline

Definition at line 623 of file geo_tools.h.

References SSG_Rect_Int::xMax.

Referenced by Intersect(), Intersects(), and Union().

◆ Get_XMin()

int CSG_Rect_Int::Get_XMin ( void ) const
inline

Definition at line 622 of file geo_tools.h.

References SSG_Rect_Int::xMin.

Referenced by Intersect(), Intersects(), and Union().

◆ Get_XRange()

int CSG_Rect_Int::Get_XRange ( void ) const
inline

Definition at line 627 of file geo_tools.h.

References SSG_Rect_Int::xMax, and SSG_Rect_Int::xMin.

Referenced by Get_Area().

◆ Get_YMax()

int CSG_Rect_Int::Get_YMax ( void ) const
inline

Definition at line 625 of file geo_tools.h.

References SSG_Rect_Int::yMax.

Referenced by Intersect(), Intersects(), and Union().

◆ Get_YMin()

int CSG_Rect_Int::Get_YMin ( void ) const
inline

Definition at line 624 of file geo_tools.h.

References SSG_Rect_Int::yMin.

Referenced by Intersect(), Intersects(), and Union().

◆ Get_YRange()

int CSG_Rect_Int::Get_YRange ( void ) const
inline

Definition at line 628 of file geo_tools.h.

References SSG_Rect_Int::yMax, and SSG_Rect_Int::yMin.

Referenced by Get_Area().

◆ Inflate() [1/2]

CSG_Rect_Int & CSG_Rect_Int::Inflate ( int d)

Definition at line 1149 of file geo_classes.cpp.

References CSG_Rect_Int(), and Inflate().

Referenced by Deflate(), and Inflate().

◆ Inflate() [2/2]

CSG_Rect_Int & CSG_Rect_Int::Inflate ( int dx,
int dy )

◆ Intersect()

◆ Intersects()

◆ is_Equal() [1/2]

bool CSG_Rect_Int::is_Equal ( const CSG_Rect_Int & Rect) const

◆ is_Equal() [2/2]

bool CSG_Rect_Int::is_Equal ( int xMin,
int yMin,
int xMax,
int yMax ) const

◆ Move() [1/2]

CSG_Rect_Int & CSG_Rect_Int::Move ( const TSG_Point_Int & Point)

Definition at line 1138 of file geo_classes.cpp.

References CSG_Rect_Int(), Move(), SSG_Point_Int::x, and SSG_Point_Int::y.

◆ Move() [2/2]

CSG_Rect_Int & CSG_Rect_Int::Move ( int dx,
int dy )

◆ operator!=()

bool CSG_Rect_Int::operator!= ( const CSG_Rect_Int & Rect) const
inline

Definition at line 606 of file geo_tools.h.

References CSG_Rect_Int(), and is_Equal().

◆ operator+=()

CSG_Rect_Int & CSG_Rect_Int::operator+= ( const TSG_Point_Int & Point)
inline

Definition at line 610 of file geo_tools.h.

References CSG_Rect_Int(), Move(), SSG_Point_Int::x, and SSG_Point_Int::y.

◆ operator-=()

CSG_Rect_Int & CSG_Rect_Int::operator-= ( const TSG_Point_Int & Point)
inline

Definition at line 611 of file geo_tools.h.

References CSG_Rect_Int(), Move(), SSG_Point_Int::x, and SSG_Point_Int::y.

◆ operator=()

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

Definition at line 608 of file geo_tools.h.

References Assign(), and CSG_Rect_Int().

◆ operator==()

bool CSG_Rect_Int::operator== ( const CSG_Rect_Int & Rect) const
inline

Definition at line 605 of file geo_tools.h.

References CSG_Rect_Int(), and is_Equal().

◆ Set_BottomLeft() [1/2]

CSG_Rect_Int & CSG_Rect_Int::Set_BottomLeft ( const TSG_Point_Int & Point)

Definition at line 1114 of file geo_classes.cpp.

References CSG_Rect_Int(), Set_BottomLeft(), SSG_Point_Int::x, and SSG_Point_Int::y.

◆ Set_BottomLeft() [2/2]

CSG_Rect_Int & CSG_Rect_Int::Set_BottomLeft ( int x,
int y )

Definition at line 1109 of file geo_classes.cpp.

References Assign(), CSG_Rect_Int(), SSG_Rect_Int::xMax, and SSG_Rect_Int::yMax.

Referenced by Set_BottomLeft().

◆ Set_TopRight() [1/2]

CSG_Rect_Int & CSG_Rect_Int::Set_TopRight ( const TSG_Point_Int & Point)

Definition at line 1124 of file geo_classes.cpp.

References CSG_Rect_Int(), Set_TopRight(), SSG_Point_Int::x, and SSG_Point_Int::y.

◆ Set_TopRight() [2/2]

CSG_Rect_Int & CSG_Rect_Int::Set_TopRight ( int x,
int y )

Definition at line 1119 of file geo_classes.cpp.

References Assign(), CSG_Rect_Int(), SSG_Rect_Int::xMin, and SSG_Rect_Int::yMin.

Referenced by Set_TopRight().

◆ Union() [1/3]

◆ Union() [2/3]

◆ Union() [3/3]

CSG_Rect_Int & CSG_Rect_Int::Union ( int x,
int y )

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