/* * 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 namespace AZ { namespace SceneAPI { namespace UI { AZ_CLASS_ALLOCATOR_IMPL(GraphMetaInfoHandler, SystemAllocator, 0) GraphMetaInfoHandler::GraphMetaInfoHandler() { BusConnect(); } GraphMetaInfoHandler::~GraphMetaInfoHandler() { BusDisconnect(); } void GraphMetaInfoHandler::GetIconPath(AZStd::string& iconPath, const DataTypes::IGraphObject* target) { if (target->RTTI_IsTypeOf(DataTypes::IMeshData::TYPEINFO_Uuid())) { iconPath = ":/SceneUI/Graph/MeshIcon.png"; } else if (target->RTTI_IsTypeOf(DataTypes::IBoneData::TYPEINFO_Uuid())) { iconPath = ":/SceneUI/Graph/BoneIcon.png"; } } void GraphMetaInfoHandler::GetToolTip(AZStd::string& toolTip, const DataTypes::IGraphObject* target) { if (target->RTTI_IsTypeOf(DataTypes::ITransform::TYPEINFO_Uuid())) { toolTip = "Transform information changes the translation, rotation and/or scale. Multiple transform will be added together."; } else if (target->RTTI_IsTypeOf(DataTypes::IMeshData::TYPEINFO_Uuid())) { toolTip = "MeshData contains the vertex information to create the mesh for the 3D model."; } else if (target->RTTI_IsTypeOf(DataTypes::IBoneData::TYPEINFO_Uuid())) { toolTip = "Bones make up an animation skeleton. Usually bones are hierarchically chained together and the root bone will be available for selection."; } } } // SceneData } // SceneAPI } // AZ