83 lines
1.9 KiB
C++
Executable File
83 lines
1.9 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* Interface-Implementation of HitLine
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
// Own
|
|
#include "abstract_multi_point_map_object_impl.h"
|
|
#include "basic_path_object_impl.h"
|
|
#include <MapObjects/hit_line.h> // Interface
|
|
|
|
|
|
// Qt
|
|
#include <QString>
|
|
#include <QPointF>
|
|
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
namespace SituationMap
|
|
{
|
|
|
|
|
|
/**
|
|
* @brief The HitLineImpl class displays shot from a startpoint to an endpoint.
|
|
*
|
|
* A class instance consists of the following logical elements:
|
|
* - mainGraphicalObject (GraphicalObjectPath displaying the main techn. Appearance)
|
|
* - mainGraphicalObjectText (displaying the text/name/identifier)
|
|
* - tacticalAppearance (displaying the tact. Appearance)
|
|
*/
|
|
// inherent 'public', to get that implementation
|
|
// inherent 'public virtual' to get that interface
|
|
class SITUATIONMAPOBJECTS_EXPORT HitLineImpl : public BasicPathObjectImpl, public virtual HitLine
|
|
{
|
|
using BaseClass = BasicPathObjectImpl;
|
|
|
|
template <typename> friend class GenericObjectFactory;
|
|
protected:
|
|
explicit HitLineImpl(const QString &debugInfo = QString());
|
|
virtual ~HitLineImpl();
|
|
|
|
public:
|
|
HitLineImpl(const HitLineImpl &other) = delete;
|
|
HitLineImpl &operator=(HitLineImpl &other) = delete;
|
|
|
|
QString identifier() const override;
|
|
void setIdentifier(const QString &identifier) override;
|
|
|
|
Point3D startPoint() const override;
|
|
Point3D endPoint() const override;
|
|
|
|
void setStartAndEndPoint(const Point3D &start, const Point3D &end) override;
|
|
|
|
|
|
protected:
|
|
bool updateViewImpl() override;
|
|
|
|
friend class MapImpl;
|
|
bool init(MapImpl *mapImpl, const QString &logicalLayerName) override;
|
|
|
|
// internal/admin
|
|
|
|
// logical
|
|
|
|
private:
|
|
bool setPositions(const PositionCont &) override; //SHOULD NEVER BE CALLED
|
|
|
|
private:
|
|
|
|
LOGGER_T m_logger; ///< Interface of the Logging-Facility
|
|
};
|
|
|
|
|
|
|
|
} // namespace SituationMap
|
|
|