#include <kfbxiosettings.h>
All settings are organized in a property hierarchy. A node of settings may contain a bunch of information related to an operation (ex: import / export). It may also contain informations related to a user dialog offering user options.
Definition at line 165 of file kfbxiosettings.h.
Public Member Functions |
|
virtual void | Destruct (bool pRecursive, bool pDependents) |
KFbxProperty | AddPropertyGroup (char const *pName, KFbxDataType const &pDataType=KFbxDataType(), char const *pLabel="") |
Add a property group under the root prop.
|
|
KFbxProperty | AddPropertyGroup (KFbxProperty const &pParentProperty, char const *pName, KFbxDataType const &pDataType=KFbxDataType(), char const *pLabel="", bool pVisible=true, bool pSavable=true, bool pEnabled=true) |
Add a property group under another parent
prop. |
|
KFbxProperty | AddProperty (KFbxProperty const &pParentProperty, char const *pName, KFbxDataType const &pDataType=KFbxDataType(), char const *pLabel="", void const *pValue=NULL, EFbxType pValueType=eUNIDENTIFIED, bool pVisible=true, bool pSavable=true, bool pEnabled=true) |
Add a property under another parent prop
with a value to set. |
|
KFbxProperty | AddPropertyMinMax (KFbxProperty const &pParentProperty, char const *pName, KFbxDataType const &pDataType=KFbxDataType(), char const *pLabel="", void const *pValue=NULL, double const *pMinValue=NULL, double const *pMaxValue=NULL, EFbxType pValueType=eUNIDENTIFIED, bool pVisible=true, bool pSavable=true, bool pEnabled=true) |
Add a property under another parent prop
with a value to set and a min max values. |
|
KFbxProperty | GetProperty (char const *pName) const |
get a prop by description ex:
"Export|Animation|Bake" |
|
KFbxProperty | GetProperty (KFbxProperty const &pParentProperty, char const *pName) const |
get prop by description from a parent
property |
|
bool | GetBoolProp (char const *pName, bool pDefValue) const |
get a bool prop by prop path |
|
void | SetBoolProp (char const *pName, bool pValue) |
set a bool prop by prop path |
|
double | GetDoubleProp (char const *pName, double pDefValue) const |
get a double prop by prop path |
|
void | SetDoubleProp (char const *pName, double pValue) |
set a double prop by prop path |
|
int | GetIntProp (char const *pName, int pDefValue) const |
get a int prop by prop path |
|
void | SetIntProp (char const *pName, int pValue) |
set a int prop by prop path |
|
KTime | GetKTimeProp (char const *pName, KTime pDefValue) const |
get a KTime prop by prop
path |
|
void | SetKTimeProp (char const *pName, KTime pValue) |
set a KTime prop by prop
path |
|
KString | GetEnumProp (char const *pName, KString pDefValue) const |
get an enum prop by prop path |
|
int | GetEnumProp (char const *pName, int pDefValue) const |
get an enum prop by prop path |
|
int | GetEnumIndex (char const *pName, KString pValue) const |
get an enum prop by prop path |
|
void | SetEnumProp (char const *pName, KString pValue) |
set an enum prop by prop path |
|
void | SetEnumProp (char const *pName, int pValue) |
set an enum prop by prop path |
|
void | RemoveEnumPropValue (char const *pName, KString pValue) |
remove an enum prop by enum value |
|
void | EmptyEnumProp (char const *pName) |
empty all the values of the enum prop
|
|
bool | IsEnumExist (KFbxProperty &pProp, KString &enumString) const |
check enum value if present |
|
int | GetEnumIndex (KFbxProperty &pProp, KString &enumString, bool pNoCase=false) const |
get enum index |
|
bool | SetFlag (char const *pName, FbxPropertyFlags::eFbxPropertyFlags propFlag, bool pValue) |
set a specific flag value on a specific
property. |
|
KString | GetStringProp (char const *pName, KString pDefValue) const |
get a string prop by prop path |
|
void | SetStringProp (char const *pName, KString pValue) |
set a string prop by prop path |
|
virtual bool | ReadXMLFile (KString &path) |
Load the settings hierarchy from an XML
file. |
|
virtual bool | WriteXMLFile (KString &path) |
Write the settings hierarchy to an XML file.
|
|
bool | WriteXmlPropToFile (KString &pFullPath, KString &propPath) |
Write the settings hierarchy to an XML file.
|
virtual void Destruct | ( | bool | pRecursive, | |
bool | pDependents | |||
) | [virtual] |
KFbxProperty AddPropertyGroup | ( | char const * | pName, | |
KFbxDataType const & | pDataType = KFbxDataType() , |
|||
char const * | pLabel = "" |
|||
) |
Add a property group under the root prop.
pName | ||
pDataType | ||
pLabel |
KFbxProperty AddPropertyGroup | ( | KFbxProperty const & | pParentProperty, | |
char const * | pName, | |||
KFbxDataType const & | pDataType = KFbxDataType() , |
|||
char const * | pLabel = "" , |
|||
bool | pVisible = true , |
|||
bool | pSavable = true , |
|||
bool | pEnabled = true |
|||
) |
Add a property group under another parent prop.
pParentProperty | ||
pName | ||
pDataType | ||
pLabel | ||
pVisible | ||
pSavable | ||
pEnabled |
KFbxProperty AddProperty | ( | KFbxProperty const & | pParentProperty, | |
char const * | pName, | |||
KFbxDataType const & | pDataType = KFbxDataType() , |
|||
char const * | pLabel = "" , |
|||
void const * | pValue = NULL , |
|||
EFbxType | pValueType =
eUNIDENTIFIED , |
|||
bool | pVisible = true , |
|||
bool | pSavable = true , |
|||
bool | pEnabled = true |
|||
) |
Add a property under another parent prop with a value to set.
pParentProperty | ||
pName | ||
pDataType | ||
pLabel | ||
pValue | ||
pValueType | ||
pVisible | ||
pSavable | ||
pEnabled |
KFbxProperty AddPropertyMinMax | ( | KFbxProperty const & | pParentProperty, | |
char const * | pName, | |||
KFbxDataType const & | pDataType = KFbxDataType() , |
|||
char const * | pLabel = "" , |
|||
void const * | pValue = NULL , |
|||
double const * | pMinValue = NULL , |
|||
double const * | pMaxValue = NULL , |
|||
EFbxType | pValueType =
eUNIDENTIFIED , |
|||
bool | pVisible = true , |
|||
bool | pSavable = true , |
|||
bool | pEnabled = true |
|||
) |
Add a property under another parent prop with a value to set and a min max values.
pParentProperty | ||
pName | ||
pDataType | ||
pLabel | ||
pValue | ||
pMinValue | ||
pMaxValue | ||
pValueType | ||
pVisible | ||
pSavable | ||
pEnabled |
KFbxProperty GetProperty | ( | char const * | pName | ) | const |
get a prop by description ex: "Export|Animation|Bake"
pName |
KFbxProperty GetProperty | ( | KFbxProperty const & | pParentProperty, | |
char const * | pName | |||
) | const |
get prop by description from a parent property
pParentProperty | ||
pName |
bool GetBoolProp | ( | char const * | pName, | |
bool | pDefValue | |||
) | const |
get a bool prop by prop path
pName | ||
pDefValue |
void SetBoolProp | ( | char const * | pName, | |
bool | pValue | |||
) |
set a bool prop by prop path
pName | ||
pValue |
get a double prop by prop path
pName | ||
pDefValue |
void SetDoubleProp | ( | char const * | pName, | |
double | pValue | |||
) |
set a double prop by prop path
pName | ||
pValue |
get a int prop by prop path
pName | ||
pDefValue |
void SetIntProp | ( | char const * | pName, | |
int | pValue | |||
) |
set a int prop by prop path
pName | ||
pValue |
get a KTime prop by prop path
pName | ||
pDefValue |
void SetKTimeProp | ( | char const * | pName, | |
KTime | pValue | |||
) |
set a KTime prop by prop path
pName | ||
pValue |
get an enum prop by prop path
pName | ||
pDefValue |
get an enum prop by prop path
pName | ||
pDefValue |
get an enum prop by prop path
pName | ||
pValue |
void SetEnumProp | ( | char const * | pName, | |
KString | pValue | |||
) |
set an enum prop by prop path
pName | ||
pValue |
void SetEnumProp | ( | char const * | pName, | |
int | pValue | |||
) |
set an enum prop by prop path
pName | ||
pValue |
void RemoveEnumPropValue | ( | char const * | pName, | |
KString | pValue | |||
) |
remove an enum prop by enum value
pName | ||
pValue |
void EmptyEnumProp | ( | char const * | pName | ) |
empty all the values of the enum prop
pName |
bool IsEnumExist | ( | KFbxProperty & | pProp, | |
KString & | enumString | |||
) | const |
check enum value if present
&pProp | a ref to an enum prop | |
&enumString | s ref to string |
int GetEnumIndex | ( | KFbxProperty & | pProp, | |
KString & | enumString, | |||
bool | pNoCase = false |
|||
) | const |
get enum index
&pProp | a ref to an enum prop | |
&enumString | s ref to string | |
pNoCase |
bool SetFlag | ( | char const * | pName, | |
FbxPropertyFlags::eFbxPropertyFlags | propFlag, | |||
bool | pValue | |||
) |
set a specific flag value on a specific property.
pName | ||
propFlag | ||
pValue |
get a string prop by prop path
pName | ||
pDefValue |
void SetStringProp | ( | char const * | pName, | |
KString | pValue | |||
) |
set a string prop by prop path
pName | ||
pValue |
virtual bool ReadXMLFile | ( | KString & | path | ) | [virtual] |
Load the settings hierarchy from an XML file.
path | The path of the XML file. |
True
on success, false
otherwise.virtual bool WriteXMLFile | ( | KString & | path | ) | [virtual] |
Write the settings hierarchy to an XML file.
path | The path of the XML file. |
True
on success, false
otherwise.