![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2006 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: 2dIntPoint.h,v $ $Revision: 1.1 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00009 #ifndef Dt2DIntPoint_H 00010 #define Dt2DIntPoint_H 00011 00012 #include "drawerNative/drawerNativeDefines.h" 00013 00014 #include <iosfwd> 00015 00018 00020 00021 class DT_DLL_drawerNative Dt2DIntPoint 00022 { 00023 public: 00024 00025 Dt2DIntPoint(); 00026 Dt2DIntPoint(const int x, const int y); 00027 Dt2DIntPoint(const Dt2DIntPoint& orig); 00028 00029 virtual ~Dt2DIntPoint(); 00030 00031 Dt2DIntPoint& operator=(const Dt2DIntPoint& rhs); 00032 00033 virtual bool operator==(const Dt2DIntPoint& rhs) const; 00034 virtual bool operator!=(const Dt2DIntPoint& rhs) const; 00035 00036 virtual const int x() const; 00037 virtual const int y() const; 00038 00039 virtual void set(const int x, const int y); 00040 00041 virtual void setX(const int x); 00042 virtual void setY(const int y); 00043 00044 00045 protected: 00046 int myX; 00047 int myY; 00048 00049 }; 00050 00051 DT_DLL_drawerNative std::ostream& operator<<(std::ostream& os, const Dt2DIntPoint& point); 00052 DT_DLL_drawerNative std::istream& operator>>(std::istream& is, Dt2DIntPoint& point); 00053 00054 #define Dt2DIntPoint_INL 00055 #include "drawerNative/2dIntPoint.inl" 00056 #undef Dt2DIntPoint_INL 00057 00058 #endif 00059