/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or the license accompanying this file. Do not * remove or modify any license notices. This file is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * */ // AZ #include #include // Graph Model #include // Landscape Canvas #include "BaseAreaModifierNode.h" namespace LandscapeCanvas { const QString BaseAreaModifierNode::INBOUND_GRADIENT_X_SLOT_LABEL = QObject::tr("Inbound Gradient X"); const QString BaseAreaModifierNode::INBOUND_GRADIENT_Y_SLOT_LABEL = QObject::tr("Inbound Gradient Y"); const QString BaseAreaModifierNode::INBOUND_GRADIENT_Z_SLOT_LABEL = QObject::tr("Inbound Gradient Z"); const QString BaseAreaModifierNode::INBOUND_GRADIENT_X_INPUT_SLOT_DESCRIPTION = QObject::tr("Inbound Gradient X input slot"); const QString BaseAreaModifierNode::INBOUND_GRADIENT_Y_INPUT_SLOT_DESCRIPTION = QObject::tr("Inbound Gradient Y input slot"); const QString BaseAreaModifierNode::INBOUND_GRADIENT_Z_INPUT_SLOT_DESCRIPTION = QObject::tr("Inbound Gradient Z input slot"); const char* BaseAreaModifierNode::INBOUND_GRADIENT_X_SLOT_ID = "InboundGradientX"; const char* BaseAreaModifierNode::INBOUND_GRADIENT_Y_SLOT_ID = "InboundGradientY"; const char* BaseAreaModifierNode::INBOUND_GRADIENT_Z_SLOT_ID = "InboundGradientZ"; void BaseAreaModifierNode::Reflect(AZ::ReflectContext* context) { AZ::SerializeContext* serializeContext = azrtti_cast(context); if (serializeContext) { serializeContext->Class() ->Version(0) ; if (AZ::EditContext* editContext = serializeContext->GetEditContext()) { editContext->Class("BaseAreaModifierNode", "")-> ClassElement(AZ::Edit::ClassElements::EditorData, "")-> Attribute(GraphModelIntegration::Attributes::TitlePaletteOverride, "VegetationAreaNodeTitlePalette") ; } } } BaseAreaModifierNode::BaseAreaModifierNode(GraphModel::GraphPtr graph) : BaseNode(graph) { } } // namespace LandscapeCanvas