QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Types | Public Member Functions | Protected Attributes | List of all members
QgsVertexMarker Class Reference

A class for marking vertices of features using e.g. More...

#include <qgsvertexmarker.h>

Inheritance diagram for QgsVertexMarker:
Inheritance graph

Public Types

 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 More...
QRectF boundingRect () const
 default implementation for canvas items More...
virtual void updatePosition ()
 called on changed extent or resize event to update position of the item More...
- Public Member Functions inherited from QgsMapCanvasItem
Q_DECL_DEPRECATED void setPanningOffset (const QPoint &point)
 sets current offset, to be called from QgsMapCanvas More...
QgsRectangle rect () const
 returns canvas item rectangle More...
void setRect (const QgsRectangle &r)
 sets canvas item rectangle More...
QgsPoint toMapCoordinates (const QPoint &point)
 transformation from screen coordinates to map coordinates More...
QPointF toCanvasCoordinates (const QgsPoint &point)
 transformation from map coordinates to screen coordinates More...

Protected Attributes

int mIconType
 icon to be shown More...
int mIconSize
 size More...
QgsPoint mCenter
 coordinates of the point in the center More...
QColor mColor
 color of the marker More...
int mPenWidth
 pen width More...
- Protected Attributes inherited from QgsMapCanvasItem
 pointer to map canvas More...
QgsRectangle mRect
 canvas item rectangle (in map coordinates) More...
QPoint mPanningOffset
 offset from normal position due current panning operation, used when converting map coordinates to move map canvas items More...
QSizeF mItemSize
 cached size of the item (to return in boundingRect()) More...

Additional Inherited Members

- Protected Member Functions inherited from QgsMapCanvasItem
 QgsMapCanvasItem (QgsMapCanvas *mapCanvas)
 protected constructor: cannot be constructed directly More...
virtual ~QgsMapCanvasItem ()
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
 paint function called by map canvas More...
void updateCanvas ()
 schedules map canvas for repaint More...
bool setRenderContextVariables (QPainter *p, QgsRenderContext &context) const
 Sets render context parameters. More...

Detailed Description

A class for marking vertices of features using e.g.

circles or 'x'.

Constructor & Destructor Documentation

QgsVertexMarker::QgsVertexMarker ( QgsMapCanvas mapCanvas)

Member Function Documentation

QRectF QgsVertexMarker::boundingRect ( ) const

default implementation for canvas items

Reimplemented from QgsMapCanvasItem.

void QgsVertexMarker::paint ( QPainter *  painter)

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)
void QgsVertexMarker::updatePosition ( )

called on changed extent or resize event to update position of the item

Reimplemented from QgsMapCanvasItem.

Member Data Documentation

QgsPoint QgsVertexMarker::mCenter

coordinates of the point in the center

QColor QgsVertexMarker::mColor

color of the marker

int QgsVertexMarker::mIconSize


int QgsVertexMarker::mIconType

icon to be shown

int QgsVertexMarker::mPenWidth

pen width

The documentation for this class was generated from the following files: