A VTFx model file existing in memory. More...
Public Member Functions | |
VTFxMemoryFile () | |
Constructs an empty memory file. More... | |
VTFxMemoryFile (const VTFxMemoryFile &other) | |
Constructs a memory file by copying from another memory file. More... | |
VTFxMemoryFile & | operator= (const VTFxMemoryFile &other) |
Assigns other to this memory file and returns a reference to this memory file. More... | |
void | setFromRawData (unsigned char data[], size_t dataSizeInBytes) |
Sets the memory file from a chunk of raw data. More... | |
bool | save (const Str &filename) const |
Saves the memory file to disk using the specified file name. More... | |
![]() | |
void | addRef () const |
Increments the reference count for this object. More... | |
void | release () const |
Decrements the reference count for this object. More... | |
int | refCount () const |
Returns the reference count for this object. More... | |
void | setRefCountZero () const |
Sets the ref count to zero, but DOES NOT delete the object. More... | |
A VTFx model file existing in memory.
The VTFx file formats is Ceetron's own formats tailored specifically to carry structural mechanics and fluid dynamics data in a very compact form. The VTFxMemoryFile allows you to create a VTFx file without writing it to disk. This allows the program to communicate model data without intermediate storage on physical disk.
cee::ug::VTFxMemoryFile::VTFxMemoryFile | ( | ) |
Constructs an empty memory file.
cee::ug::VTFxMemoryFile::VTFxMemoryFile | ( | const VTFxMemoryFile & | other | ) |
Constructs a memory file by copying from another memory file.
VTFxMemoryFile & cee::ug::VTFxMemoryFile::operator= | ( | const VTFxMemoryFile & | other | ) |
Assigns other to this memory file and returns a reference to this memory file.
bool cee::ug::VTFxMemoryFile::save | ( | const Str & | filename | ) | const |
Saves the memory file to disk using the specified file name.
Returns true if file was successfully saved.
void cee::ug::VTFxMemoryFile::setFromRawData | ( | unsigned char | data[], |
size_t | dataSizeInBytes | ||
) |
Sets the memory file from a chunk of raw data.