Assimp v5.2.2 (January 2022)
The Asset-Importer-Lib API documentation.
|
#include <Exporter.hpp>
Public Types | |
typedef std::map< KeyType, std::function< void *(void *)> > | CallbackPropertyMap |
typedef std::map< KeyType, ai_real > | FloatPropertyMap |
typedef std::map< KeyType, int > | IntPropertyMap |
typedef unsigned int | KeyType |
typedef std::map< KeyType, aiMatrix4x4 > | MatrixPropertyMap |
typedef std::map< KeyType, std::string > | StringPropertyMap |
Public Member Functions | |
ExportProperties () | |
Standard constructor. More... | |
ExportProperties (const ExportProperties &other) | |
Copy constructor. More... | |
bool | GetPropertyBool (const char *szName, bool bErrorReturn=false) const |
Get a boolean configuration property. More... | |
std::function< void *(void *)> | GetPropertyCallback (const char *szName) const |
ai_real | GetPropertyFloat (const char *szName, ai_real fErrorReturn=10e10f) const |
Get a floating-point configuration property. More... | |
int | GetPropertyInteger (const char *szName, int iErrorReturn=0xffffffff) const |
Get a configuration property. More... | |
const aiMatrix4x4 | GetPropertyMatrix (const char *szName, const aiMatrix4x4 &sErrorReturn=aiMatrix4x4()) const |
Get a matrix configuration property. More... | |
const std::string | GetPropertyString (const char *szName, const std::string &sErrorReturn="") const |
Get a string configuration property. More... | |
bool | HasPropertyBool (const char *szName) const |
Determine a boolean configuration property has been set. More... | |
bool | HasPropertyCallback (const char *szName) const |
bool | HasPropertyFloat (const char *szName) const |
Determine a boolean configuration property has been set. More... | |
bool | HasPropertyInteger (const char *szName) const |
Determine a integer configuration property has been set. More... | |
bool | HasPropertyMatrix (const char *szName) const |
Determine a Matrix configuration property has been set. More... | |
bool | HasPropertyString (const char *szName) const |
Determine a String configuration property has been set. More... | |
bool | SetPropertyBool (const char *szName, bool value) |
Set a boolean configuration property. More... | |
bool | SetPropertyCallback (const char *szName, const std::function< void *(void *)> &f) |
bool | SetPropertyFloat (const char *szName, ai_real fValue) |
Set a floating-point configuration property. More... | |
bool | SetPropertyInteger (const char *szName, int iValue) |
Set an integer configuration property. More... | |
bool | SetPropertyMatrix (const char *szName, const aiMatrix4x4 &sValue) |
Set a matrix configuration property. More... | |
bool | SetPropertyString (const char *szName, const std::string &sValue) |
Set a string configuration property. More... | |
Public Attributes | |
CallbackPropertyMap | mCallbackProperties |
FloatPropertyMap | mFloatProperties |
List of floating-point properties. More... | |
IntPropertyMap | mIntProperties |
List of integer properties. More... | |
MatrixPropertyMap | mMatrixProperties |
List of Matrix properties. More... | |
StringPropertyMap | mStringProperties |
List of string properties. More... | |
typedef std::map<KeyType, std::function<void *(void *)> > Assimp::ExportProperties::CallbackPropertyMap |
typedef std::map<KeyType, ai_real> Assimp::ExportProperties::FloatPropertyMap |
typedef std::map<KeyType, int> Assimp::ExportProperties::IntPropertyMap |
typedef unsigned int Assimp::ExportProperties::KeyType |
typedef std::map<KeyType, aiMatrix4x4> Assimp::ExportProperties::MatrixPropertyMap |
typedef std::map<KeyType, std::string> Assimp::ExportProperties::StringPropertyMap |
Assimp::ExportProperties::ExportProperties | ( | ) |
Standard constructor.
Assimp::ExportProperties::ExportProperties | ( | const ExportProperties & | other | ) |
Copy constructor.
This copies the configuration properties of another ExportProperties.
|
inline |
Get a boolean configuration property.
Boolean properties are stored on the integer stack internally so it's possible to set them via SetPropertyBool and query them with GetPropertyBool and vice versa.
std::function< void *(void *)> Assimp::ExportProperties::GetPropertyCallback | ( | const char * | szName | ) | const |
ai_real Assimp::ExportProperties::GetPropertyFloat | ( | const char * | szName, |
ai_real | fErrorReturn = 10e10f |
||
) | const |
Get a floating-point configuration property.
int Assimp::ExportProperties::GetPropertyInteger | ( | const char * | szName, |
int | iErrorReturn = 0xffffffff |
||
) | const |
Get a configuration property.
szName | Name of the property. All supported properties are defined in the aiConfig.g header (all constants share the prefix AI_CONFIG_XXX). |
iErrorReturn | Value that is returned if the property is not found. |
const aiMatrix4x4 Assimp::ExportProperties::GetPropertyMatrix | ( | const char * | szName, |
const aiMatrix4x4 & | sErrorReturn = aiMatrix4x4() |
||
) | const |
Get a matrix configuration property.
The return value remains valid until the property is modified.
const std::string Assimp::ExportProperties::GetPropertyString | ( | const char * | szName, |
const std::string & | sErrorReturn = "" |
||
) | const |
Get a string configuration property.
The return value remains valid until the property is modified.
bool Assimp::ExportProperties::HasPropertyBool | ( | const char * | szName | ) | const |
Determine a boolean configuration property has been set.
bool Assimp::ExportProperties::HasPropertyCallback | ( | const char * | szName | ) | const |
bool Assimp::ExportProperties::HasPropertyFloat | ( | const char * | szName | ) | const |
Determine a boolean configuration property has been set.
bool Assimp::ExportProperties::HasPropertyInteger | ( | const char * | szName | ) | const |
Determine a integer configuration property has been set.
bool Assimp::ExportProperties::HasPropertyMatrix | ( | const char * | szName | ) | const |
Determine a Matrix configuration property has been set.
bool Assimp::ExportProperties::HasPropertyString | ( | const char * | szName | ) | const |
Determine a String configuration property has been set.
|
inline |
Set a boolean configuration property.
Boolean properties are stored on the integer stack internally so it's possible to set them via SetPropertyBool and query them with GetPropertyBool and vice versa.
bool Assimp::ExportProperties::SetPropertyCallback | ( | const char * | szName, |
const std::function< void *(void *)> & | f | ||
) |
bool Assimp::ExportProperties::SetPropertyFloat | ( | const char * | szName, |
ai_real | fValue | ||
) |
Set a floating-point configuration property.
bool Assimp::ExportProperties::SetPropertyInteger | ( | const char * | szName, |
int | iValue | ||
) |
Set an integer configuration property.
szName | Name of the property. All supported properties are defined in the aiConfig.g header (all constants share the prefix AI_CONFIG_XXX and are simple strings). |
iValue | New value of the property |
bool Assimp::ExportProperties::SetPropertyMatrix | ( | const char * | szName, |
const aiMatrix4x4 & | sValue | ||
) |
Set a matrix configuration property.
bool Assimp::ExportProperties::SetPropertyString | ( | const char * | szName, |
const std::string & | sValue | ||
) |
Set a string configuration property.
CallbackPropertyMap Assimp::ExportProperties::mCallbackProperties |
FloatPropertyMap Assimp::ExportProperties::mFloatProperties |
List of floating-point properties.
IntPropertyMap Assimp::ExportProperties::mIntProperties |
List of integer properties.
MatrixPropertyMap Assimp::ExportProperties::mMatrixProperties |
List of Matrix properties.
StringPropertyMap Assimp::ExportProperties::mStringProperties |
List of string properties.