#include <map_layer.h>


Public メソッド | |
| GridMapLayer (const QString &name, bool visible=true, qreal opacity=1.0, const QRectF &extent=QRectF(0.0, 0.0, 0.0, 0.0)) | |
| コンストラクタ | |
| QRectF | boundingRect () const |
| QGraphicsItemの仮想関数。このオブジェクトの存在範囲を返す。 QGraphicsViewから呼ばれるため画像座標での値を返す。 この基底クラスでは,デフォルト実装として,extentの値を 地図座標系から画像座標系に変換して返す。 | |
| virtual | ~GridMapLayer () |
| デストラクタ。 | |
| void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
| 自身を描画する。 | |
| void | setPixmap (const QPixmap &pixmap) |
| GridMapのデータをpixmapとして登録する | |
| void | setGridInfo (const QPointF &origin, const QRectF &grid_area, qreal theta) |
| gridの座標情報を設定する | |
Private 変数 | |
| QPixmap | pixmap_ |
| QPointF | origin_ |
| QRectF | grid_area_ |
| qreal | theta_ |
| qreal | rmax_ |
| GridMapLayer::GridMapLayer | ( | const QString & | name, | |
| bool | visible = true, |
|||
| qreal | opacity = 1.0, |
|||
| const QRectF & | extent = QRectF(0.0, 0.0, 0.0, 0.0) | |||
| ) |
コンストラクタ
| [in] | name | レイヤ名 |
| [in] | visible | 可視/不可視のフラグ |
| [in] | opacity | 不透明度 |
| [in] | extent | 地図存在範囲 |
| virtual GridMapLayer::~GridMapLayer | ( | ) | [inline, virtual] |
デストラクタ。
| QRectF GridMapLayer::boundingRect | ( | ) | const [virtual] |
QGraphicsItemの仮想関数。このオブジェクトの存在範囲を返す。 QGraphicsViewから呼ばれるため画像座標での値を返す。 この基底クラスでは,デフォルト実装として,extentの値を 地図座標系から画像座標系に変換して返す。
MapLayerを再定義しています。
| void GridMapLayer::paint | ( | QPainter * | painter, | |
| const QStyleOptionGraphicsItem * | option, | |||
| QWidget * | widget | |||
| ) | [virtual] |
| void GridMapLayer::setPixmap | ( | const QPixmap & | pixmap | ) |
GridMapのデータをpixmapとして登録する
| [in] | pixmap | 描画データとなるpixmap |
| void GridMapLayer::setGridInfo | ( | const QPointF & | origin, | |
| const QRectF & | grid_area, | |||
| qreal | theta | |||
| ) |
gridの座標情報を設定する
| [in] | origin | ローカル(self)座標の原点がワールドのどこに有るか |
| [in] | grid_area | ローカル座標系でのグリッドの存在範囲 |
| [in] | theta | ローカル座標系のワールドに対する回転角度(rad) |
QPixmap GridMapLayer::pixmap_ [private] |
QPointF GridMapLayer::origin_ [private] |
QRectF GridMapLayer::grid_area_ [private] |
qreal GridMapLayer::theta_ [private] |
qreal GridMapLayer::rmax_ [private] |
1.5.5