DATAKIT SDK  V2026.2
colladaw.hpp
Go to the documentation of this file.
1 #ifndef __COLLADAW_HPP__
2 #define __COLLADAW_HPP__
3 #include "def/define.h"
4 #include "util/error_dtk.hpp"
5 #include "util/util_ptr_dtk.hpp"
8 
9 //! \brief Exported APIs for Collada (.dae) Write Library
10 namespace Colladaw
11 {
12  //! \class WriteOptions
13  //! \brief This class provides several options to tune Collada Writer.\n
14  //! It must be provided to Colladaw::InitWrite method.
15  //! \code
16  //! //...
17  //! Dtk_string LogFile = L"MyLogFile.log";
18  //! Colladaw::WriteOptions ColladaOptions;
19  //! Dtk_ErrorStatus err = Colladaw::InitWrite( LogFile, ColladaOptions);
20  //! //...
21  //! \endcode
23  {
24  protected:
25 
26  public:
27  //! \BaseConstructor
29 
30  //! \BaseDestructor
32 
37  };
38 
39  //! \brief Initialize the Collada Writer
40  //! \return dtkNoError if it is OK.
41  //! \param [in] inOutputFile : Output file name
42  //! \param [in] inLogFile : Log file
43  //! \param [in] inOptions : Options
44  //! \remark This function is the first call for the writer, it must me called after Dtk_API::StartAPI(...)
45  DtkErrorStatus InitWrite(const Dtk_string& inOutputFile, const Dtk_string& inLogFile, WriteOptions& inOptions);
46 
47  //! \brief Creation of the output file and free the Collada Writer
48  //! \return dtkNoError if it is OK.
49  //! \remark used as the last function used for the writer.
51 
52  //! \brief Write the entity provided in parameter in a node.
53  //! \param [in] inEntity : The Entity to be written
54  //! \return dtkNoError if it is OK.
55  //! \remark This function is used to write entities (only Dtk_MeshPtr ) .
56  //! \remark The entity is stored in current node .
58 
59  //! \brief Write the entity provided in parameter in a node.
60  //! \param [in] inEntity : The Entity to be written
61  //! \param [out] outID : The ID of the written entity
62  //! \return dtkNoError if it is OK.
63  //! \remark This function is used to write entities (only Dtk_MeshPtr) .
64  //! \remark The entity is stored in current node .
66 
67  //! \brief Initialize a node.
68  //! \param [in] inNodeName : The name of the node
69  //! \param [in] inTransfo : The matrix of the node
70  //! \param [in] inInfo : The infos (attributes) of the node
71  //! \param [out] outID : The identifier of the node
72  //! \return dtkNoError if it is OK.
73  //! \remark The node is set as current node children .
74  //! \remark To close the node you will need to call EndNode() function .
76 
77  //! \brief Initialize a node.
78  //! \param [in] inNodeName : The name of the node
79  //! \param [in] inTransfo : The matrix of the node
80  //! \return dtkNoError if it is OK.
81  //! \remark The node is set as current node children .
82  //! \remark To close the node you will need to call EndNode() function .
84 
85  //! \brief End the node.
86  //! \return dtkNoError if it is OK.
88 
89  //! \brief Reinstanciate a node.
90  //! \param [in] inID : A unique identifier of the node to be reinstanciated
91  //! \return dtkNoError if it is OK.
93 
94 }
95 
96 #endif
Dtk_ID
uint32_t Dtk_ID
Definition: define.h:681
Dtk_transfo
This is the Transformation dedicated class.
Definition: dtk_transfo.hpp:19
Colladaw::EndNode
DtkErrorStatus EndNode()
End the node.
Colladaw::InitWrite
DtkErrorStatus InitWrite(const Dtk_string &inOutputFile, const Dtk_string &inLogFile, WriteOptions &inOptions)
Initialize the Collada Writer
catiav5w::inTransfo
const Dtk_string const Dtk_transfo & inTransfo
Definition: catiav5w.hpp:622
DTK_TRUE
#define DTK_TRUE
Definition: define.h:719
Dtk_UInt32
uint32_t Dtk_UInt32
Definition: define.h:680
Dtk_string
This is a high level string class.
Definition: dtk_string.hpp:53
Colladaw::WriteOptions::ReverseTransparency
Dtk_bool ReverseTransparency
Definition: colladaw.hpp:34
Colladaw::WriteOptions::~WriteOptions
~WriteOptions()
Destructor.
Definition: colladaw.hpp:31
DTK_FALSE
#define DTK_FALSE
Definition: define.h:720
Dtk_bool
char Dtk_bool
Definition: define.h:717
Colladaw::EndWrite
DtkErrorStatus EndWrite()
Creation of the output file and free the Collada Writer
Colladaw::WriteOptions::NoInstanceNode
Dtk_bool NoInstanceNode
Definition: colladaw.hpp:35
Colladaw::WriteOptions
This class provides several options to tune Collada Writer. It must be provided to Colladaw::InitWrit...
Definition: colladaw.hpp:23
Colladaw
Exported APIs for Collada (.dae) Write Library.
Definition: colladaw.hpp:11
Colladaw::WriteOptions::WriteOptions
WriteOptions()
Default constructor.
Definition: colladaw.hpp:28
Colladaw::WriteOptions::ConvertRenderInfos
Dtk_bool ConvertRenderInfos
Definition: colladaw.hpp:33
error_dtk.hpp
Dtk_ErrorStatus
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
Dtk_SmartPtr
Definition: util_ptr_dtk.hpp:37
dtk_transfo.hpp
Colladaw::ReinstanciatePrototype
DtkErrorStatus ReinstanciatePrototype(Dtk_ID inID)
Reinstanciate a node.
util_ptr_dtk.hpp
define.h
Colladaw::WriteOptions::Version
Dtk_UInt32 Version
Definition: colladaw.hpp:36
Pdfw::inInfo
Dtk_tab< Dtk_dir > Dtk_ID Dtk_InfoPtr inInfo
Definition: pdfw.hpp:677
Colladaw::InitNode
DtkErrorStatus InitNode(Dtk_string &inNodeName, const Dtk_transfo &inTransfo, Dtk_InfoPtr &inInfo, Dtk_ID &outID)
Initialize a node.
dtk_string.hpp
Pdfw::outID
Dtk_tab< Dtk_dir > Dtk_ID & outID
Definition: pdfw.hpp:676
Colladaw::WriteEntity
Dtk_ErrorStatus WriteEntity(const Dtk_EntityPtr &inEntity)
Write the entity provided in parameter in a node.