Updraft
1.0
Open source glider flight visualisation tool.
|
Helper class representing a single opened IGC file. More...
#include <openedfile.h>
Public Slots | |
void | fixPicked (int index) |
A slot waiting for the signal from the PlotWidget. | |
void | fixIsPointedAt (int index) |
A slot waiting for the signal from the PlotWidget. | |
void | clearMarkers () |
It clears the markers on the track. | |
Public Member Functions | |
~OpenedFile () | |
Destructor. | |
bool | init (IgcViewer *viewer, const QString &filename, QColor color) |
Open the file with the given filename. | |
void | redraw () |
Force redraw of everything. | |
void | resetScales () |
Reset the global scales. | |
void | updateScales (const OpenedFile *other) |
Update the global scales based on the other opened file. | |
QColor | getAutomaticColor () |
void | selectTab () |
QString | fileName () |
Return the absolute file name. | |
void | coloringChanged () |
Set colors of the track according to the value selected in the viewer. | |
osg::Node * | getNode () |
void | trackClicked (const EventInfo *eventInfo) |
If the track is clicked, it computes the nearest fix to the click point, and places a marker on that fix. | |
Private Slots | |
void | close () |
Slot that gets called when the tab associated with this file is closed. | |
Private Member Functions | |
bool | loadIgc (const QString &filename) |
Load the igc file to our own representation and close it. | |
void | createGroup () |
Create whole track in map. | |
osg::Node * | createTrack () |
Create the track geometry in map. | |
osg::Node * | createSkirt () |
Create the skirt under the track. | |
void | setColors (Coloring *coloring) |
Set coloring of the track. | |
osg::Geode * | createMarker (qreal scale) |
Private Attributes | |
QFileInfo | fileInfo |
QComboBox * | colorsCombo |
IgcTextWidget * | textBox |
PlotWidget * | plotWidget |
TabInterface * | tab |
MapLayerInterface * | track |
IgcViewer * | viewer |
QColor | automaticColor |
osg::Geometry * | geom |
Geometry of the 3D track visualisation. | |
osg::Group * | sceneRoot |
osg::Geode * | trackGeode |
osg::ref_ptr< osg::Geode > | trackPositionMarker |
The geometry of the track marker. | |
QList< osg::AutoTransform * > | pickedMarkers |
The transformations plus the geometry of the markers on picked fix positions. | |
osg::AutoTransform * | currentMarker |
The transformation plus the marker of the fix the user is currently pointing at in the graph widget. | |
Coloring * | currentColoring |
QList< TrackFix > | fixList |
List of track points. | |
QList< Coloring * > | colorings |
QList< FixInfo * > | fixInfo |
This variable contains all available igc infos accessible for mass rescaling / deleting / whatever. | |
FixInfo * | altitudeInfo |
FixInfo * | verticalSpeedInfo |
FixInfo * | groundSpeedInfo |
FixInfo * | timeInfo |
Util::Gradient | gradient |
Helper class representing a single opened IGC file.
Destructor.
Also removes the file from the list of opened files in IgcViewer.
void Updraft::IgcViewer::OpenedFile::clearMarkers | ( | ) | [slot] |
It clears the markers on the track.
void Updraft::IgcViewer::OpenedFile::close | ( | void | ) | [private, slot] |
Slot that gets called when the tab associated with this file is closed.
Deletes the opened file.
Set colors of the track according to the value selected in the viewer.
void Updraft::IgcViewer::OpenedFile::createGroup | ( | ) | [private] |
Create whole track in map.
osg::Geode * Updraft::IgcViewer::OpenedFile::createMarker | ( | qreal | scale | ) | [private] |
osg::Node * Updraft::IgcViewer::OpenedFile::createSkirt | ( | ) | [private] |
Create the skirt under the track.
osg::Node * Updraft::IgcViewer::OpenedFile::createTrack | ( | ) | [private] |
Create the track geometry in map.
QString Updraft::IgcViewer::OpenedFile::fileName | ( | ) |
Return the absolute file name.
void Updraft::IgcViewer::OpenedFile::fixIsPointedAt | ( | int | index | ) | [slot] |
A slot waiting for the signal from the PlotWidget.
It sets the position of the marker of the current fix the user is pointing at with mouse.
void Updraft::IgcViewer::OpenedFile::fixPicked | ( | int | index | ) | [slot] |
A slot waiting for the signal from the PlotWidget.
It creates a new the marker for the picked fix, and places it at the position of the fix.
QColor Updraft::IgcViewer::OpenedFile::getAutomaticColor | ( | ) | [inline] |
osg::Node * Updraft::IgcViewer::OpenedFile::getNode | ( | ) |
bool Updraft::IgcViewer::OpenedFile::init | ( | IgcViewer * | viewer, |
const QString & | filename, | ||
QColor | color | ||
) |
Open the file with the given filename.
viewer | The parent IgcViewer object |
filename | The name of the file which should be opened |
color | Color used for automatic coloring. |
bool Updraft::IgcViewer::OpenedFile::loadIgc | ( | const QString & | filename | ) | [private] |
Load the igc file to our own representation and close it.
Fills fixList.
Force redraw of everything.
Reset the global scales.
void Updraft::IgcViewer::OpenedFile::setColors | ( | Coloring * | coloring | ) | [private] |
Set coloring of the track.
void Updraft::IgcViewer::OpenedFile::trackClicked | ( | const EventInfo * | eventInfo | ) |
If the track is clicked, it computes the nearest fix to the click point, and places a marker on that fix.
Afterwards, it emits a signal with the fix-index.
void Updraft::IgcViewer::OpenedFile::updateScales | ( | const OpenedFile * | other | ) |
Update the global scales based on the other opened file.
QColor Updraft::IgcViewer::OpenedFile::automaticColor [private] |
QList<Coloring*> Updraft::IgcViewer::OpenedFile::colorings [private] |
QComboBox* Updraft::IgcViewer::OpenedFile::colorsCombo [private] |
osg::AutoTransform* Updraft::IgcViewer::OpenedFile::currentMarker [private] |
The transformation plus the marker of the fix the user is currently pointing at in the graph widget.
Mouse pointing on the track is not implemented.
QFileInfo Updraft::IgcViewer::OpenedFile::fileInfo [private] |
QList<FixInfo*> Updraft::IgcViewer::OpenedFile::fixInfo [private] |
This variable contains all available igc infos accessible for mass rescaling / deleting / whatever.
There are separate variables for named access to specific info classes.
QList<TrackFix> Updraft::IgcViewer::OpenedFile::fixList [private] |
List of track points.
osg::Geometry* Updraft::IgcViewer::OpenedFile::geom [private] |
Geometry of the 3D track visualisation.
Used for coloring.
QList<osg::AutoTransform*> Updraft::IgcViewer::OpenedFile::pickedMarkers [private] |
The transformations plus the geometry of the markers on picked fix positions.
osg::Group* Updraft::IgcViewer::OpenedFile::sceneRoot [private] |
TabInterface* Updraft::IgcViewer::OpenedFile::tab [private] |
FixInfo* Updraft::IgcViewer::OpenedFile::timeInfo [private] |
osg::Geode* Updraft::IgcViewer::OpenedFile::trackGeode [private] |
osg::ref_ptr<osg::Geode> Updraft::IgcViewer::OpenedFile::trackPositionMarker [private] |
The geometry of the track marker.
IgcViewer* Updraft::IgcViewer::OpenedFile::viewer [private] |