#pragma once
#include "MapPresent.h"
///
/// 基础空白单元绘制委托
///
class BasicUnitDelegate : public UnitPresentDelegate {
public:
BasicUnitDelegate(QObject *parent = nullptr);
int unitType() const override;
void paint(QPainter* p, const PresentOption& option) override;
static QList endPointsGet(const QRectF& rect);
void hotClear();
void hotIndexSet(const PresentIndex &idx);
private:
PresentIndex _hot_index;
};