31 lines
806 B
C++
31 lines
806 B
C++
#pragma once
|
|
#include "componentbasic.h"
|
|
#include <messagebasic.h>
|
|
#include <QVariant>
|
|
|
|
/// <summary>
|
|
/// ¿ÉÊÓ»¯3dÌå»ýºÐ
|
|
/// </summary>
|
|
class COMPONENTBASIC_EXPORT VisibleCubePlugin : public ProcList<
|
|
WsRespond<Get3DBox, Box3DDesc>
|
|
>
|
|
{
|
|
private:
|
|
std::weak_ptr<WsEntity> _bind_entity;
|
|
D3Data _self_d3;
|
|
LLAPos _self_lla;
|
|
Posture _self_posture;
|
|
|
|
public:
|
|
explicit VisibleCubePlugin() = default;
|
|
|
|
// ͨ¹ý ProcList ¼Ì³Ð
|
|
void bindEntity(std::weak_ptr<WsEntity> ins) override;
|
|
QString name() const override;
|
|
|
|
void execute(std::shared_ptr<ImmediateMap> map, std::shared_ptr<const Get3DBox> in, QList<std::shared_ptr<Box3DDesc>>& out) override;
|
|
|
|
std::shared_ptr<WsComponent> defaultNew() const override;
|
|
void recoveryFrom(const QJsonObject& obj) override;
|
|
void saveTo(QJsonObject& obj) const override;
|
|
}; |