Files
o3de/Gems/LandscapeCanvas/Code/Source/Editor/Nodes/Areas/BaseAreaNode.h
T
Steve Pham 38261d0800 Shorten copyright headers by splitting into 2 lines (#2213)
* Updated all copyright headers to split the longer original copyright line into 2 shorter lines

Signed-off-by: Steve Pham <spham@amazon.com>
2021-07-16 15:25:48 -07:00

56 lines
1.4 KiB
C++

/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* 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;
};
}