Browse Subversion Repository
Contents of /rangesCtrl/RangesDrawSurface.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: 1613 byte(s)
adjust tab index
| 1 |
#ifndef RANGES_DRAW_COMPONENT_H |
| 2 |
#define RANGES_DRAW_COMPONENT_H |
| 3 |
|
| 4 |
/*! |
| 5 |
\file |
| 6 |
\brief レンジセンサデータの描画コンポーネント |
| 7 |
|
| 8 |
\author Satofumi KAMIMURA |
| 9 |
|
| 10 |
$Id$ |
| 11 |
*/ |
| 12 |
|
| 13 |
#include "SurfaceInterface.h" |
| 14 |
#include "GridTypes.h" |
| 15 |
#include <memory> |
| 16 |
|
| 17 |
namespace beego { |
| 18 |
class RangeSensorInterface; |
| 19 |
|
| 20 |
namespace SDL { |
| 21 |
class RangesDrawSurface : public SurfaceInterface { |
| 22 |
RangesDrawSurface(void); |
| 23 |
RangesDrawSurface(const RangesDrawSurface& rhs); |
| 24 |
RangesDrawSurface& operator = (const RangesDrawSurface& rhs); |
| 25 |
|
| 26 |
struct pImpl; |
| 27 |
const std::auto_ptr<pImpl> pimpl; |
| 28 |
|
| 29 |
public: |
| 30 |
enum { |
| 31 |
DefalutPixelMagnify = 100, |
| 32 |
}; |
| 33 |
|
| 34 |
/*! |
| 35 |
\brief コンストラクタ |
| 36 |
|
| 37 |
\attention UrgCtrl::AutoCapture 相当の設定でなければならない |
| 38 |
*/ |
| 39 |
RangesDrawSurface(RangeSensorInterface& ranges, size_t width, size_t height); |
| 40 |
~RangesDrawSurface(void); |
| 41 |
|
| 42 |
void draw(std::vector<SDL_Rect>& update_rects, |
| 43 |
const SDL_Rect* pos, const SDL_Rect* area, size_t ticks); |
| 44 |
size_t getWidth(void); |
| 45 |
size_t getHeight(void); |
| 46 |
void forceSetChanged(void); |
| 47 |
bool isChanged(void); |
| 48 |
bool isTransparent(void); |
| 49 |
|
| 50 |
void update(void); |
| 51 |
|
| 52 |
// 描画のオフセットを指定 |
| 53 |
void setDrawOffset(const Position<int>& offset); |
| 54 |
|
| 55 |
// !!! 描画する色の指定 |
| 56 |
// !!! 背景色を指定 |
| 57 |
// !!! タイムスタンプ表示の文字列について、指定 |
| 58 |
// !!! 補助線を描画するか否か |
| 59 |
|
| 60 |
// 拡大率の指定 |
| 61 |
// 1000 mm あたりの pixel 数を指定する |
| 62 |
size_t setPixelMagnify(size_t pixels = DefalutPixelMagnify); |
| 63 |
}; |
| 64 |
}; |
| 65 |
}; |
| 66 |
|
| 67 |
#endif /* !RANGES_DRAW_COMPONENT_H */ |
|