#include "DisplayUserProperties.h"
void DisplayUserProperties(
FbxObject* pObject)
{
int lCount = 0;
{
lCount++;
}
if (lCount == 0)
return;
DisplayInt(lTitleStr.
Buffer(), lCount);
int i = 0;
while (lProperty.IsValid())
{
{
DisplayInt(" Property ", i);
DisplayString(
" Display Name: ", lString.
Buffer());
lString = lProperty.GetName();
DisplayString(" Internal Name: ", lString.Buffer());
DisplayString(" Type: ", lProperty.GetPropertyDataType().GetName());
if (lProperty.HasMinLimit()) DisplayDouble(" Min Limit: ", lProperty.GetMinLimit());
if (lProperty.HasMaxLimit()) DisplayDouble(" Max Limit: ", lProperty.GetMaxLimit());
FbxDataType lPropertyDataType=lProperty.GetPropertyDataType();
if (lPropertyDataType.GetType() ==
eFbxBool)
{
DisplayBool(
" Default Value: ", lProperty.Get<
FbxBool>());
}
else if (lPropertyDataType.GetType() ==
eFbxDouble || lPropertyDataType.GetType() ==
eFbxFloat)
{
DisplayDouble(
" Default Value: ", lProperty.Get<
FbxDouble>());
}
{
char lBuf[64];
FBXSDK_sprintf(lBuf, 64,
"R=%f, G=%f, B=%f, A=%f", lDefault.
mRed, lDefault.
mGreen, lDefault.
mBlue, lDefault.
mAlpha);
DisplayString(" Default Value: ", lBuf);
}
else if (lPropertyDataType.GetType() ==
eFbxInt)
{
DisplayInt(
" Default Value: ", lProperty.Get<
FbxInt>());
}
{
char lBuf[64];
FBXSDK_sprintf(lBuf, 64, "X=%f, Y=%f, Z=%f", lDefault[0], lDefault[1], lDefault[2]);
DisplayString(" Default Value: ", lBuf);
}
else if (lPropertyDataType.GetType() ==
eFbxEnum)
{
DisplayInt(
" Default Value: ", lProperty.Get<
FbxEnum>());
}
else
{
DisplayString(" Default Value: UNIDENTIFIED");
}
i++;
}
}
}