Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
+77
@@ -0,0 +1,77 @@
|
||||
/**
|
||||
* @RDE_HEADER@
|
||||
* Interface-Implementation of Mine
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
// Own
|
||||
#include "abstract_single_point_map_object_impl.h"
|
||||
//#include "abstract_effect_simulation_impl.h"
|
||||
#include <MapObjects/mine.h> // Interface
|
||||
|
||||
|
||||
// Qt
|
||||
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
namespace SituationMap
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @brief The MineImpl class displays a mine impact.
|
||||
*
|
||||
* A class instance consists of the following logical elements:
|
||||
* - mainGraphicalObject (GraphicalObjectPictureMarker / Image, 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 MineImpl : public AbstractSinglePointMapObjectImpl, public virtual Mine
|
||||
{
|
||||
using BaseClass = AbstractSinglePointMapObjectImpl;
|
||||
|
||||
template <typename> friend class GenericObjectFactory;
|
||||
protected:
|
||||
explicit MineImpl(const QString &debugInfo = QString());
|
||||
virtual ~MineImpl();
|
||||
|
||||
public:
|
||||
MineImpl(const MineImpl &other) = delete;
|
||||
MineImpl &operator=(MineImpl &other) = delete;
|
||||
|
||||
QString toString() const override;
|
||||
|
||||
bool state() const override;
|
||||
void setState(bool state) override;
|
||||
|
||||
SymbolImage symbolImage() const override;
|
||||
|
||||
|
||||
static QImage renderMineSymbol(const QColor &color, int size, bool filled);
|
||||
|
||||
|
||||
protected:
|
||||
virtual bool updateViewImpl() override;
|
||||
|
||||
friend class MapImpl;
|
||||
bool init(MapImpl *mapImpl, const QString &logicalLayerName) override;
|
||||
|
||||
// internal/admin
|
||||
|
||||
// logical
|
||||
SimpleValue<bool> m_state = false;
|
||||
|
||||
private:
|
||||
LOGGER_T m_logger; ///< Interface of the Logging-Facility
|
||||
};
|
||||
|
||||
|
||||
|
||||
} // namespace SituationMap
|
||||
|
||||
Reference in new issue
Block a user