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.
60 lines
1.8 KiB
C++
60 lines
1.8 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 BaseAreaModifierNode : public BaseNode
|
|
{
|
|
public:
|
|
AZ_CLASS_ALLOCATOR(BaseAreaModifierNode, AZ::SystemAllocator, 0);
|
|
AZ_RTTI(BaseAreaModifierNode, "{9FCA4158-1974-4CE3-93B9-10F1D6A25D9F}", BaseNode);
|
|
|
|
// Connection slot IDs (not translated, only used internally)
|
|
static const char* INBOUND_GRADIENT_X_SLOT_ID;
|
|
static const char* INBOUND_GRADIENT_Y_SLOT_ID;
|
|
static const char* INBOUND_GRADIENT_Z_SLOT_ID;
|
|
|
|
// Connection slot labels
|
|
static const QString INBOUND_GRADIENT_X_SLOT_LABEL;
|
|
static const QString INBOUND_GRADIENT_Y_SLOT_LABEL;
|
|
static const QString INBOUND_GRADIENT_Z_SLOT_LABEL;
|
|
|
|
// Connection slot descriptions
|
|
static const QString INBOUND_GRADIENT_X_INPUT_SLOT_DESCRIPTION;
|
|
static const QString INBOUND_GRADIENT_Y_INPUT_SLOT_DESCRIPTION;
|
|
static const QString INBOUND_GRADIENT_Z_INPUT_SLOT_DESCRIPTION;
|
|
|
|
static void Reflect(AZ::ReflectContext* context);
|
|
|
|
BaseAreaModifierNode() = default;
|
|
explicit BaseAreaModifierNode(GraphModel::GraphPtr graph);
|
|
|
|
const BaseNodeType GetBaseNodeType() const override
|
|
{
|
|
return BaseNode::VegetationAreaModifier;
|
|
}
|
|
|
|
const bool ShouldShowEntityName() const override
|
|
{
|
|
// Don't show the entity name for Area Modifiers since they will
|
|
// be wrapped on a Vegetation Area it would be redundant
|
|
return false;
|
|
}
|
|
};
|
|
}
|