|
QGIS API Documentation
2.6.0-Brighton
|
A class for marking vertices of features using e.g. More...
#include <qgsvertexmarker.h>

Public Types | |
| enum | IconType { ICON_NONE, ICON_CROSS, ICON_X, ICON_BOX } |
| Icons. More... | |
Public Member Functions | |
| QgsVertexMarker (QgsMapCanvas *mapCanvas) | |
| void | setCenter (const QgsPoint &point) |
| void | setIconType (int iconType) |
| void | setIconSize (int iconSize) |
| void | setColor (const QColor &color) |
| void | setPenWidth (int width) |
| void | paint (QPainter *p) |
| function to be implemented by derived classes | |
| QRectF | boundingRect () const |
| default implementation for canvas items | |
| virtual void | updatePosition () |
| called on changed extent or resize event to update position of the item | |
Public Member Functions inherited from QgsMapCanvasItem | |
| Q_DECL_DEPRECATED void | setPanningOffset (const QPoint &point) |
| sets current offset, to be called from QgsMapCanvas | |
| QgsRectangle | rect () const |
| returns canvas item rectangle | |
| void | setRect (const QgsRectangle &r) |
| sets canvas item rectangle | |
| QgsPoint | toMapCoordinates (const QPoint &point) |
| transformation from screen coordinates to map coordinates | |
| QPointF | toCanvasCoordinates (const QgsPoint &point) |
| transformation from map coordinates to screen coordinates | |
Protected Attributes | |
| int | mIconType |
| icon to be shown | |
| int | mIconSize |
| size | |
| QgsPoint | mCenter |
| coordinates of the point in the center | |
| QColor | mColor |
| color of the marker | |
| int | mPenWidth |
| pen width | |
Protected Attributes inherited from QgsMapCanvasItem | |
| QgsMapCanvas * | mMapCanvas |
| pointer to map canvas | |
| QgsRectangle | mRect |
| canvas item rectangle (in map coordinates) | |
| QPoint | mPanningOffset |
| offset from normal position due current panning operation, used when converting map coordinates to move map canvas items | |
| QSizeF | mItemSize |
| cached size of the item (to return in boundingRect()) | |
Additional Inherited Members | |
Protected Member Functions inherited from QgsMapCanvasItem | |
| QgsMapCanvasItem (QgsMapCanvas *mapCanvas) | |
| protected constructor: cannot be constructed directly | |
| virtual | ~QgsMapCanvasItem () |
| virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) |
| paint function called by map canvas | |
| void | updateCanvas () |
| schedules map canvas for repaint | |
| bool | setRenderContextVariables (QPainter *p, QgsRenderContext &context) const |
| Sets render context parameters. | |
A class for marking vertices of features using e.g.
circles or 'x'.
| QgsVertexMarker::QgsVertexMarker | ( | QgsMapCanvas * | mapCanvas | ) |
|
virtual |
default implementation for canvas items
Reimplemented from QgsMapCanvasItem.
|
virtual |
function to be implemented by derived classes
Implements QgsMapCanvasItem.
| void QgsVertexMarker::setCenter | ( | const QgsPoint & | point | ) |
| void QgsVertexMarker::setColor | ( | const QColor & | color | ) |
| void QgsVertexMarker::setIconSize | ( | int | iconSize | ) |
| void QgsVertexMarker::setIconType | ( | int | iconType | ) |
| void QgsVertexMarker::setPenWidth | ( | int | width | ) |
|
virtual |
called on changed extent or resize event to update position of the item
Reimplemented from QgsMapCanvasItem.
|
protected |
coordinates of the point in the center
|
protected |
color of the marker
|
protected |
size
|
protected |
icon to be shown
|
protected |
pen width
1.8.1.2