Version: 9.12.0
QtxAbstractRubberBand Class Reference

Analog of class QRubberBand with possibility of creation non-rectangular contour for selection. More...

#include <QtxRubberBand.h>

Inheritance diagram for QtxAbstractRubberBand:
Inheritance graph

Public Member Functions

virtual ~QtxAbstractRubberBand ()
 Destructor. More...
 
virtual void clearGeometry ()
 
bool isClosed ()
 

Protected Member Functions

 QtxAbstractRubberBand (QWidget *)
 Constructor. More...
 
virtual void paintEvent (QPaintEvent *)
 
virtual void showEvent (QShowEvent *)
 
virtual void moveEvent (QMoveEvent *)
 
virtual void resizeEvent (QResizeEvent *)
 
virtual bool eventFilter (QObject *, QEvent *)
 
virtual void updateMask ()
 

Protected Attributes

QPolygon myPoints
 
bool myIsClosed
 

Detailed Description

Analog of class QRubberBand with possibility of creation non-rectangular contour for selection.

Currently this class does not support Style functionality in full.

Constructor & Destructor Documentation

◆ QtxAbstractRubberBand()

QtxAbstractRubberBand::QtxAbstractRubberBand ( QWidget theParent)
protected

Constructor.

Parameters
theParentparent widget

◆ ~QtxAbstractRubberBand()

QtxAbstractRubberBand::~QtxAbstractRubberBand ( )
virtual

Destructor.

Member Function Documentation

◆ clearGeometry()

void QtxAbstractRubberBand::clearGeometry ( )
virtual

Reimplemented in QtxCircleRubberBand, and QtxRectRubberBand.

References myPoints.

◆ eventFilter()

bool QtxAbstractRubberBand::eventFilter ( QObject obj,
QEvent e 
)
protectedvirtual

◆ isClosed()

bool QtxAbstractRubberBand::isClosed ( )

References myIsClosed.

◆ moveEvent()

void QtxAbstractRubberBand::moveEvent ( QMoveEvent *  )
protectedvirtual

◆ paintEvent()

void QtxAbstractRubberBand::paintEvent ( QPaintEvent *  )
protectedvirtual

References myPoints, and Plot2d::NoPen.

◆ resizeEvent()

void QtxAbstractRubberBand::resizeEvent ( QResizeEvent *  )
protectedvirtual

◆ showEvent()

void QtxAbstractRubberBand::showEvent ( QShowEvent *  theEvent)
protectedvirtual

◆ updateMask()

void QtxAbstractRubberBand::updateMask ( )
protectedvirtual

Reimplemented in QtxCircleRubberBand.

References createRegion(), isClosed(), and myPoints.

Member Data Documentation

◆ myIsClosed

bool QtxAbstractRubberBand::myIsClosed
protected

◆ myPoints

QPolygon QtxAbstractRubberBand::myPoints
protected

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