DATAKIT API  V2025.1
dtk_u3dreader.hpp
Go to the documentation of this file.
1 #ifndef _DTK_U3D_READER_H_
2 #define _DTK_U3D_READER_H_
3 
4 class U3DSamplePlayer;
5 
6 class U3dReader: public Dtk_Reader
7 {
8 
9 public :
10 
12  virtual ~U3dReader();
13  static Dtk_bool Enable();
14 
15  // ==== General inherited actions ====
16 
17  Dtk_ErrorStatus CreateDocument(const Dtk_string& inInputFile, Dtk_MainDocPtr& outDocument);
18  Dtk_ErrorStatus GetFileVersion(const Dtk_string &inInputFile, Dtk_string& outVersion);
19 
21  (const Dtk_string& inInputFile,Dtk_MainDocPtr& inoutDocument,Dtk_ComponentPtr& outRootComponent);
22  Dtk_ErrorStatus PopulateComponentsTree( const Dtk_tab< Dtk_StreamPtr >& inArrayStream, Dtk_MainDocPtr& inoutDocument, Dtk_ComponentPtr& outRootComponent );
25  (const Dtk_ComponentPtr& inComponent, Dtk_NodePtr& outRootNode);
26 
28 
31 
33 
35 
37 
38 
39 protected :
40 
42  U3DSamplePlayer *_u3dApp;
44 
45  //Dtk_tab <Dtk_ID> _tabModels;
46 
47  void _Init();
48  void _Reset();
49 
50 public:
51  Dtk_ErrorStatus InitReader(const Dtk_string& inInputFile);
52 
53 };
54 
55 
56 #endif
57 
U3dReader::~U3dReader
virtual ~U3dReader()
U3dReader::PopulateComponentsTree
Dtk_ErrorStatus PopulateComponentsTree(const Dtk_string &inInputFile, Dtk_MainDocPtr &inoutDocument, Dtk_ComponentPtr &outRootComponent)
Dtk_Reader
Definition: dtk_reader.hpp:15
U3dReader::DesactivateReader
Dtk_ErrorStatus DesactivateReader()
U3dReader::ReadAdditionalInfos
Dtk_ErrorStatus ReadAdditionalInfos(Dtk_Node &inNode, Dtk_ObjectPtr &outEntity)
U3dReader::PopulateComponentsTree
Dtk_ErrorStatus PopulateComponentsTree(const Dtk_tab< Dtk_StreamPtr > &inArrayStream, Dtk_MainDocPtr &inoutDocument, Dtk_ComponentPtr &outRootComponent)
Dtk_string
This is a high level string class.
Definition: dtk_string.hpp:58
U3dReader::ReadComponent
Dtk_ErrorStatus ReadComponent(const Dtk_ComponentPtr &inComponent, Dtk_NodePtr &outRootNode)
U3dReader::ActivateReader
Dtk_ErrorStatus ActivateReader()
Dtk_bool
char Dtk_bool
Definition: define.h:725
U3dReader::GetU3dReader
static U3dReader * GetU3dReader()
U3dReader::EndPopulateComponentsTree
Dtk_ErrorStatus EndPopulateComponentsTree()
U3dReader::_U3dFile
Dtk_string _U3dFile
Definition: dtk_u3dreader.hpp:43
Dtk_Node
This is the Node Class The Dtk_Node object is used to retrieve informations in a Dtk_ComponentPtr obj...
Definition: dtk_maindoc.hpp:230
U3dReader::ReadEntity
Dtk_ErrorStatus ReadEntity(Dtk_Node &inNode, Dtk_EntityPtr &outEntity)
Dtk_ErrorStatus
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
Dtk_SmartPtr
Definition: util_ptr_dtk.hpp:37
U3dReader
Definition: dtk_u3dreader.hpp:7
U3dReader::_Init
void _Init()
U3dReader::InitReader
Dtk_ErrorStatus InitReader(const Dtk_string &inInputFile)
U3dReader::GetFileVersion
Dtk_ErrorStatus GetFileVersion(const Dtk_string &inInputFile, Dtk_string &outVersion)
U3dReader::_u3dApp
U3DSamplePlayer * _u3dApp
Definition: dtk_u3dreader.hpp:42
U3dReader::_readerInstance
static U3dReader * _readerInstance
Definition: dtk_u3dreader.hpp:41
Dtk_tab
This is a high level array class.
Definition: util_stl_dtk.hpp:85
U3dReader::U3dReader
U3dReader()
U3dReader::Enable
static Dtk_bool Enable()
U3dReader::CreateDocument
Dtk_ErrorStatus CreateDocument(const Dtk_string &inInputFile, Dtk_MainDocPtr &outDocument)
U3dReader::_Reset
void _Reset()
U3dReader::EndComponent
Dtk_ErrorStatus EndComponent(Dtk_ComponentPtr &inComponent)