mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
35 lines
509 B
Plaintext
35 lines
509 B
Plaintext
|
|
||
|
class QgsVertexMarker : QgsMapCanvasItem
|
||
|
{
|
||
|
%TypeHeaderCode
|
||
|
#include <qgsvertexmarker.h>
|
||
|
%End
|
||
|
|
||
|
public:
|
||
|
|
||
|
//! Icons
|
||
|
enum IconType
|
||
|
{
|
||
|
ICON_NONE,
|
||
|
ICON_CROSS,
|
||
|
ICON_X,
|
||
|
ICON_BOX
|
||
|
};
|
||
|
|
||
|
QgsVertexMarker(QgsMapCanvas* mapCanvas);
|
||
|
|
||
|
void setCenter(const QgsPoint& point);
|
||
|
|
||
|
void setIconType(int iconType);
|
||
|
|
||
|
void setIconSize(int iconSize);
|
||
|
|
||
|
void paint(QPainter* p);
|
||
|
|
||
|
QRectF boundingRect() const;
|
||
|
|
||
|
virtual void updatePosition();
|
||
|
|
||
|
};
|
||
|
|