![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2006 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: displayPoint.h,v $ $Revision: 1.5 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00009 #ifndef DtDisplayPoint_H 00010 #define DtDisplayPoint_H 00011 00012 #include "drawerNative/drawerNativeDefines.h" 00013 #include "drawerNative/2dIntPoint.h" 00014 00015 #include <QtCore/QPoint> 00016 00017 #include <iosfwd> 00018 00022 00024 00025 class DT_DLL_drawerNative DtDisplayPoint: public Dt2DIntPoint 00026 { 00027 public: 00028 00029 DtDisplayPoint(); 00030 DtDisplayPoint(const QPoint& p); 00031 DtDisplayPoint(const int, const int); 00032 DtDisplayPoint(const DtDisplayPoint& orig); 00033 00034 virtual ~DtDisplayPoint(); 00035 00036 DtDisplayPoint& operator=(const DtDisplayPoint& rhs); 00037 DtDisplayPoint operator-(const DtDisplayPoint& rhs) { return DtDisplayPoint(x() - rhs.x(), y() - rhs.y()); }; 00038 DtDisplayPoint operator+(const DtDisplayPoint& rhs) { return DtDisplayPoint(x() + rhs.x(), y() + rhs.y()); }; 00039 00040 operator QPoint() { return QPoint(x(), y()); }; 00041 00042 protected: 00043 00044 }; 00045 00046 #endif 00047