You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.3 KiB
C++
55 lines
1.3 KiB
C++
/*
|
|
* Copyright (c) Contributors to the Open 3D Engine Project
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
// Landscape Canvas
|
|
#include <Editor/Core/Core.h>
|
|
#include <Editor/Nodes/BaseNode.h>
|
|
|
|
namespace AZ
|
|
{
|
|
class ReflectContext;
|
|
}
|
|
|
|
namespace LandscapeCanvas
|
|
{
|
|
class BaseAreaNode : public BaseNode
|
|
{
|
|
public:
|
|
AZ_CLASS_ALLOCATOR(BaseAreaNode, AZ::SystemAllocator, 0);
|
|
AZ_RTTI(BaseAreaNode, "{16CC0816-6A5F-4244-B66A-2D34B6D4E508}", BaseNode);
|
|
|
|
static void Reflect(AZ::ReflectContext* context);
|
|
|
|
BaseAreaNode() = default;
|
|
explicit BaseAreaNode(GraphModel::GraphPtr graph);
|
|
|
|
const char* GetSubTitle() const override
|
|
{
|
|
return LandscapeCanvas::VEGETATION_AREA_TITLE.toUtf8().constData();
|
|
}
|
|
|
|
GraphModel::NodeType GetNodeType() const override
|
|
{
|
|
return GraphModel::NodeType::WrapperNode;
|
|
}
|
|
|
|
const BaseNodeType GetBaseNodeType() const override
|
|
{
|
|
return BaseNode::VegetationArea;
|
|
}
|
|
|
|
/// Retrieve a pointer to the Reference Shape Component on this Entity
|
|
/// if it exists (to be used for getting/setting the Placement Bounds)
|
|
AZ::Component* GetReferenceShapeComponent() const;
|
|
|
|
protected:
|
|
void RegisterSlots() override;
|
|
};
|
|
}
|