3DCoat  3D-COAT 4.9.xx
3DCoat is the one application that has all the tools you need to take your 3D idea from a block of digital clay all the way to a production ready, fully textured organic or hard surface model.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
gltf::gModel Class Reference

Class of the model to collect of the gltf objects. More...

#include <gltf.h>

Public Member Functions

gSceneList & GetScenes ()
 Gets scene list. More...
 
gAsset & GetAsset ()
 Gets asset object. More...
 
gAccessorList & GetAccessors ()
 Gets accessors to the buffer views. More...
 
gBufferList & GetBuffers ()
 Gets buffers. More...
 
gBufferViewList & GetBufferViews ()
 Gets buffer views. More...
 
gMeshList & GetMeshes ()
 Gets meshes. More...
 
gTextureList & GetTextures ()
 Gets textures. More...
 
gImageList & GetImages ()
 Gets images. More...
 
gNodeList & GetNodes ()
 Get scene nodes. More...
 
gMaterialList & GetMaterials ()
 Gets material list. More...
 
gSamplerList & GetSamplers ()
 Gets sampler list. More...
 
gCameraList & GetCameras ()
 Gets camera list. More...
 
gScene & GetDefScene ()
 Gets the default scene. More...
 
void SetTypeFormat (int _t)
 Set the gltf type format (0-embedded,1-separate,2-binary(unsupported)) More...
 
virtual int toJson (cStr *dst)
 Write the model to the json string format More...
 

Detailed Description

Class of the model to collect of the gltf objects.

+ Inheritance diagram for gltf::gModel:

Member Function Documentation

gAccessorList& gltf::gModel::GetAccessors ( )
inline

Gets accessors to the buffer views.

Returns

Referenced by gltf::gltfExporter::writeAccessorsAndBuffers().

gAsset& gltf::gModel::GetAsset ( )
inline

Gets asset object.

Returns
gBufferList& gltf::gModel::GetBuffers ( )
inline

Gets buffers.

Returns

Referenced by gltf::gltfExporter::writeAccessorsAndBuffers().

gBufferViewList& gltf::gModel::GetBufferViews ( )
inline
gCameraList& gltf::gModel::GetCameras ( )
inline

Gets camera list.

Returns

Referenced by gltf::gltfExporter::writeCameras().

gScene& gltf::gModel::GetDefScene ( )
inline

Gets the default scene.

Returns
gImageList& gltf::gModel::GetImages ( )
inline

Gets images.

Returns

Referenced by gltf::gltfExporter::writeTextures().

gMaterialList& gltf::gModel::GetMaterials ( )
inline

Gets material list.

Returns

Referenced by gltf::gltfExporter::writeMaterials().

gMeshList& gltf::gModel::GetMeshes ( )
inline
gNodeList& gltf::gModel::GetNodes ( )
inline

Get scene nodes.

Returns

Referenced by gltf::gltfExporter::writeTreeNodes().

gSamplerList& gltf::gModel::GetSamplers ( )
inline

Gets sampler list.

Returns

Referenced by gltf::gltfExporter::writeTextures().

gSceneList& gltf::gModel::GetScenes ( )
inline

Gets scene list.

Returns

Referenced by gltf::gltfExporter::writeTreeNodes().

gTextureList& gltf::gModel::GetTextures ( )
inline

Gets textures.

Returns

Referenced by gltf::gltfExporter::writeTextures().

void gltf::gModel::SetTypeFormat ( int  _t)
inline

Set the gltf type format (0-embedded,1-separate,2-binary(unsupported))

Parameters
_ttype format

Referenced by gltf::gltfExporter::Export().

int gltf::gModel::toJson ( cStr *  dst)
virtual

Write the model to the json string format

Parameters
dstpointer to the json string
Returns
Return true if success otherwise return false.

References TagsList::PutTagsIntoJsonString().

Referenced by gltf::gltfExporter::Export().


The documentation for this class was generated from the following files: