Updraft
1.0
Open source glider flight visualisation tool.
|
Class storing a task layer. More...
#include <tasklayer.h>
Public Slots | |
void | mapLayerDisplayed (bool value, MapLayerInterface *sender) |
void | tryCloseLayer () |
Slot that gets called when the layer is about to close. | |
void | tabSelected () |
Slot that should be called when the layer's tab is selected. | |
void | tabDeselected () |
Slot that should be called when the layer's tab is selected. | |
void | taskDataChanged () |
Slot catching signal on task update. It updates osg scene. | |
void | taskStorageStateChanged () |
Slot catching signal on task storage state change. | |
Public Member Functions | |
TaskLayer (bool displayed_, TaskDeclaration *plugin_, TaskFile *file_, int _newTaskIndex) | |
virtual | ~TaskLayer () |
osg::Node * | getNode () const |
bool | isDisplayed () |
void | display (bool displayed_) |
Changes display state. | |
QString | getTitle () const |
Creates layer title with respect to file existence and save flag (star). | |
TaskFile::StorageState | getStorageState () const |
int | getNewTaskIndex () const |
TaskFile * | getTaskFile () |
TaskDeclPanel * | getTaskDeclPanel () |
bool | isTabSelected () |
void | newTaskPoint (const TurnPoint *tp) |
Creates a new task point from a turn-point. | |
void | newTaskPoint (const Util::Location &loc) |
Creates a new task point on the map. | |
bool | save () |
Saves file. | |
void | undo () |
Moves forward in file history. | |
void | redo () |
Moves back in file history. | |
bool | saveAs () |
Invokes save as dialog and saves file. | |
Private Member Functions | |
void | DrawLines (osg::Geode *geode) |
Draws task lines. | |
Private Attributes | |
TaskDeclaration * | plugin |
TaskDeclaration plugin. | |
Updraft::MapLayerInterface * | mapLayer |
MapLayer object associated with task. | |
osg::Group * | group |
osg Node representing this task layer | |
TabInterface * | tab |
Tab in bottom pane. | |
TaskFile * | file |
Task data object. | |
TaskDeclPanel * | panel |
Task GUI panel. | |
bool | displayed |
Display state of task graphics. | |
bool | tabSelectedState |
Selection state of the task's GUI tab. | |
int | newTaskIndex |
Number which is displayed in title of new task. |
Class storing a task layer.
Updraft::TaskLayer::TaskLayer | ( | bool | displayed_, |
TaskDeclaration * | plugin_, | ||
TaskFile * | file_, | ||
int | _newTaskIndex | ||
) |
Updraft::TaskLayer::~TaskLayer | ( | ) | [virtual] |
void Updraft::TaskLayer::display | ( | bool | displayed_ | ) |
Changes display state.
displayed_ | new value of a display state |
void Updraft::TaskLayer::DrawLines | ( | osg::Geode * | geode | ) | [private] |
Draws task lines.
geode | target geode object. Lines are added as drawables into geode. |
int Updraft::TaskLayer::getNewTaskIndex | ( | ) | const |
osg::Node * Updraft::TaskLayer::getNode | ( | ) | const |
QString Updraft::TaskLayer::getTitle | ( | ) | const |
Creates layer title with respect to file existence and save flag (star).
bool Updraft::TaskLayer::isDisplayed | ( | ) |
bool Updraft::TaskLayer::isTabSelected | ( | ) |
void Updraft::TaskLayer::mapLayerDisplayed | ( | bool | value, |
MapLayerInterface * | sender | ||
) | [slot] |
void Updraft::TaskLayer::newTaskPoint | ( | const TurnPoint * | tp | ) |
Creates a new task point from a turn-point.
void Updraft::TaskLayer::newTaskPoint | ( | const Util::Location & | loc | ) |
Creates a new task point on the map.
void Updraft::TaskLayer::redo | ( | ) |
Moves back in file history.
bool Updraft::TaskLayer::save | ( | ) |
Saves file.
If the path is not set, file dialog is invoked.
bool Updraft::TaskLayer::saveAs | ( | ) |
Invokes save as dialog and saves file.
void Updraft::TaskLayer::tabDeselected | ( | ) | [slot] |
Slot that should be called when the layer's tab is selected.
void Updraft::TaskLayer::tabSelected | ( | ) | [slot] |
Slot that should be called when the layer's tab is selected.
void Updraft::TaskLayer::taskDataChanged | ( | ) | [slot] |
Slot catching signal on task update. It updates osg scene.
void Updraft::TaskLayer::taskStorageStateChanged | ( | ) | [slot] |
Slot catching signal on task storage state change.
It updates label in both bottom tab and left pane.
void Updraft::TaskLayer::tryCloseLayer | ( | ) | [slot] |
Slot that gets called when the layer is about to close.
void Updraft::TaskLayer::undo | ( | ) |
Moves forward in file history.
bool Updraft::TaskLayer::displayed [private] |
Display state of task graphics.
TaskFile* Updraft::TaskLayer::file [private] |
Task data object.
osg::Group* Updraft::TaskLayer::group [private] |
osg Node representing this task layer
MapLayer object associated with task.
int Updraft::TaskLayer::newTaskIndex [private] |
Number which is displayed in title of new task.
TaskDeclPanel* Updraft::TaskLayer::panel [private] |
Task GUI panel.
TaskDeclaration* Updraft::TaskLayer::plugin [private] |
TaskDeclaration plugin.
TabInterface* Updraft::TaskLayer::tab [private] |
Tab in bottom pane.
bool Updraft::TaskLayer::tabSelectedState [private] |
Selection state of the task's GUI tab.