QGIS API Documentation  2.11.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
QgsProviderExtentCalcEvent Class Reference

A custom event that is designed to be fired when a layer extent has been fully calculated. More...

#include <qgsproviderextentcalcevent.h>

Inheritance diagram for QgsProviderExtentCalcEvent:
Inheritance graph
[legend]

Public Member Functions

 QgsProviderExtentCalcEvent (QgsRectangle *layerExtent)
 
QgsRectanglelayerExtent () const
 
- Public Member Functions inherited from QEvent
 QEvent (Type type)
 
virtual  ~QEvent ()
 
void accept ()
 
void ignore ()
 
bool isAccepted () const
 
void setAccepted (bool accepted)
 
bool spontaneous () const
 
Type type () const
 

Additional Inherited Members

- Static Public Member Functions inherited from QEvent
int registerEventType (int hint)
 
- Properties inherited from QEvent
 accepted
 

Detailed Description

A custom event that is designed to be fired when a layer extent has been fully calculated.

Author
Brendan Morley
Date
March 2005

This custom QEvent is designed to be fired when the full extent of a layer has been calculated. It was initially included in QGIS to help the QgsPostgresProvider provide the asynchronous calculation of PostgreSQL layer extents.

Events are used instead of Qt signals/slots as events can be received asynchronously, which makes for better mutlithreading behaviour and less opportunity for programmer mishap.

Definition at line 42 of file qgsproviderextentcalcevent.h.

Constructor & Destructor Documentation

QgsProviderExtentCalcEvent::QgsProviderExtentCalcEvent ( QgsRectangle layerExtent)

Definition at line 22 of file qgsproviderextentcalcevent.cpp.

Member Function Documentation

QgsRectangle * QgsProviderExtentCalcEvent::layerExtent ( ) const

Definition at line 30 of file qgsproviderextentcalcevent.cpp.


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