QGIS API Documentation 4.3.0-Master (026d9cd75d1)
Loading...
Searching...
No Matches
QgsRubberBandPreviewItem Class Referenceabstract

Abstract interface for rendering custom preview overlays attached to a QgsRubberBand. More...

#include <qgsrubberband.h>

Public Member Functions

virtual ~QgsRubberBandPreviewItem ()=default
virtual void render (QgsRenderContext &context)=0
 Renders the custom preview overlay using the specified render context.
QgsRubberBandrubberBand ()
 Returns the rubber band associated with the item.

Protected Member Functions

 QgsRubberBandPreviewItem (QgsRubberBand *rubberBand)
 Constructor for a QgsRubberBandPreviewItem, attached to the specified rubberBand.

Detailed Description

Abstract interface for rendering custom preview overlays attached to a QgsRubberBand.

Since
QGIS 4.4

Definition at line 53 of file qgsrubberband.h.

Constructor & Destructor Documentation

◆ ~QgsRubberBandPreviewItem()

virtual QgsRubberBandPreviewItem::~QgsRubberBandPreviewItem ( )
virtualdefault

◆ QgsRubberBandPreviewItem()

QgsRubberBandPreviewItem::QgsRubberBandPreviewItem ( QgsRubberBand * rubberBand)
protected

Constructor for a QgsRubberBandPreviewItem, attached to the specified rubberBand.

Definition at line 823 of file qgsrubberband.cpp.

Member Function Documentation

◆ render()

virtual void QgsRubberBandPreviewItem::render ( QgsRenderContext & context)
pure virtual

Renders the custom preview overlay using the specified render context.

◆ rubberBand()

QgsRubberBand * QgsRubberBandPreviewItem::rubberBand ( )

Returns the rubber band associated with the item.

Definition at line 827 of file qgsrubberband.cpp.


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