FormIt C++ API
v23.0.0 (2023.0.0)
|
Classes | |
struct | FormIt::Files::FileOptions |
FormIt::Files::FileOptions struct. More... | |
class | FormIt::Files::FileOptionsList |
FormIt::Files::FileOptionsList class. More... | |
Functions | |
FORMIT_CORE_EXPORT FormIt::Files::FileOptionsList | FormIt::Files::GetSupportedFilesList (const FormIt::Files::Action &action, const FormIt::Files::ContentType &type, bool useDevFormat=false, const FormIt::UI::FormItDialogBox &dialog=FormIt::UI::FormItDialogBox::Local) |
Get Platform's supported files. More... | |
FORMIT_CORE_EXPORT bool | FormIt::Files::IsFileSupported (const 1::string &extension, const FormIt::Files::Action &action, const FormIt::Files::ContentType &type, const FormIt::UI::FormItDialogBox &dialog=FormIt::UI::FormItDialogBox::Local) |
Check if a file extension is supported. More... | |
FormIt::Files::DECL (Png, Types::PNG,"PNG file (*.png)","png") DECL(Json | |
xBaseOption class declaration These string are duplicated in the cpp with a TR() for localization. More... | |
FormIt::Files::DECL (Atfx, Types::ATFX,"ATF XML file (*.atfx)","atfx") | |
FormIt::Files::DECL (Wmv, Types::WMV,"WMV Video file (*.wmv)","wmv") | |
FormIt::Files::DECL (Mp4, Types::MP4,"MP4 Video file (*.mp4)","mp4") | |
FormIt::Files::DECL_IMPORT (Png) DECL_START_EXPORT(Png) int m_width | |
xImportsOptions classes declaration More... | |
Variables | |
Solid def file | FormIt::Files::json |
int | FormIt::Files::m_height |
bool | FormIt::Files::m_doubleSided = false |
bool | FormIt::Files::m_isAscii = false |
::string | FormIt::Files::m_version = "" |
blank indicates latest version More... | |
bool | FormIt::Files::m_withHistory = false |
|
strong |
A file action refers to Open/Save/Export a type of FormIt::Files::ContentType enum class.
Enumerator | |
---|---|
Open | |
Save | |
Export | |
Import |
|
strong |
|
strong |
All existing file types in FormIt.
Enumerator | |
---|---|
AXM | |
AXMF | |
AXMB | |
FBX | |
OBJ | |
SAT | |
STL | |
WSM | |
LMV | |
SKP | |
AutocadDXF | |
AutocadDWG | |
ColladaDAE | |
PNG | |
JPG | |
JPEG | |
SPD | |
JS | |
JSON | |
ATFX | |
WMV | |
MP4 |
FormIt::Files::DECL | ( | Png | , |
Types::PNG | , | ||
"PNG file (*.png)" | , | ||
"png" | |||
) |
xBaseOption class declaration These string are duplicated in the cpp with a TR() for localization.
If you add a new file type you need to add it to the cpp file as well.
FormIt::Files::DECL | ( | Atfx | , |
Types::ATFX | , | ||
"ATF XML file (*.atfx)" | , | ||
"atfx" | |||
) |
FormIt::Files::DECL | ( | Wmv | , |
Types::WMV | , | ||
"WMV Video file (*.wmv)" | , | ||
"wmv" | |||
) |
FormIt::Files::DECL | ( | Mp4 | , |
Types::MP4 | , | ||
"MP4 Video file (*.mp4)" | , | ||
"mp4" | |||
) |
FormIt::Files::DECL_IMPORT | ( | Png | ) |
xImportsOptions classes declaration
xExportOptions classes declaration < PngExportOptions
FORMIT_CORE_EXPORT FormIt::Files::FileOptionsList FormIt::Files::GetSupportedFilesList | ( | const FormIt::Files::Action & | action, |
const FormIt::Files::ContentType & | type, | ||
bool | useDevFormat = false , |
||
const FormIt::UI::FormItDialogBox & | dialog = FormIt::UI::FormItDialogBox::Local |
||
) |
Get Platform's supported files.
action | File action (eg: Load or Save file) | |
type | File's content type (eg: 3D Model or Image) | |
type | dev format or not | |
type | Dialogbox in which we have to show the supported file formats | |
[in] | useDevFormat | |
[in] | dialog |
FORMIT_CORE_EXPORT bool FormIt::Files::IsFileSupported | ( | const 1::string & | extension, |
const FormIt::Files::Action & | action, | ||
const FormIt::Files::ContentType & | type, | ||
const FormIt::UI::FormItDialogBox & | dialog = FormIt::UI::FormItDialogBox::Local |
||
) |
Check if a file extension is supported.
extension | File extension to check if is supported | |
action | File action (eg: Load or Save file) | |
type | File's content type (eg: 3D Model or Image) | |
[in] | dialog |
Solid def file FormIt::Files::json |
bool FormIt::Files::m_doubleSided = false |
int FormIt::Files::m_height |
bool FormIt::Files::m_isAscii = false |
::string FormIt::Files::m_version = "" |
blank indicates latest version
bool FormIt::Files::m_withHistory = false |