70 lines
1.1 KiB
Objective-C
Executable File
70 lines
1.1 KiB
Objective-C
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* StubGraphicalObject
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
// Own
|
|
#include "abstract_graphical_object.h"
|
|
|
|
#include <Map/situation_map_types.h>
|
|
|
|
|
|
// Esri
|
|
|
|
|
|
|
|
namespace SituationMap
|
|
{
|
|
|
|
|
|
|
|
/**
|
|
@class StubGraphicalObject stub_graphical_object.h
|
|
The class \c StubGraphicalObject is used as substitution for a graphical object. It does
|
|
nothing and the purpose is only to satisfy the interface of AbstractGraphicalObject.
|
|
@see AbstractGraphicalObject
|
|
*/
|
|
class StubGraphicalObject : public AbstractGraphicalObject
|
|
{
|
|
|
|
public:
|
|
|
|
explicit StubGraphicalObject()
|
|
: AbstractGraphicalObject(nullptr, nullptr, QString(), UniqueMapId())
|
|
{
|
|
}
|
|
|
|
~StubGraphicalObject() = default;
|
|
|
|
StubGraphicalObject(const StubGraphicalObject &other) = delete;
|
|
StubGraphicalObject &operator=(StubGraphicalObject &other) = delete;
|
|
|
|
protected:
|
|
|
|
bool changed() override
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool updateViewImpl() override
|
|
{
|
|
return true;
|
|
}
|
|
|
|
bool create() override
|
|
{
|
|
return true;
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace SituationMap
|
|
|