SAGA API  v9.2
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 operator== (const CSG_Rect_Int &Rect) const
 
bool operator!= (const CSG_Rect_Int &Rect) const
 
CSG_Rect_Intoperator= (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

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

Detailed Description

Definition at line 582 of file geo_tools.h.

Constructor & Destructor Documentation

◆ CSG_Rect_Int() [1/5]

CSG_Rect_Int::CSG_Rect_Int ( void  )

Definition at line 1014 of file geo_classes.cpp.

References Assign().

◆ 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 1029 of file geo_classes.cpp.

References A, Assign(), and B.

◆ 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 1040 of file geo_classes.cpp.

Member Function Documentation

◆ Assign() [1/3]

void CSG_Rect_Int::Assign ( const CSG_Rect_Int Rect)

◆ Assign() [2/3]

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

Definition at line 1097 of file geo_classes.cpp.

References A, Assign(), and B.

◆ Assign() [3/3]

void 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 1258 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 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().

◆ Deflate() [1/2]

void CSG_Rect_Int::Deflate ( int  d)

Definition at line 1168 of file geo_classes.cpp.

◆ Deflate() [2/2]

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

Definition at line 1163 of file geo_classes.cpp.

References Inflate().

◆ Get_Area()

double CSG_Rect_Int::Get_Area ( void  ) const
inline

Definition at line 620 of file geo_tools.h.

◆ Get_BottomRight()

TSG_Point_Int CSG_Rect_Int::Get_BottomRight ( void  ) const
inline

◆ Get_Diameter()

double CSG_Rect_Int::Get_Diameter ( void  ) const
inline

Definition at line 621 of file geo_tools.h.

References SSG_Rect_Int::yMin.

◆ 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 613 of file geo_tools.h.

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

◆ Get_XMin()

int CSG_Rect_Int::Get_XMin ( void  ) const
inline

Definition at line 612 of file geo_tools.h.

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

◆ Get_XRange()

int CSG_Rect_Int::Get_XRange ( void  ) const
inline

Definition at line 617 of file geo_tools.h.

◆ Get_YMax()

int CSG_Rect_Int::Get_YMax ( void  ) const
inline

Definition at line 615 of file geo_tools.h.

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

◆ Get_YMin()

int CSG_Rect_Int::Get_YMin ( void  ) const
inline

Definition at line 614 of file geo_tools.h.

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

◆ Get_YRange()

int CSG_Rect_Int::Get_YRange ( void  ) const
inline

Definition at line 618 of file geo_tools.h.

◆ Inflate() [1/2]

void CSG_Rect_Int::Inflate ( int  d)

Definition at line 1158 of file geo_classes.cpp.

Referenced by Deflate().

◆ Inflate() [2/2]

void 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]

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.

◆ Move() [2/2]

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

◆ operator!=()

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

Definition at line 1049 of file geo_classes.cpp.

References is_Equal().

◆ operator+=()

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.

◆ operator-=()

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.

◆ operator=()

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

Definition at line 1054 of file geo_classes.cpp.

References Assign().

◆ operator==()

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

Definition at line 1044 of file geo_classes.cpp.

References is_Equal().

◆ Set_BottomLeft() [1/2]

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.

◆ Set_BottomLeft() [2/2]

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().

◆ Set_TopRight() [1/2]

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.

◆ Set_TopRight() [2/2]

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().

◆ Union() [1/3]

void CSG_Rect_Int::Union ( const CSG_Rect_Int Rect)

◆ Union() [2/3]

void CSG_Rect_Int::Union ( const TSG_Point_Int Point)

◆ Union() [3/3]

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

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