FormIt C++ API
v23.0.0 (2023.0.0)
|
Functions | |
FORMIT_CORE_EXPORT size_t | GetRootNode () |
Get the id of the root. More... | |
FORMIT_CORE_EXPORT size_t | GetParentNode (size_t id) |
Get the parent of the given node. More... | |
FORMIT_CORE_EXPORT void | GetChildrenNodes (size_t parent) |
Gets all the children nodes for the given parent. More... | |
FORMIT_CORE_EXPORT::vector< size_t > | GetChildrenNodesDirect (size_t parent) |
Get the ids of the children nodes or materials. More... | |
FORMIT_CORE_EXPORT::string | GetNodeName (size_t id) |
Get the display name of the node. More... | |
FORMIT_CORE_EXPORT bool | GetMaterialPreview (size_t id, 1::vector< unsigned char > &preview) |
Get the thumbnail preview of a sample material and its resolution. More... | |
FORMIT_CORE_EXPORT bool | GetMaterialData (size_t id, FormIt::Materials::MaterialData &data) |
Get data of a sample material. More... | |
FORMIT_CORE_EXPORT bool | IsContainerNode (size_t id) |
Is the node a container or material. More... | |
FORMIT_CORE_EXPORT bool | IsMaterialServerNode (size_t id) |
Is the node from the material server. More... | |
FORMIT_CORE_EXPORT bool | IsAXMFileNode (size_t id) |
Is the node from an axm file. More... | |
FORMIT_CORE_EXPORT bool | IsValidNode (size_t id) |
Is the node id valid. More... | |
FORMIT_CORE_EXPORT void | Reload (size_t nodeId) |
Reload all the children of the given node. More... | |
FORMIT_CORE_EXPORT void | SetSampleMaterialsDirectories (const 1::vector< 1::string > &dirs) |
Save the sample materials directories to the app settings. More... | |
FORMIT_CORE_EXPORT::vector< 1::string > | GetSampleMaterialsDirectories () |
Get the sample materials directories from the app settings. More... | |
FORMIT_CORE_EXPORT size_t | GetNodeFromPath (1::string path) |
Get the node id from the given path. More... | |
FORMIT_CORE_EXPORT::string | GetPathFromNode (size_t nodeId) |
Get the path from the given node id. More... | |
FORMIT_CORE_EXPORT void | CreateServerDB (const 1::string &outputPath="") |
Create a database with json files from the cache. More... | |
FORMIT_CORE_EXPORT void | CreateCacheFromAXMFiles (const 1::string &inputDir) |
Creates the Sample Materials cache from axm files in the given directory The resulting folder will in the same location as the cache and will be named "SampleMaterialsCacheEdited" to not override the existing cache. More... | |
FORMIT_CORE_EXPORT void | ClearMaterialsCacheDirectory () |
Deletes the whole cache directory. More... | |
FORMIT_CORE_EXPORT::string | GetPathFromMaterial (size_t materialId) |
Get the path to the file that generates this material. More... | |