Updraft  1.0
Open source glider flight visualisation tool.
tpmapobject.h
Go to the documentation of this file.
00001 #ifndef UPDRAFT_SRC_PLUGINS_TURNPOINTS_TPMAPOBJECT_H_
00002 #define UPDRAFT_SRC_PLUGINS_TURNPOINTS_TPMAPOBJECT_H_
00003 
00004 #include "mapobject.h"
00005 #include "turnpoint.h"
00006 
00007 namespace Updraft {
00008 
00010 class TPMapObject : public MapObject {
00011  public:
00012   explicit TPMapObject(const TurnPoint* tp)
00013   : MapObject(tp->name), turnPoint(tp) {}
00014 
00015   // Use this method for comparing class name.
00016   // \return Name of this class.
00017   static QString getClassName() { return "TPMapObject"; }
00018 
00019   QString getObjectTypeName() { return getClassName(); }
00020 
00021   const TurnPoint* turnPoint;
00022 };
00023 
00024 }  // End namespace Updraft
00025 
00026 #endif  // UPDRAFT_SRC_PLUGINS_TURNPOINTS_TPMAPOBJECT_H_
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines