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

Turning point in a task. More...

#include <taskpoint.h>

Collaboration diagram for Updraft::TaskPoint:

List of all members.

Public Member Functions

 TaskPoint ()
 TaskPoint (const QDomElement &elem)
 Creates TaskPoint from DOM element.
void toDom (QDomDocument *doc, QDomElement *taskPointElem) const
 Stores TaskPoint to DOM element.
QString getCode () const
QString getName () const
const Util::LocationgetLocation () const
const AssignedAreagetAssignedArea () const
void setTP (const TurnPoint *tp)
 Gathers data from a TurnPoint and store them in the TaskPoint.
void setLocation (const Util::Location &location_)
 Sets the new location. Deletes information about assigned TurnPoint.
void setName (const QString &name_)
 Sets the new name for this task point.
void setAssignedArea (const AssignedArea &assignedArea_)
 Sets shape of the assigned area.

Private Attributes

QString code
 Code identifying the assigned TurnPoint.
QString name
 Name of the assigned TurnPoint.
Util::Location location
 Geographical location of the task point.
AssignedArea area
 structure defining shape of the assigned area.

Detailed Description

Turning point in a task.


Constructor & Destructor Documentation

Updraft::TaskPoint::TaskPoint ( const QDomElement &  elem) [explicit]

Creates TaskPoint from DOM element.


Member Function Documentation

Returns:
AssignedArea of the task point
QString Updraft::TaskPoint::getCode ( ) const
Returns:
Code of TaskPoint or empty string if it doesn't exist
Returns:
Geographical location of the task point
QString Updraft::TaskPoint::getName ( ) const
Returns:
Name of TaskPoint or empty string if it doesn't exist
void Updraft::TaskPoint::setAssignedArea ( const AssignedArea assignedArea_)

Sets shape of the assigned area.

void Updraft::TaskPoint::setLocation ( const Util::Location location_)

Sets the new location. Deletes information about assigned TurnPoint.

void Updraft::TaskPoint::setName ( const QString &  name_)

Sets the new name for this task point.

void Updraft::TaskPoint::setTP ( const TurnPoint tp)

Gathers data from a TurnPoint and store them in the TaskPoint.

void Updraft::TaskPoint::toDom ( QDomDocument *  doc,
QDomElement *  taskPointElem 
) const

Stores TaskPoint to DOM element.

Parameters:
docpointer to DOM element representing document.
taskPointElempointer to DOM element representing TaskPoint.

Member Data Documentation

structure defining shape of the assigned area.

QString Updraft::TaskPoint::code [private]

Code identifying the assigned TurnPoint.

Geographical location of the task point.

QString Updraft::TaskPoint::name [private]

Name of the assigned TurnPoint.


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