Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
@@ -0,0 +1,89 @@
|
||||
/**
|
||||
* @RDE_HEADER@
|
||||
* Interface-Implementation of FunctionalArea
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
// Own
|
||||
#include "abstract_multi_point_map_object_impl.h"
|
||||
#include "basic_path_object_impl.h"
|
||||
#include <MapObjects/sound_area.h> // Interface
|
||||
|
||||
|
||||
// Qt
|
||||
#include <QImage>
|
||||
|
||||
|
||||
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
namespace SituationMap
|
||||
{
|
||||
|
||||
// forward:
|
||||
|
||||
|
||||
/**
|
||||
* @brief The SoundAreaImpl class displays a sound area and an image.
|
||||
*
|
||||
* A class instance consists of the following logical elements:
|
||||
* - mainGraphicalObject (GraphicalObjectPath displaying the main techn. Appearance)
|
||||
* - mainGraphicalObjectText (displaying the text/name)
|
||||
*/
|
||||
// inherent 'public', to get that implementation
|
||||
// inherent 'public virtual' to get that interface
|
||||
class SITUATIONMAPOBJECTS_EXPORT SoundAreaImpl : public BasicPathObjectImpl, public virtual SoundArea
|
||||
{
|
||||
using BaseClass = BasicPathObjectImpl;
|
||||
|
||||
template <typename> friend class GenericObjectFactory;
|
||||
protected:
|
||||
explicit SoundAreaImpl(const QString &debugInfo = QString());
|
||||
virtual ~SoundAreaImpl();
|
||||
|
||||
public:
|
||||
SoundAreaImpl(const SoundAreaImpl &other) = delete;
|
||||
SoundAreaImpl &operator=(SoundAreaImpl &other) = delete;
|
||||
|
||||
// void reRenderSymbol() override;
|
||||
|
||||
/*! \name Marker / Point symbol*/
|
||||
//@{
|
||||
Point3D markerOrigin() const override;
|
||||
void setMarkerOrigin(const Point3D &origin) override;
|
||||
|
||||
const MarkerData &markerData() const override;
|
||||
void setMarkerData(const MarkerData &markerData) override;
|
||||
//@}
|
||||
|
||||
QImage previewImageTypical() const override;
|
||||
QImage previewImageSpecific() const override;
|
||||
|
||||
|
||||
protected:
|
||||
bool updateViewImpl() override;
|
||||
|
||||
bool updateViewImplMarkerData();
|
||||
|
||||
friend class MapImpl;
|
||||
bool init(MapImpl *mapImpl, const QString &logicalLayerName) override;
|
||||
|
||||
// internal/admin
|
||||
|
||||
private:
|
||||
// logical
|
||||
OriginTranslated m_markerOrigin;
|
||||
SimpleValue<MarkerData> m_markerData;
|
||||
GraphicalObjectPictureMarker *m_pictureMarker{nullptr};
|
||||
|
||||
LOGGER_T m_logger; ///< Interface of the Logging-Facility
|
||||
};
|
||||
|
||||
|
||||
|
||||
} // namespace SituationMap
|
||||
|
||||
Reference in new issue
Block a user