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.
63 lines
2.6 KiB
C++
63 lines
2.6 KiB
C++
/*
|
|
* 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.
|
|
*
|
|
*/
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// FBX SDK Wrapper
|
|
// provides isolation between AUTODESK FBX SDK and FBX Serializer
|
|
// provides necessary APIs for FBX Serializer
|
|
//
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
#pragma once
|
|
|
|
#include <AzCore/std/smart_ptr/shared_ptr.h>
|
|
#include <SceneAPI/FbxSDKWrapper/FbxNodeWrapper.h>
|
|
#include <SceneAPI/FbxSDKWrapper/FbxAnimStackWrapper.h>
|
|
#include <SceneAPI/FbxSDKWrapper/FbxAxisSystemWrapper.h>
|
|
#include <SceneAPI/FbxSDKWrapper/FbxSystemUnitWrapper.h>
|
|
#include <SceneAPI/SDKWrapper/SceneWrapper.h>
|
|
|
|
namespace AZ
|
|
{
|
|
namespace FbxSDKWrapper
|
|
{
|
|
class FbxSceneWrapper : public SDKScene::SceneWrapperBase
|
|
{
|
|
public:
|
|
AZ_RTTI(FbxSceneWrapper, "{63637E50-BB26-4BE9-AECD-D1168AE2355B}", SDKScene::SceneWrapperBase);
|
|
FbxSceneWrapper();
|
|
FbxSceneWrapper(fbxsdk::FbxScene* fbxScene);
|
|
~FbxSceneWrapper();
|
|
|
|
bool LoadSceneFromFile(const char* fileName) override;
|
|
bool LoadSceneFromFile(const AZStd::string& fileName) override;
|
|
|
|
virtual AZStd::shared_ptr<FbxSystemUnitWrapper> GetSystemUnit() const;
|
|
virtual AZStd::shared_ptr<FbxAxisSystemWrapper> GetAxisSystem() const;
|
|
virtual FbxTimeWrapper GetTimeLineDefaultDuration() const;
|
|
virtual const char* GetLastSavedApplicationName() const;
|
|
virtual const char* GetLastSavedApplicationVersion() const;
|
|
const std::shared_ptr<SDKNode::NodeWrapper> GetRootNode() const override;
|
|
std::shared_ptr<SDKNode::NodeWrapper> GetRootNode() override;
|
|
virtual int GetAnimationStackCount() const;
|
|
virtual const std::shared_ptr<FbxAnimStackWrapper> GetAnimationStackAt(int index) const;
|
|
void Clear() override;
|
|
|
|
protected:
|
|
FbxManager* m_fbxManager;
|
|
FbxImporter* m_fbxImporter;
|
|
FbxIOSettings* m_fbxIOSettings;
|
|
};
|
|
} // namespace FbxSDKWrapper
|
|
} // namespace AZ
|