Export the entire contents of a DataSource to a VTFx file. More...
Public Member Functions | |
ExportDataSourceVTFx (cee::ug::DataSource *dataSource) | |
Creates an export object prepared to export the given data sources. More... | |
void | setVendorNameAndApplication (const Str &vendorName, const Str &vendorApplication) |
Sets the name of the vendor and application from which it is exported from. More... | |
void | setCompressionLevel (unsigned int compressionLevel) |
Sets the level of compression of the VTFx file. More... | |
void | setPassword (const Str &password) |
Sets the password used for file encryption. An empty password means no encryption, which is the default. More... | |
void | setCreateSignature (bool on) |
When this flag is on, a digital signature is added to the VTFx file. The default is off. More... | |
void | setWriteAsciiDataFiles (bool on) |
When this flag is on, the files in the database are written in Ascii format. The default is off. More... | |
void | setExportSurfaceOnly (bool on) |
When this flag is on, only the boundary surface of the model will be stored. More... | |
void | setRelativeDisplacements (bool on) |
When this flag is on, displacements will be considered as relative. More... | |
void | setExportDerivedResultAsSelfContained (bool on) |
When this flag is on, scalars derived from tensor or vector data will be exported as independent scalar. More... | |
bool | write (std::vector< int > stateIds, const cee::ug::DataStateSpec &spec, const Str &fileName) |
Writes the given states with given specification from the content of the data source in the given file using the current export settings. More... | |
bool | write (const Str &fileName) |
Writes the content of the data source in the given file using the current export settings. More... | |
Export the entire contents of a DataSource to a VTFx file.
The VTFx file format is Ceetron's own format tailored specifically to carry structural mechanics and fluid dynamics data in a very compact form.
By utilizing XML and zip compression, the VTFx format expands the functionality and usefulness of the well established VTF format by adding features for security and adaptability without compromising on the file size.
Example:
cee::exp::ExportDataSourceVTFx::ExportDataSourceVTFx | ( | cee::ug::DataSource * | dataSource | ) |
Creates an export object prepared to export the given data sources.
void cee::exp::ExportDataSourceVTFx::setCompressionLevel | ( | unsigned int | compressionLevel | ) |
Sets the level of compression of the VTFx file.
Values range from 0 to 9. A value of 0 means no compression, values greater than 0 indicate increasing compression performance and hence larger processing time. The default is 6.
void cee::exp::ExportDataSourceVTFx::setCreateSignature | ( | bool | on | ) |
When this flag is on, a digital signature is added to the VTFx file. The default is off.
void cee::exp::ExportDataSourceVTFx::setExportDerivedResultAsSelfContained | ( | bool | on | ) |
When this flag is on, scalars derived from tensor or vector data will be exported as independent scalar.
void cee::exp::ExportDataSourceVTFx::setExportSurfaceOnly | ( | bool | on | ) |
When this flag is on, only the boundary surface of the model will be stored.
void cee::exp::ExportDataSourceVTFx::setPassword | ( | const Str & | password | ) |
Sets the password used for file encryption. An empty password means no encryption, which is the default.
void cee::exp::ExportDataSourceVTFx::setRelativeDisplacements | ( | bool | on | ) |
When this flag is on, displacements will be considered as relative.
void cee::exp::ExportDataSourceVTFx::setVendorNameAndApplication | ( | const Str & | vendorName, |
const Str & | vendorApplication | ||
) |
Sets the name of the vendor and application from which it is exported from.
void cee::exp::ExportDataSourceVTFx::setWriteAsciiDataFiles | ( | bool | on | ) |
When this flag is on, the files in the database are written in Ascii format. The default is off.
bool cee::exp::ExportDataSourceVTFx::write | ( | std::vector< int > | stateIds, |
const cee::ug::DataStateSpec & | spec, | ||
const Str & | fileName | ||
) |
Writes the given states with given specification from the content of the data source in the given file using the current export settings.
bool cee::exp::ExportDataSourceVTFx::write | ( | const Str & | fileName | ) |
Writes the content of the data source in the given file using the current export settings.