Updraft  1.0
Open source glider flight visualisation tool.
assignedarea.h
Go to the documentation of this file.
00001 #ifndef UPDRAFT_SRC_PLUGINS_TASKDECL_ASSIGNEDAREA_H_
00002 #define UPDRAFT_SRC_PLUGINS_TASKDECL_ASSIGNEDAREA_H_
00003 
00004 #include <QtGlobal>
00005 
00006 namespace Updraft {
00007 
00011 struct AssignedArea {
00013   bool isCylinder() {
00014     return
00015       areaShape == SECTOR &&
00016       minRadius == 0 &&
00017       innerAngle == 0 &&
00018       outerAngle == 180;
00019   }
00020 
00026   enum AreaShape {
00027     LINE,
00028     SECTOR
00029   };
00030 
00033   enum Direction {
00034     FIXED,
00035     SYMMETRICAL,
00036     TO_NEXT_POINT,
00037     TO_PREVIOUS_POINT,
00038     TO_START_POINT
00039   };
00040 
00042   AreaShape areaShape;
00043 
00045   Direction direction;
00046 
00049   qreal maxRadius;
00050 
00053   qreal minRadius;
00054 
00057   qreal outerAngle;
00058 
00061   qreal innerAngle;
00062 
00064   qreal fixedAngle;
00065 
00067   AssignedArea() : areaShape(SECTOR), direction(SYMMETRICAL), maxRadius(0.5),
00068     minRadius(0.0), outerAngle(180.0), innerAngle(0.0), fixedAngle(0.0) { }
00069 };
00070 
00071 }  // End namespace Updraft
00072 
00073 #endif  // UPDRAFT_SRC_PLUGINS_TASKDECL_ASSIGNEDAREA_H_
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines