57 lines
1.2 KiB
C++
Executable File
57 lines
1.2 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* Interface of Polyline
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "abstract_multi_point_map_object.h"
|
|
|
|
//----------------------------------------------------------------------------
|
|
namespace SituationMap
|
|
{
|
|
|
|
/**
|
|
* @brief The Polyline class supports polylines.
|
|
*/
|
|
class Polyline : public virtual AbstractMultiPointMapObject
|
|
{
|
|
|
|
using BaseClass = AbstractMultiPointMapObject;
|
|
|
|
public:
|
|
|
|
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
* Don't use "= default" because of bug in VS2015 JT 2016/11/7
|
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
|
|
Polyline() : BaseClass() {;} ///< Contructor
|
|
|
|
virtual ~Polyline() = default; ///< Destructor
|
|
|
|
/*! \name ArrowHeads */
|
|
//@{
|
|
virtual bool arrowHeadStart() const = 0;
|
|
virtual void setArrowHeadStart(bool enable) = 0;
|
|
|
|
virtual bool arrowHeadEnd() const = 0;
|
|
virtual void setArrowHeadEnd(bool enable) = 0;
|
|
//@}
|
|
|
|
/*! \name Text on lineSegments */
|
|
//@{
|
|
virtual QString textOnSegment(uint segment) const = 0;
|
|
virtual void setTextOnSegment(uint segment, const QString &segmentText) = 0;
|
|
virtual void clearTextOnSegment(uint segment) = 0;
|
|
//@}
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace SituationMap
|