#include <matrix/vlMath.h>
#include <matrix/geodeticCoord.h>
: mySimulationServices(s)
, myObjectManager(mgr)
{
}
: mySimulationServices(orig.mySimulationServices)
, myObjectManager(orig.myObjectManager)
{
}
{
}
{
{
{
if (!iter->second->parent.length() || (iter->second->type.kind() >= 16))
{
}
++iter;
}
return true;
}
return false;
}
{
}
{
if (element->children.size())
{
std::vector<ObjectInformation*>::iterator iter = element->children.begin();
while (iter != element->children.end())
{
{
return false;
}
++iter;
}
return true;
}
return true;
}
{
int consecutiveCreate = 0;
{
if (!(*iter)->children.size())
{
if ((*iter)->type.kind() < 16)
{
if (++consecutiveCreate == 20)
{
consecutiveCreate = 0;
}
}
}
else
{
consecutiveCreate = 0;
{
return false;
}
}
++iter;
}
return true;
}
{
}
{
int count = 1;
if ((kind < 11) && (name.length() > 11))
{
newName = baseName;
}
{
int maxLength = 31;
if ((kind < 11) && (name.length() > 9))
{
maxLength = 12;
}
newName =
DtString(count++) +
"_" + baseName;
if (newName.length() >= maxLength)
{
newName =
DtString(newName, maxLength - 1);
}
}
return newName;
}
{
if (element->children.size())
{
std::vector<ObjectInformation*>::iterator iter = element->children.begin();
std::vector<DtUUID> uuids;
while (iter != element->children.end())
{
uuids.push_back((*iter)->object->uuid());
++iter;
}
}
}
{
DtEntityType object(element->
type);
crt.
setClosedFigure((
object.kind() == 20) || (
object.kind() == 18) || (
object.kind() == 19));
{
}
if (element->
points.size() == 1)
{
}
else
{
std::vector<DtVector>::const_iterator iter = element->
points.begin();
while (iter != element->
points.end())
{
++iter;
}
if (element->
type.kind() == 20)
{
}
}
}
{
int numCreated = 0;
{
if (element->
type.kind() >= 16)
{
}
else
{
}
{
break;
}
{
numCreated++;
break;
}
}
{
}
else
{
}
{
}
}
{
int createdCount = 0;
{
if ((*iter)->type.kind() >= 16)
{
if (++createdCount == 10)
{
createdCount = 0;
}
}
++iter;
}
return true;
}
{
{
if (!iter->second->parent.length() || (iter->second->type.kind() >= 16))
{
}
++iter;
}
{
}
return true;
}
{
)
{
return false;
}
}
{
)
{
return false;
}
}
{
DtSimObjectMap::const_iterator iter = localObjects.begin();
DtSimObjectMap::const_iterator end = localObjects.end();
while (iter != end)
{
{
information->
name =
object->objectName();
information->
type =
object->objectType();
information->uuid = object->uuid();
information->
force =
object->forceType();
{
information->
parent =
object->superior()->uuid().uuidString();
}
}
++iter;
}
return true;
}
{
DtSimObjectMap::const_iterator iter = localObjects.begin();
DtSimObjectMap::const_iterator end = localObjects.end();
while (iter != end)
{
{
information->
name =
object->objectName();
information->
type =
object->objectType();
information->uuid = object->uuid();
information->
force =
object->forceType();
information->
parent =
object->nextFrameOverlay();
for(vecPtr = iterator.first(); vecPtr; vecPtr = iterator.next())
{
DtVector* vec = dynamic_cast<DtVector*>(vecPtr);
information->
points.push_back(*vec);
}
}
++iter;
}
return true;
}
{
return true;
}
{
}