/* * 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. * */ #include #include #include #include #include #include namespace AZ { namespace SceneAPI { namespace UI { AZ_CLASS_ALLOCATOR_IMPL(ManifestMetaInfoHandler, SystemAllocator, 0) ManifestMetaInfoHandler::ManifestMetaInfoHandler() { BusConnect(); } ManifestMetaInfoHandler::~ManifestMetaInfoHandler() { BusDisconnect(); } void ManifestMetaInfoHandler::GetIconPath(AZStd::string& iconPath, const DataTypes::IManifestObject& target) { if (target.RTTI_IsTypeOf(DataTypes::IMeshGroup::TYPEINFO_Uuid())) { iconPath = ":/SceneUI/Manifest/MeshGroupIcon.png"; } else if (target.RTTI_IsTypeOf(DataTypes::ISkeletonGroup::TYPEINFO_Uuid())) { iconPath = ":/SceneUI/Manifest/SkeletonGroupIcon.png"; } else if (target.RTTI_IsTypeOf(DataTypes::ISkinGroup::TYPEINFO_Uuid())) { iconPath = ":/SceneUI/Manifest/SkinGroupIcon.png"; } else if (target.RTTI_IsTypeOf(DataTypes::IAnimationGroup::TYPEINFO_Uuid())) { iconPath = ":/SceneUI/Manifest/AnimationGroupIcon.png"; } } } // SceneData } // SceneAPI } // AZ