2025.6.1
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/***********************************************************************************************************************
|
||||
*
|
||||
* Copyright (c) 2010 - 2022 by Tech Soft 3D, Inc.
|
||||
* Copyright (c) 2010 - 2025 by Tech Soft 3D, Inc.
|
||||
* The information contained herein is confidential and proprietary to Tech Soft 3D, Inc., and considered a trade secret
|
||||
* as defined under civil and criminal statutes. Tech Soft 3D shall pursue its civil and criminal remedies in the event
|
||||
* of unauthorized use or misappropriation of its trade secrets. Use of this information by anyone other than authorized
|
||||
@@ -15,12 +15,12 @@
|
||||
|
||||
|
||||
//######################################################################################################################
|
||||
int traverseAttribute(const A3DMiscAttribute* pAttribute, _TiXmlElement* setting)
|
||||
A3DStatus traverseAttribute(const A3DMiscAttribute* pAttribute, _TiXmlElement* setting)
|
||||
{
|
||||
A3DMiscAttributeData sData;
|
||||
A3D_INITIALIZE_DATA(A3DMiscAttributeData, sData);
|
||||
|
||||
A3DInt32 iRet = A3DMiscAttributeGet(pAttribute, &sData);
|
||||
A3DStatus iRet = A3DMiscAttributeGet(pAttribute, &sData);
|
||||
if(iRet == A3D_SUCCESS)
|
||||
{
|
||||
_TiXmlElement* attribute = new _TiXmlElement("A3DMiscAttributeData");
|
||||
@@ -70,7 +70,7 @@ int traverseAttribute(const A3DMiscAttribute* pAttribute, _TiXmlElement* setting
|
||||
A3DDouble dVal;
|
||||
memcpy(&dVal, sData.m_asSingleAttributesData[ui].m_pcData, sizeof(A3DDouble));
|
||||
single->SetAttribute("m_eType", "kA3DModellerAttributeTypeReal");
|
||||
_SetDoubleAttribute(single, "m_pcData", dVal);
|
||||
setDoubleAttribute(single, "m_pcData", dVal);
|
||||
if (sData.m_asSingleAttributesData[ui].m_usUnit!= A3D_DEFAULT_NO_UNIT)
|
||||
single->SetAttribute("m_usUnit", sData.m_asSingleAttributesData[ui].m_usUnit);
|
||||
break;
|
||||
@@ -100,12 +100,12 @@ int traverseAttribute(const A3DMiscAttribute* pAttribute, _TiXmlElement* setting
|
||||
}
|
||||
|
||||
//######################################################################################################################
|
||||
int traverseGraphics(const A3DGraphics* pGraphics, _TiXmlElement* setting)
|
||||
A3DStatus traverseGraphics(const A3DGraphics* pGraphics, _TiXmlElement* setting)
|
||||
{
|
||||
A3DGraphicsData sData;
|
||||
A3D_INITIALIZE_DATA(A3DGraphicsData, sData);
|
||||
|
||||
A3DInt32 iRet = A3DGraphicsGet(pGraphics, &sData);
|
||||
A3DStatus iRet = A3DGraphicsGet(pGraphics, &sData);
|
||||
if(iRet == A3D_SUCCESS)
|
||||
{
|
||||
_TiXmlElement* graphics = new _TiXmlElement("A3DGraphicsData");
|
||||
@@ -125,11 +125,11 @@ int traverseGraphics(const A3DGraphics* pGraphics, _TiXmlElement* setting)
|
||||
}
|
||||
|
||||
//######################################################################################################################
|
||||
int traverseBase(const A3DEntity* pEntity, _TiXmlElement* setting)
|
||||
A3DStatus traverseBase(const A3DEntity* pEntity, _TiXmlElement* setting)
|
||||
{
|
||||
A3DRootBaseData sData;
|
||||
A3D_INITIALIZE_DATA(A3DRootBaseData, sData);
|
||||
A3DInt32 iRet = A3DRootBaseGet(pEntity, &sData);
|
||||
A3DStatus iRet = A3DRootBaseGet(pEntity, &sData);
|
||||
if(iRet == A3D_SUCCESS)
|
||||
{
|
||||
_TiXmlElement* base = new _TiXmlElement("A3DRootBaseData");
|
||||
@@ -166,12 +166,12 @@ int traverseBase(const A3DEntity* pEntity, _TiXmlElement* setting)
|
||||
}
|
||||
|
||||
//######################################################################################################################
|
||||
int traverseBaseWithGraphics(const A3DEntity* pEntity, _TiXmlElement* setting)
|
||||
A3DStatus traverseBaseWithGraphics(const A3DEntity* pEntity, _TiXmlElement* setting)
|
||||
{
|
||||
A3DRootBaseWithGraphicsData sData;
|
||||
A3D_INITIALIZE_DATA(A3DRootBaseWithGraphicsData, sData);
|
||||
|
||||
A3DInt32 iRet = A3DRootBaseWithGraphicsGet(pEntity, &sData);
|
||||
A3DStatus iRet = A3DRootBaseWithGraphicsGet(pEntity, &sData);
|
||||
if(iRet == A3D_SUCCESS)
|
||||
{
|
||||
_TiXmlElement* basewithgraphics = new _TiXmlElement("A3DRootBaseWithGraphicsData");
|
||||
@@ -186,7 +186,7 @@ int traverseBaseWithGraphics(const A3DEntity* pEntity, _TiXmlElement* setting)
|
||||
}
|
||||
|
||||
//######################################################################################################################
|
||||
int traverseSource(const A3DEntity* pEntity, _TiXmlElement* setting)
|
||||
A3DStatus traverseSource(const A3DEntity* pEntity, _TiXmlElement* setting)
|
||||
{
|
||||
if(A3DEntityIsBaseWithGraphicsType(pEntity))
|
||||
return traverseBaseWithGraphics(pEntity, setting);
|
||||
|
||||
Reference in New Issue
Block a user