Browse Subversion Repository
Contents of /coordinateCtrl/CoordinateCtrl.h
Parent Directory
| Revision Log
Revision 279 -
( show annotations)
( download)
( as text)
Wed Mar 12 05:28:19 2008 UTC
(16 years, 1 month ago)
by satofumi
File MIME type: text/x-chdr
File size: 917 byte(s)
adjust tab index
| 1 |
#ifndef COORDINATE_CTRL_H |
| 2 |
#define COORDINATE_CTRL_H |
| 3 |
|
| 4 |
/*! |
| 5 |
\file |
| 6 |
\brief 座標系の操作 |
| 7 |
|
| 8 |
\author Satofumi KAMIMURA |
| 9 |
|
| 10 |
$Id$ |
| 11 |
*/ |
| 12 |
|
| 13 |
#include <memory> |
| 14 |
#include "GridTypes.h" |
| 15 |
|
| 16 |
|
| 17 |
namespace beego { |
| 18 |
/*! |
| 19 |
\brief 座標系クラス |
| 20 |
*/ |
| 21 |
class CoordinateCtrl { |
| 22 |
CoordinateCtrl(const CoordinateCtrl& rhs); |
| 23 |
CoordinateCtrl& operator = (const CoordinateCtrl& rhs); |
| 24 |
|
| 25 |
struct pImpl; |
| 26 |
const std::auto_ptr<pImpl> pimpl; |
| 27 |
|
| 28 |
public: |
| 29 |
CoordinateCtrl(void); |
| 30 |
~CoordinateCtrl(void); |
| 31 |
|
| 32 |
static bool isActive(const CoordinateCtrl* crd); |
| 33 |
CoordinateCtrl* getParent(void); |
| 34 |
void setOrigin(const CoordinateCtrl* parent, int x, int y, Angle angle); |
| 35 |
|
| 36 |
// 指定座標系の指定位置が、自座標系のどの位置に相当するかを返す |
| 37 |
bool getPosition(Position<int>* dst, |
| 38 |
const CoordinateCtrl* crd, int x, int y, Angle angle); |
| 39 |
|
| 40 |
// !!! 3D タイプの getPosition() もか? |
| 41 |
}; |
| 42 |
}; |
| 43 |
|
| 44 |
#endif /* !COORDINATE_CTRL_H */ |
|