CFx SDK Documentation
2020SP3
|
Go to the documentation of this file.
24 #ifndef __GSDEFS_H_INCLUDED_
25 #define __GSDEFS_H_INCLUDED_
36 #define SCALAR_MIN (-2147483647 - 1) // minimum(signed) int32 value
37 #define SCALAR_MAX 2147483647 // maximum(signed) int32 value
89 inline long operator[](
unsigned int i)
const {
return *(&
x + i); }
154 return !(*
this == dcRect);
276 return !(*
this == dcRect);
293 template <
class TRect>
294 void intersectWith(TRect& dcRectThis,
const TRect& dcRect,
bool bValidate =
true)
296 if(dcRectThis.m_min.x < dcRect.m_min.x)
297 dcRectThis.m_min.x = dcRect.m_min.x;
298 if(dcRectThis.m_max.x > dcRect.m_max.x)
299 dcRectThis.m_max.x = dcRect.m_max.x;
301 if(dcRectThis.m_min.y < dcRect.m_min.y)
302 dcRectThis.m_min.y = dcRect.m_min.y;
303 if(dcRectThis.m_max.y > dcRect.m_max.y)
304 dcRectThis.m_max.y = dcRect.m_max.y;
306 if(bValidate && (dcRectThis.m_min.x > dcRectThis.m_max.x || dcRectThis.m_min.y > dcRectThis.m_max.y))
315 template <
class TRect,
class T>
318 dcRectThis.m_min.x +=
x;
319 dcRectThis.m_max.x +=
x;
320 dcRectThis.m_min.y +=
y;
321 dcRectThis.m_max.y +=
y;
339 #define GETBITNEG(flags, bit) (((flags) & (bit)) != (bit))
344 #endif // __GSDEFS_H_INCLUDED_
void offset(TRect &dcRectThis, T x, T y)
void intersectWith(const OdGsDCRect &dcRect, bool bValidate=true)
void operator|=(const OdGsDCRect &dcRect)
long OdTruncateToLong(double a)
OdGsDCRectDouble(const OdGsDCRect &rc)
void intersectWith(TRect &dcRectThis, const TRect &dcRect, bool bValidate=true)
OdGsDCRect(long xMin, long xMax, long yMin, long yMax)
OdGsDCRect & operator=(const OdGsDCRect &dcRect)
bool operator==(const OdGsDCPoint &dcPoint) const
bool within(const OdGsDCRect &dcRect) const
OdGsDCRectDouble & operator=(const OdGsDCRect &dcRect)
bool operator!=(const OdGsDCRectDouble &dcRect) const
void offset(long x, long y)
bool operator!=(const OdGsDCRect &dcRect) const
void operator=(const OdGsDCPoint &dcPoint)
OdGsDCPoint(OdInt32 xx, OdInt32 yy)
void operator&=(const OdGsDCRect &dcRect)
OdGsDCRectDouble(double xMin, double xMax, double yMin, double yMax)
OdGsDCRect(const OdGsDCPoint &minPoint, const OdGsDCPoint &maxPoint)
OdGsDCRectDouble(const OdGePoint2d &minPoint, const OdGePoint2d &maxPoint)
void * OdGsWindowingSystemID
bool operator!=(const OdGsDCPoint &dcPoint) const
bool operator==(const OdGsDCRect &dcRect) const
bool operator==(const OdGsDCRectDouble &dcRect) const
long operator[](unsigned int i) const