DATAKIT API  V2025.1
gltfw.hpp
Go to the documentation of this file.
1 #ifndef _DTK_GLTFW_HPP
2 #define _DTK_GLTFW_HPP
3 
4 #include "def/define.h"
8 #include "util/error_dtk.hpp"
9 #include "util/util_mesh_dtk.hpp"
10 
13 
14 namespace DtkGltf
15 {
16  class GLTF_Writer_Private;
17 }//namespace DtkGltf
18 
22 {
23 private:
24  DtkGltf::GLTF_Writer_Private * _Private;// = new GLTF_Writer_Private;
25 private:
26  // Anticopy methods.
28  Dtk_GltfWriter& operator=(const Dtk_GltfWriter&) { return *this; }
29 public:
34  Dtk_GltfWriter(const Dtk_string& inFicout,Dtk_ErrorStatus& outErr);
38  void ConfigUseTexture(Dtk_bool inValue);
56  Dtk_bool& isnewInstance, const Dtk_transfo& inTrans=Dtk_transfo(), const Dtk_RGB& inRgb = Dtk_RGB());
61 };
62 
63 #endif // _DTK_gltfw_HPP
DtkGltf
Definition: gltfw.hpp:15
Dtk_transfo
This is the Transformation dedicated class.
Definition: dtk_transfo.hpp:19
Dtk_GltfWriter
GLTF Writer main class.
Definition: gltfw.hpp:22
Dtk_string
This is a high level string class.
Definition: dtk_string.hpp:58
Dtk_GltfWriter::~Dtk_GltfWriter
~Dtk_GltfWriter()
Destructor.
Dtk_GltfWriter::ConfigUseTexture
void ConfigUseTexture(Dtk_bool inValue)
Set config to use Texture or Color in mesh writing.
Dtk_bool
char Dtk_bool
Definition: define.h:725
util_mesh_dtk.hpp
Dtk_Int64
int64_t Dtk_Int64
Definition: define.h:692
Dtk_GltfWriter::WriteMesh
Dtk_ErrorStatus WriteMesh(const Dtk_MeshPtr &inMesh)
Add a Mesh in current instance node. Supports colors, normals per vertex.
error_dtk.hpp
Dtk_ErrorStatus
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
Dtk_SmartPtr
Definition: util_ptr_dtk.hpp:37
dtk_transfo.hpp
define.h
dtk_string.hpp
Dtk_GltfWriter::OpenInstance
Dtk_ErrorStatus OpenInstance(const Dtk_string &inInstanceName, Dtk_Int64 inProtoID, Dtk_bool &isnewInstance, const Dtk_transfo &inTrans=Dtk_transfo(), const Dtk_RGB &inRgb=Dtk_RGB())
Open a new instance node for internal tree.
Dtk_GltfWriter::Dtk_GltfWriter
Dtk_GltfWriter(const Dtk_string &inFicout, Dtk_ErrorStatus &outErr)
Constructor : Initialize the writer for a Gltf File.
catiav5w::inInstanceName
const Dtk_string & inInstanceName
Definition: catiav5w.hpp:618
Dtk_GltfWriter::CloseLastInstance
Dtk_ErrorStatus CloseLastInstance()
Close last instance node for internal tree. It should be called as many time as OpenInstance is calle...
dtk_rgb.hpp
Dtk_RGB
Definition: dtk_rgb.hpp:7