38261d0800
* Updated all copyright headers to split the longer original copyright line into 2 shorter lines Signed-off-by: Steve Pham <spham@amazon.com>
56 lines
1.9 KiB
C++
56 lines
1.9 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
|
|
*
|
|
*/
|
|
|
|
#include <AzCore/Memory/SystemAllocator.h>
|
|
#include <SceneAPI/SceneUI/ManifestMetaInfoHandler.h>
|
|
#include <SceneAPI/SceneCore/DataTypes/Groups/IMeshGroup.h>
|
|
#include <SceneAPI/SceneCore/DataTypes/Groups/ISkeletonGroup.h>
|
|
#include <SceneAPI/SceneCore/DataTypes/Groups/ISkinGroup.h>
|
|
#include <SceneAPI/SceneCore/DataTypes/Groups/IAnimationGroup.h>
|
|
|
|
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
|