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

Top leve object of IGC viewer plugin. More...

#include <igcviewer.h>

Inheritance diagram for Updraft::IgcViewer::IgcViewer:
Collaboration diagram for Updraft::IgcViewer::IgcViewer:

List of all members.

Public Member Functions

QString getName ()
 Plugin metadata.
void initialize (CoreInterface *coreInterface)
 Called after the plugin is loaded.
void deinitialize ()
 Called before the plugin is unloaded.
bool fileOpen (const QString &filename, int roleId)
 Callback to open a file.
void fileIdentification (QStringList *roles, QString *importDirectory, const QString &filename)
bool wantsToHandleClick (MapObject *obj)
 Tells whether this plugin wants to handle a mouse click event.
void handleClick (MapObject *obj, const EventInfo *evt)
 Handles the left mouse click event on the IGC in the map.

Private Slots

void coloringChanged (int i)
 One of the opened files changed its coloring.

Private Member Functions

void fileClose (OpenedFile *f)
 Remove the opened file from the lists and notify recalculate all scales.
QColor findAutomaticColor ()
 Finds a least used automatic color and increments its use count.
void freeAutomaticColor (QColor c)
 Decrement use count for the given automatic color.

Private Attributes

int currentColoring
 Currently selected coloring.
QList< QPair< QColor, int > > automaticColors
QMap< QString, OpenedFile * > opened
MapLayerGroupInterfacemapLayerGroup
QVector< MapObject * > mapObjects

Friends

class OpenedFile

Detailed Description

Top leve object of IGC viewer plugin.


Member Function Documentation

void Updraft::IgcViewer::IgcViewer::coloringChanged ( int  i) [private, slot]

One of the opened files changed its coloring.

propagate this change to all of them.

Called before the plugin is unloaded.

Implements Updraft::PluginBase.

Remove the opened file from the lists and notify recalculate all scales.

void Updraft::IgcViewer::IgcViewer::fileIdentification ( QStringList *  roles,
QString *  importDirectory,
const QString &  filename 
)
bool Updraft::IgcViewer::IgcViewer::fileOpen ( const QString &  filename,
int  roleId 
) [virtual]

Callback to open a file.

Returns:
Was opening successful?
Parameters:
filenamefull path to a file
roleIdidentification of role being opened

Reimplemented from Updraft::PluginBase.

Finds a least used automatic color and increments its use count.

Decrement use count for the given automatic color.

Plugin metadata.

Implements Updraft::PluginBase.

void Updraft::IgcViewer::IgcViewer::handleClick ( MapObject obj,
const EventInfo evt 
) [virtual]

Handles the left mouse click event on the IGC in the map.

Reimplemented from Updraft::PluginBase.

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

Called after the plugin is loaded.

Parameters:
coreInterfacepointer to assigned CoreInterface Plugin should store this value in g_core.

Implements Updraft::PluginBase.

Tells whether this plugin wants to handle a mouse click event.

Reimplemented from Updraft::PluginBase.


Friends And Related Function Documentation

friend class OpenedFile [friend]

Member Data Documentation

QList<QPair<QColor, int> > Updraft::IgcViewer::IgcViewer::automaticColors [private]

Currently selected coloring.


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