fbxsdk/fileio/fbx/fbxreaderfbx7.h Source File

fbxreaderfbx7.h
Go to the documentation of this file.
1 /****************************************************************************************
2 
3  Copyright (C) 2015 Autodesk, Inc.
4  All rights reserved.
5 
6  Use of this software is subject to the terms of the Autodesk license agreement
7  provided at the time of installation or download, or which otherwise accompanies
8  this software in either electronic or hard copy form.
9 
10 ****************************************************************************************/
11 
13 #ifndef _FBXSDK_FILEIO_FBX_READER_FBX7_H_
14 #define _FBXSDK_FILEIO_FBX_READER_FBX7_H_
15 
16 #include <fbxsdk.h>
17 
18 #include <fbxsdk/fbxsdk_nsbegin.h>
19 
20 struct FbxReaderFbx7_Impl;
21 
26 class FbxReaderFbx7 : public FbxReader
27 {
28 public:
32  typedef enum
33  {
37  } EImportMode;
38 
45  FbxReaderFbx7(FbxManager& pManager, FbxImporter& pImporter, int pID, FbxStatus& pStatus);
46 
50  virtual ~FbxReaderFbx7();
51 
57  virtual bool FileOpen(char* pFileName, EFileOpenSpecialFlags pFlags);
58 
63  virtual bool FileOpen(char* pFileName);
64 
67  virtual bool FileOpen(FbxFile* pFile);
68 
71  virtual bool FileOpen(FbxStream * pStream, void* pStreamData);
72 
76  virtual bool FileClose();
77 
81  virtual bool IsFileOpen();
82 
87 
93  virtual void GetVersion(int& pMajor, int& pMinor, int& pRevision);
94 
100  virtual bool GetAxisInfo(FbxAxisSystem* pAxisSystem, FbxSystemUnit* pSystemUnits);
101 
108  virtual bool GetFrameRate(FbxTime::EMode &pTimeMode);
109 
114  virtual bool GetStatistics(FbxStatistics* pStats);
115 
120  virtual bool GetReadOptions(bool pParseFileAsNeeded = true);
121 
126  virtual bool Read(FbxDocument *pDocument);
127 
134  virtual void PluginReadParameters(FbxObject& pParams);
135 
141  virtual bool GetReadOptions(FbxIO* pFbx, bool pParseFileAsNeeded = true);
142 
148  virtual bool Read(FbxDocument *pDocument, FbxIO* pFbx);
149 
153  virtual FbxDocumentInfo* GetSceneInfo();
154 
159 
163  virtual void SetProgressHandler(FbxProgress *pProgress);
164 
165  virtual void SetEmbeddingExtractionFolder(const char* pExtractFolder);
166 
167  virtual bool SupportsStreams() const { return true; }
168 
169 private:
170  // Declared, not defined.
172  FbxReaderFbx7& operator=(FbxReaderFbx7 const&);
173 
174 private:
175  FbxReaderFbx7_Impl* mImpl;
176 };
177 
178 #include <fbxsdk/fbxsdk_nsend.h>
179 
180 #endif /* _FBXSDK_FILEIO_FBX_READER_FBX7_H_ */
virtual void SetEmbeddingExtractionFolder(const char *pExtractFolder)
EFileOpenSpecialFlags
Flags for reading parts of file.
Definition: fbxreader.h:91
virtual FbxArray< FbxTakeInfo * > * GetTakeInfo()
Returns the pointer to the list of TakeInfo from the file.
Plain text mode.
Definition: fbxreaderfbx7.h:34
SDK object manager.
Definition: fbxmanager.h:56
This class represents the coordinate system of the scene and can convert scenes to other coordinate s...
Definition: fbxaxissystem.h:97
virtual bool GetReadOptions(bool pParseFileAsNeeded=true)
Get the file stream options.
virtual bool IsFileOpen()
Check whether the file stream is open.
Abstract class for implementing I/O operations through a stream of data.
Definition: fbxstream.h:26
virtual void GetVersion(int &pMajor, int &pMinor, int &pRevision)
Get file version.
FbxDocument is a base class for FbxScene and FbxLibrary classes.
Definition: fbxdocument.h:46
virtual void SetProgressHandler(FbxProgress *pProgress)
Pass a progress handler to the reader.
This class is a basic class to get the quantity of items.
Definition: fbxstatistics.h:62
Base class of other readers used internally.
Definition: fbxreader.h:64
virtual bool GetFrameRate(FbxTime::EMode &pTimeMode)
Get FBX file time mode read from GlobalSettings in FBX 6.n and FBX 7.n.
This class facilitates the testing/reporting of errors.
Definition: fbxstatus.h:26
This class contains scene thumbnails and user-defined summary data.
virtual ~FbxReaderFbx7()
Destructor.
FbxReaderFbx7(FbxManager &pManager, FbxImporter &pImporter, int pID, FbxStatus &pStatus)
Constructor.
The base class of most FBX objects.
Definition: fbxobject.h:157
EImportMode
File import mode.
Definition: fbxreaderfbx7.h:32
EMode
Time modes.
Definition: fbxtime.h:90
Class for progress reporting.
Definition: fbxprogress.h:31
virtual void PluginReadParameters(FbxObject &pParams)
Reads extension plug-ins name, version and parameters, so that we can remember if a plug-in was used ...
FbxIO represents an FBX file.
Definition: fbxio.h:324
virtual bool GetStatistics(FbxStatistics *pStats)
Get the statistics from file.
This class describes the units of measurement used within a particular scene.
Definition: fbxsystemunit.h:31
virtual bool SupportsStreams() const
Returns true if this reader supports FbxStream I/O.
This class is the FBX v7 reader.
Definition: fbxreaderfbx7.h:26
virtual bool GetAxisInfo(FbxAxisSystem *pAxisSystem, FbxSystemUnit *pSystemUnits)
Get axis system information from file.
Class for interfacing with files, providing a similar interface for files independant of the OS or fi...
Definition: fbxfile.h:27
EImportMode GetImportMode()
Get current Import mode.
virtual bool Read(FbxDocument *pDocument)
Read file with stream options.
virtual bool FileOpen(char *pFileName, EFileOpenSpecialFlags pFlags)
Open file with certain EFileOpenSpecialFlags.
virtual FbxDocumentInfo * GetSceneInfo()
Returns the scene info from the file.
virtual bool FileClose()
Close the file stream.
Class to import an FBX file into SDK objects.
Definition: fbximporter.h:90