Files
qt5-legatus-legacy/Lts/Viewer/SituationMap/MapObjectsImpl/danger_area_impl.h
T
2026-08-13 18:33:10 +02:00

69 lines
1.6 KiB
C++
Executable File

/**
* @RDE_HEADER@
* Interface-Implementation of DangerArea
* $Id$
* $HeadURL$
* $Author$
*/
#pragma once
// Own
#include "abstract_multi_point_map_object_impl.h"
#include "basic_path_object_impl.h"
#include <MapObjects/danger_area.h> // Interface
// Qt
#include <QString>
//----------------------------------------------------------------------------
namespace SituationMap
{
/**
* @brief The DangerAreaImpl class displays an area of undefined danger.
*
* A class instance consists of the following logical elements:
* - mainGraphicalObject (GraphicalObjectPath displaying the main techn. Appearance)
* - mainGraphicalObjectText (displaying the text/name)
* - tacticalAppearance (displaying the tact. Appearance)
*/
// inherent 'public', to get that implementation
// inherent 'public virtual' to get that interface
class SITUATIONMAPOBJECTS_EXPORT DangerAreaImpl : public BasicPathObjectImpl, public virtual DangerArea
{
using BaseClass = BasicPathObjectImpl;
template <typename> friend class GenericObjectFactory;
protected:
explicit DangerAreaImpl(const QString &debugInfo = QString());
virtual ~DangerAreaImpl();
public:
DangerAreaImpl(const DangerAreaImpl &other) = delete;
DangerAreaImpl &operator=(DangerAreaImpl &other) = delete;
protected:
bool updateViewImpl() override;
friend class MapImpl;
bool init(MapImpl *mapImpl, const QString &logicalLayerName) override;
// internal/admin
// logical
private:
LOGGER_T m_logger; ///< Interface of the Logging-Facility
};
} // namespace SituationMap