Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
+82
@@ -0,0 +1,82 @@
|
||||
/**
|
||||
* @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
|
||||
|
||||
Reference in new issue
Block a user