  | 
  
    DATAKIT API
    V2025.4
    
   
   | 
           
 | 
 
 
 
 
 
 
{
     int                           status;
 
     cout << endl << "----------------------------------------------" << endl;
     cout << "Collada Write start" << endl;
 
     
     outputDirectory = inResultDirectory + L"Collada/";
     outputFileName = outputDirectory + L"sample.dae";
 
     
 
     
 
     
 
     
 
 
     if( status != 0 )
     {
          return status;
     }
 
     
 
     
 
     
 
     
 
     
     {
          nodeName = "RootNode";
     }
     
     {
          nodeName = "Facetted data";
     }
 
     
     {
          nodeName = "Cube";
     }
     cubeMesh->info()->AddRenderInfos( renderInfos );
     
     
 
     
     {
          nodeName = "Cylinder";
     }
     
     
     
 
     if( reinstanciate )
     {
          
          {
               nodeName = "Facetted data (Reinstanciated)";
          }
          
          
     }
     
     
 
     cout << 
"=> " << outputFileName.
c_str() << endl << 
"Collada Write end" << endl;
 
 
     return err;
}
 
 
    
 
 
uint32_t Dtk_ID
Definition: define.h:691
 
This is the Transformation dedicated class.
Definition: dtk_transfo.hpp:19
 
Dtk_MeshPtr CreateMeshCube()
Mesh Cube sample.
Definition: testcreatemesh.cpp:209
 
DtkErrorStatus EndNode()
End the node.
 
void setZdir(const Dtk_dir &Z)
Set a new Z vector.
 
DtkErrorStatus InitWrite(const Dtk_string &inOutputFile, const Dtk_string &inLogFile, WriteOptions &inOptions)
Initialize the Collada Writer
 
#define DTK_TRUE
Definition: define.h:729
 
This is a high level string class.
Definition: dtk_string.hpp:58
 
char Dtk_bool
Definition: define.h:727
 
DtkErrorStatus EndWrite()
Creation of the output file and free the Collada Writer
 
void setXdir(const Dtk_dir &X)
Set a new X vector.
 
void FillFacesColors(Dtk_MeshPtr &inoutCubeMesh)
Filling mesh faces with colors.
Definition: testcreatemesh.cpp:246
 
This class provides several options to tune Collada Writer. It must be provided to Colladaw::InitWrit...
Definition: colladaw.hpp:23
 
Dtk_bool ConvertRenderInfos
Definition: colladaw.hpp:33
 
static Dtk_SmartPtr< Dtk_Entity > DtkDynamicCast(const Dtk_SmartPtr< T2 > &p)
Definition: util_ptr_dtk.hpp:101
 
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
 
Dtk_RenderInfosPtr CreateCubeRenderInfos()
Definition: testcreatemesh.cpp:500
 
Definition: util_ptr_dtk.hpp:37
 
Dtk_string dtkTypeError(Dtk_Int32 errNumero)
 
const char * c_str() const
Retrieve the ASCII conversion string.
 
Dtk_MeshPtr CreateMeshCylinder(int nbpoints)
Mesh Cylinder sample.
Definition: testcreatemesh.cpp:339
 
void setYdir(const Dtk_dir &Y)
Set a new Y vector.
 
int mkdir() const
File Utility : Create a Directory.
 
void FixPathSeparator()
File Utility : Fixes path separator consistency. It lets you replace the '\' or '/' by the OS needed ...
 
int ColladaWriteSample(const Dtk_string &inResultDirectory)
Definition: testlibcolladawrite.cpp:16
 
DtkErrorStatus ReinstanciatePrototype(Dtk_ID inID)
Reinstanciate a node.
 
This is a high level array class.
Definition: util_stl_dtk.hpp:85
 
void addTranslate(const Dtk_dir &V)
Translate the Dtk_transfo.
 
DtkErrorStatus InitNode(Dtk_string &inNodeName, const Dtk_transfo &inTransfo, Dtk_InfoPtr &inInfo, Dtk_ID &outID)
Initialize a node.
 
@ dtkNoError
Definition: error_dtk.hpp:144
 
static Dtk_SmartPtr< Dtk_Info > create()
Calls default constructor to allocate a new object.
 
Dtk_ErrorStatus WriteEntity(const Dtk_EntityPtr &inEntity)
Write the entity provided in parameter in a node.
 
This is a mathematical direction class.
Definition: dtk_dir.hpp:15