CATCH
 All Classes Functions
Public Member Functions | List of all members
Catch::CatJtk Class Reference

Public Member Functions

 CatJtk ()
 
 ~CatJtk ()
 
CAT_RESULT init ()
 
CAT_RESULT loadJTFile (std::string filepath)
 
CAT_RESULT setTrimeshCallback (CatJtkTrimeshCallback callback)
 

Constructor & Destructor Documentation

Catch::CatJtk::CatJtk ( )

Public Constructor

Catch::CatJtk::~CatJtk ( )

Public Destructor

Member Function Documentation

CAT_RESULT Catch::CatJtk::init ( )

One time initialization Initializes Underlying JtkEntityFactory

Returns
CAT_RESULT_OK if initialized successfully
CAT_RESULT Catch::CatJtk::loadJTFile ( std::string  filepath)

Loads a JT file by filepath It is recomended that setTrimeshCallback be used before loading a file in order to have access to model meshes in JT file

Parameters
filepathstring type file path to JT file to be loaded
Returns
CAT_RESULT_OK if file loaded succesfully, CAT_RESULT_FILE_NOT_FOUND, or CAT_RESULT_ERROR
CAT_RESULT Catch::CatJtk::setTrimeshCallback ( CatJtkTrimeshCallback  callback)

Set the callback to be used for loading each individual model mesh

Returns
CAT_RESULT_OK if callback was set