Files
HPPA/HPPA/LayerTreeLayerNode.h
tangchao0503 eda0a01098 add
1、添加layerTree节点类型:image,然后修改LayerTreeLayer,继承LayerTreeGroup。
2026-05-11 11:13:21 +08:00

29 lines
595 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
#include "LayerTreeGroupNode.h"
#include "MapLayer.h"
/**
* LayerTreeLayer图层节点
* - 基类为 LayerTreeNode
* - 持有一个 MapLayer 指针(不拥有)
*/
class LayerTreeLayer : public LayerTreeGroup
{
Q_OBJECT
public:
explicit LayerTreeLayer(MapLayer* layer, QObject* parent = nullptr);
Type type() const;
void setMapLayer(MapLayer* layer);
MapLayer* mapLayer() const;
private:
MapLayer* m_layer = nullptr;
// 可扩展layerId / pointer / legendItems 等
};
// 保持向后兼容
using LayerTreeLayerNode = LayerTreeLayer;