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

84 lines
2.1 KiB
C++
Executable File

/**
* @RDE_HEADER@
* Interface-Implementation of BiologicalAgent
* $Id$
* $HeadURL$
* $Author$
*/
#pragma once
// Own
#include "abstract_multi_point_map_object_impl.h"
#include "basic_path_object_impl.h"
#include <MapObjects/biological_agent.h> // Interface
// Qt
//----------------------------------------------------------------------------
namespace SituationMap
{
/**
* @brief The BiologicalAgentImpl class can be described by an origin and a radius.
* \note Maybe this will be changed in future to be consistent to the ChemicalAgent.
*
* A class instance consists of the following logical elements:
* - mainGraphicalObject (GraphicalObjectPath/Polyline, 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 BiologicalAgentImpl : public BasicPathObjectImpl, public virtual BiologicalAgent
{
using BaseClass = BasicPathObjectImpl;
template <typename> friend class GenericObjectFactory;
protected:
explicit BiologicalAgentImpl(const QString &debugInfo = QString());
virtual ~BiologicalAgentImpl();
public:
BiologicalAgentImpl(const BiologicalAgentImpl &other) = delete;
BiologicalAgentImpl &operator=(BiologicalAgentImpl &other) = delete;
QString toString() const override;
// some set/get methods:
Point3D origin() const override;
void setOrigin(const Point3D &origin) override;
float radius() const override;
void setRadius(float radius) override;
// Delegate to BaseClass:
AesEffectState aesState() const override;
void setAesState(AesEffectState aesState) override;
SymbolImage symbolImage() const override;
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