#include <map_layer.h>


Public メソッド | |
| VectorMapLayer (const QString &name, bool visible=true, qreal opacity=1.0, const QRectF &extent=QRectF(0.0, 0.0, 0.0, 0.0)) | |
| コンストラクタ | |
| virtual | ~VectorMapLayer () |
| デストラクタ。 | |
| void | setPen (int id, const QPen &pen) |
| id番のペンデータを設定 | |
| void | setPath (int id, const QVector< QPointF > &pathdata) |
| id番の点列データを設定 | |
| void | clearPath (int id) |
| id番のパスデータをクリア | |
| void | clearPen (int id) |
| id番のペンデータをクリア。ペンをクリアするとデフォルトが使用される | |
| void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
| 自身を描画する。設定されたパスを全て描画する。 | |
Protected メソッド | |
| void | updateExtent () |
| 自身の地図上での存在範囲を更新する。pathの設定更新時に呼ばれる | |
Private 変数 | |
| QMap< int, QPen > | pens_ |
| 描画用penデータ | |
| QMap< int, QPolygonF > | paths_ |
| 描画用pathデータ | |
点列データとペンデータはid番号で管理され,複数持つことも出来る
| VectorMapLayer::VectorMapLayer | ( | 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 VectorMapLayer::~VectorMapLayer | ( | ) | [inline, virtual] |
デストラクタ。
| void VectorMapLayer::setPen | ( | int | id, | |
| const QPen & | pen | |||
| ) |
id番のペンデータを設定
| void VectorMapLayer::setPath | ( | int | id, | |
| const QVector< QPointF > & | pathdata | |||
| ) |
id番の点列データを設定
| void VectorMapLayer::clearPath | ( | int | id | ) |
id番のパスデータをクリア
| void VectorMapLayer::clearPen | ( | int | id | ) |
id番のペンデータをクリア。ペンをクリアするとデフォルトが使用される
| void VectorMapLayer::paint | ( | QPainter * | painter, | |
| const QStyleOptionGraphicsItem * | option, | |||
| QWidget * | widget | |||
| ) | [virtual] |
| void VectorMapLayer::updateExtent | ( | ) | [protected] |
自身の地図上での存在範囲を更新する。pathの設定更新時に呼ばれる
QMap<int, QPen> VectorMapLayer::pens_ [private] |
描画用penデータ
QMap<int, QPolygonF> VectorMapLayer::paths_ [private] |
描画用pathデータ
1.5.5