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.
o3de/Code/Tools/SceneAPI/SDKWrapper/NodeWrapper.h

53 lines
1.2 KiB
C++

/*
* Copyright (c) Contributors to the Open 3D Engine Project
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#pragma once
#include <AzCore/RTTI/RTTI.h>
namespace fbxsdk
{
class FbxNode;
}
struct aiNode;
namespace AZ
{
namespace SDKNode
{
class NodeWrapper
{
public:
AZ_RTTI(NodeWrapper, "{5EB0897B-9728-44B7-B056-BA34AAF14715}");
NodeWrapper() = default;
NodeWrapper(fbxsdk::FbxNode* fbxNode);
NodeWrapper(aiNode* aiNode);
virtual ~NodeWrapper();
enum CurveNodeComponent
{
Component_X,
Component_Y,
Component_Z
};
fbxsdk::FbxNode* GetFbxNode();
aiNode* GetAssImpNode();
virtual const char* GetName() const;
virtual AZ::u64 GetUniqueId() const;
virtual int GetMaterialCount() const;
virtual int GetChildCount()const;
virtual const std::shared_ptr<NodeWrapper> GetChild(int childIndex) const;
fbxsdk::FbxNode* m_fbxNode = nullptr;
aiNode* m_assImpNode = nullptr;
};
} //namespace Node
} //namespace AZ