Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
+60
@@ -0,0 +1,60 @@
|
||||
/**
|
||||
* Borderline object
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
* Created by hjl, SLSE, 2017-06-14
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
#include "object_base.h"
|
||||
#include <DDS/Core/function_reply_object.h>
|
||||
#include <AreaEffectSimulation/aes_db.h>
|
||||
|
||||
|
||||
namespace AreaEffectSimulation
|
||||
{
|
||||
|
||||
class ObjectBorderline final : public ObjectBaseTmpl<Database::AesBorderline>
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ObjectBorderline(MainHandler *mainHandler,
|
||||
QObject *parent = nullptr);
|
||||
|
||||
~ObjectBorderline();
|
||||
|
||||
Core::FunctionReplyObject createObject(const Database::AesBorderline &dbData,
|
||||
const std::vector<Core::GeoPosition2D> &ddsSegments,
|
||||
const QVector<Database::AesBorderlineSegment> &dbSegments);
|
||||
|
||||
Core::FunctionReplyObject updateObject(const Database::AesBorderline &dbData,
|
||||
const std::vector<Core::GeoPosition2D> &ddsSegments);
|
||||
|
||||
Database::AesBorderline get() const
|
||||
{
|
||||
return m_data;
|
||||
}
|
||||
|
||||
Core::FunctionReplyObject removeObject() override;
|
||||
|
||||
std::vector<Core::GeoPosition> form() const override { return m_aiv.form(); }
|
||||
QPolygonF generateForm() override;
|
||||
AesType aesType() const override { return AesType::AtBorderline; }
|
||||
bool isCentral() const override { return m_data.isCentral; }
|
||||
void removeTopics();
|
||||
|
||||
protected Q_SLOTS:
|
||||
void onPublishData() override;
|
||||
|
||||
private:
|
||||
void publishAiv();
|
||||
|
||||
QVector<Database::AesBorderlineSegment> m_dbSegments;
|
||||
AesItemView m_aiv;
|
||||
|
||||
};
|
||||
} // Namespace AreaEffectSimulation
|
||||
|
||||
Reference in new issue
Block a user