Files
HPPA/HPPA/LayerTreeLayerNode.h
tangchao0503 bdf956ed99 1、为图层添加渲染器和读取器,分离图层基础信息、渲染和读写;
2、LayerTreeLayerNode持有MapLayer图层引用,为右键菜单做准备;
3、改名:imageviewer → mapcavas,mapcavas持有MapLayer图层引用,为刷新图像做准备;
2026-03-02 11:49:46 +08:00

23 lines
471 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 "LayerTreeNode.h"
#include "MapLayer.h"
/** Layer 节点 */
class LayerTreeLayerNode : public LayerTreeNode
{
Q_OBJECT
public:
explicit LayerTreeLayerNode(MapLayer* layer, QObject* parent = nullptr);
Type type() const override;
// 持有一个 MapLayer 指针(不拥有)
void setMapLayer(MapLayer* layer);
MapLayer* mapLayer() const;
private:
MapLayer* m_layer = nullptr;
// 可扩展layerId / pointer / legendItems 等
};