77 lines
1.6 KiB
C++
Executable File
77 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/cube.h> // Interface
|
|
|
|
|
|
// ESRI
|
|
#include <arcgis/Graphic.h>
|
|
|
|
|
|
// Qt
|
|
#include <QString>
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
namespace SituationMap
|
|
{
|
|
|
|
|
|
/**
|
|
* @brief The CubeImpl class a cube if the UniqueValueRenderer is set.
|
|
*
|
|
* A class instance consists of the following logical elements:
|
|
* - mainGraphicalObject (GraphicalObjectPath displaying the main techn. Appearance, the cube)
|
|
* - mainGraphicalObjectText not used
|
|
* - tacticalAppearance not used
|
|
*/
|
|
// inherent 'public', to get that implementation
|
|
// inherent 'public virtual' to get that interface
|
|
class SITUATIONMAPOBJECTS_EXPORT CubeImpl : public AbstractMultiPointMapObjectImpl, public virtual Cube
|
|
{
|
|
using BaseClass = AbstractMultiPointMapObjectImpl;
|
|
|
|
template <typename> friend class GenericObjectFactory;
|
|
protected:
|
|
explicit CubeImpl(const QString &debugInfo = QString());
|
|
virtual ~CubeImpl();
|
|
|
|
public:
|
|
CubeImpl(const CubeImpl &other) = delete;
|
|
CubeImpl &operator=(CubeImpl &other) = delete;
|
|
|
|
double height() const override;
|
|
void setHeight(double height) override;
|
|
|
|
|
|
protected:
|
|
bool updateViewImpl() override;
|
|
bool init(MapImpl *mapImpl, const QString &logicalLayerName) override;
|
|
|
|
// internal/admin
|
|
|
|
|
|
// logical
|
|
|
|
|
|
private:
|
|
double m_height;
|
|
|
|
LOGGER_T m_logger; ///< Interface of the Logging-Facility
|
|
};
|
|
|
|
|
|
|
|
} // namespace SituationMap
|
|
|