1/*
2Open Asset Import Library (assimp)
3----------------------------------------------------------------------
4
5Copyright (c) 2006-2019, assimp team
6
7
8All rights reserved.
9
10Redistribution and use of this software in source and binary forms,
11with or without modification, are permitted provided that the
12following conditions are met:
13
14* Redistributions of source code must retain the above
15 copyright notice, this list of conditions and the
16 following disclaimer.
17
18* Redistributions in binary form must reproduce the above
19 copyright notice, this list of conditions and the
20 following disclaimer in the documentation and/or other
21 materials provided with the distribution.
22
23* Neither the name of the assimp team, nor the names of its
24 contributors may be used to endorse or promote products
25 derived from this software without specific prior
26 written permission of the assimp team.
27
28THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
29"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
30LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
31A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
32OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
33SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
34LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
35DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
36THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
38OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39
40----------------------------------------------------------------------
41*/
42
43/** @file FBXImporter.h
44 * @brief Declaration of the FBX main importer class
45 */
46#ifndef INCLUDED_AI_FBX_IMPORTER_H
47#define INCLUDED_AI_FBX_IMPORTER_H
48
49#include <assimp/BaseImporter.h>
50#include <assimp/LogAux.h>
51
52#include "FBXImportSettings.h"
53
54namespace Assimp {
55
56// TinyFormatter.h
57namespace Formatter {
58 template <typename T,typename TR, typename A> class basic_formatter;
59 typedef class basic_formatter< char, std::char_traits<char>, std::allocator<char> > format;
60}
61
62// -------------------------------------------------------------------------------------------
63/** Load the Autodesk FBX file format.
64
65 See http://en.wikipedia.org/wiki/FBX
66*/
67// -------------------------------------------------------------------------------------------
68class FBXImporter : public BaseImporter, public LogFunctions<FBXImporter>
69{
70public:
71 FBXImporter();
72 virtual ~FBXImporter();
73
74 // --------------------
75 bool CanRead( const std::string& pFile,
76 IOSystem* pIOHandler,
77 bool checkSig
78 ) const;
79
80protected:
81
82 // --------------------
83 const aiImporterDesc* GetInfo () const;
84
85 // --------------------
86 void SetupProperties(const Importer* pImp);
87
88 // --------------------
89 void InternReadFile( const std::string& pFile,
90 aiScene* pScene,
91 IOSystem* pIOHandler
92 );
93
94private:
95 FBX::ImportSettings settings;
96}; // !class FBXImporter
97
98} // end of namespace Assimp
99#endif // !INCLUDED_AI_FBX_IMPORTER_H
100
101

source code of qt3d/src/3rdparty/assimp/src/code/FBX/FBXImporter.h