Updraft  1.0
Open source glider flight visualisation tool.
Updraft::Airspaces::Airspaces Class Reference

Top level object of airspaces plugin. More...

#include <airspaces.h>

Inheritance diagram for Updraft::Airspaces::Airspaces:
Collaboration diagram for Updraft::Airspaces::Airspaces:

List of all members.

Public Slots

void mapLayerDisplayed (bool value, MapLayerInterface *sender)
 Changes the visibility of the plug-in.
void reloadAirspaces ()
 Reloads the airspaces.
void contextMenuRequested (QPoint pos, MapLayerInterface *sender)
 Context menu setup.

Public Member Functions

 Airspaces ()
 The class constructor.
QString getName ()
void initialize (CoreInterface *coreInterface)
 Plug-in initialisation routine.
void deinitialize ()
 Plug-in unlouad.
bool fileOpen (const QString &fileName, int role)
 Open File routine.
void loadImportedFiles ()
 Loads allt he files imported to the application.

Private Types

enum  FileRole { IMPORT_OPENAIRSPACE_FILE = 0 }

Private Attributes

FileRegistration OAirspaceFileReg
 Registration for loading Airspaces from OpenAirspace file.
QVector< QPair< osg::Node
*, QString > > * 
mapNodes
 Map nodes.
MapLayerGroupInterfacemapLayerGroup
 Map layers.

Detailed Description

Top level object of airspaces plugin.


Member Enumeration Documentation

Enumerator:
IMPORT_OPENAIRSPACE_FILE 

Constructor & Destructor Documentation

The class constructor.


Member Function Documentation

void Updraft::Airspaces::Airspaces::contextMenuRequested ( QPoint  pos,
MapLayerInterface sender 
) [slot]

Context menu setup.

Plug-in unlouad.

Implements Updraft::PluginBase.

bool Updraft::Airspaces::Airspaces::fileOpen ( const QString &  fileName,
int  role 
) [virtual]

Open File routine.

Processes the imported file according to the file type calls the correct drawing engine.

Parameters:
fileNameThe filename.
roleThe file type.

Reimplemented from Updraft::PluginBase.

Returns:
The plug-in name.

Implements Updraft::PluginBase.

void Updraft::Airspaces::Airspaces::initialize ( CoreInterface coreInterface) [virtual]

Plug-in initialisation routine.

Parameters:
coreInterfaceThe pointer to the Core.

Implements Updraft::PluginBase.

Loads allt he files imported to the application.

void Updraft::Airspaces::Airspaces::mapLayerDisplayed ( bool  value,
MapLayerInterface sender 
) [slot]

Changes the visibility of the plug-in.

Reloads the airspaces.


Member Data Documentation

QVector<QPair<osg::Node*, QString> >* Updraft::Airspaces::Airspaces::mapNodes [private]

Map nodes.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines