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

Polygon class describes one polygon. More...

#include <geometry.h>

Inheritance diagram for OpenAirspace::Polygon:
Collaboration diagram for OpenAirspace::Polygon:

List of all members.

Public Member Functions

 Polygon ()
 Default constructor.
 Polygon (const Position &C_, const double &z_)
 Constructor.
const PositionCentre () const
const GType GetGType () const
 ~Polygon ()
 Destructor.

Private Attributes

Positioncentre
 Centre of the polygon.
double zoom
 Zoom level the element is visible.
bool valid
 Validity flag.

Detailed Description

Polygon class describes one polygon.


Constructor & Destructor Documentation

Default constructor.

OpenAirspace::Polygon::Polygon ( const Position C_,
const double &  z_ 
)

Constructor.

Parameters:
C_The position to be copied.
z_The zoom level the element is visible.

Member Function Documentation

const Position& OpenAirspace::Polygon::Centre ( ) const [inline, virtual]
Returns:
The Centre of the polygon.

Implements OpenAirspace::Geometry.

const GType OpenAirspace::Polygon::GetGType ( ) const [inline, virtual]
Returns:
The type of the polygon.

Implements OpenAirspace::Geometry.


Member Data Documentation

Centre of the polygon.

Validity flag.

double OpenAirspace::Polygon::zoom [private]

Zoom level the element is visible.


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