24 #ifndef __GSDEFS_H_INCLUDED_
25 #define __GSDEFS_H_INCLUDED_
36 #define SCALAR_MIN (-2147483647 - 1)
37 #define SCALAR_MAX 2147483647
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))
void * OdGsWindowingSystemID
void offset(TRect &dcRectThis, T x, T y)
void intersectWith(TRect &dcRectThis, const TRect &dcRect, bool bValidate=true)
long OdTruncateToLong(double a)
bool operator!=(const OdGsDCPoint &dcPoint) const
bool operator==(const OdGsDCPoint &dcPoint) const
void operator=(const OdGsDCPoint &dcPoint)
OdGsDCPoint(OdInt32 xx, OdInt32 yy)
long operator[](unsigned int i) const
bool operator!=(const OdGsDCRectDouble &dcRect) const
OdGsDCRectDouble(const OdGePoint2d &minPoint, const OdGePoint2d &maxPoint)
OdGsDCRectDouble(double xMin, double xMax, double yMin, double yMax)
bool operator==(const OdGsDCRectDouble &dcRect) const
OdGsDCRectDouble & operator=(const OdGsDCRect &dcRect)
OdGsDCRectDouble(const OdGsDCRect &rc)
void offset(long x, long y)
bool operator!=(const OdGsDCRect &dcRect) const
bool within(const OdGsDCRect &dcRect) const
OdGsDCRect(long xMin, long xMax, long yMin, long yMax)
OdGsDCRect & operator=(const OdGsDCRect &dcRect)
void operator&=(const OdGsDCRect &dcRect)
void intersectWith(const OdGsDCRect &dcRect, bool bValidate=true)
bool operator==(const OdGsDCRect &dcRect) const
void operator|=(const OdGsDCRect &dcRect)
OdGsDCRect(const OdGsDCPoint &minPoint, const OdGsDCPoint &maxPoint)