GLC_WorldTo3dxml : Export a GLC_World to a 3dxml file. More...
#include <glc_worldto3dxml.h>
Public Types | |
| enum | ExportType { Compressed3dxml, Exploded3dxml, StructureOnly } |
Signals | |
| void | currentQuantum (int) |
Public Member Functions | |
Constructor / Destructor | |
| GLC_WorldTo3dxml (const GLC_World &world, bool threaded=true) | |
| virtual | ~GLC_WorldTo3dxml () |
Set Functions | |
| bool | exportTo3dxml (const QString &filename, GLC_WorldTo3dxml::ExportType exportType, bool exportMaterial=true) |
| Save the world to the specified file name. | |
| void | setGeneratorName (const QString &generator) |
| Set the name of the 3dxml generator default is GLC_LIB. | |
| void | setInterupt (QReadWriteLock *pReadWriteLock, bool *pInterupt) |
| set interrupt flag adress | |
Private Member Functions | |
Private services functions | |
| void | writeHeader () |
| Write 3DXML Header. | |
| void | writeReference3D (const GLC_StructReference *pRef) |
| Write 3DXML reference 3D element. | |
| void | writeReferenceRep (const GLC_3DRep *p3DRep) |
| Write 3DXML reference representation. | |
| void | writeInstance3D (const GLC_StructInstance *pInstance, unsigned int parentId) |
| Write 3DXML instance 3D element. | |
| void | writeInstanceRep (const GLC_3DRep *p3DRep, unsigned int parentId) |
| Write 3DXML instance 3D element. | |
| void | setStreamWriterToFile (const QString &fileName) |
| Set the streamwriter to the specified file and return true if success. | |
| void | addManifest () |
| Add the manifest to 3DXML compressed file. | |
| void | exportAssemblyStructure () |
| Export the assembly structure from the list of reference. | |
| void | exportAssemblyFromOccurence (const GLC_StructOccurence *pOccurence) |
| Export assembly from the given occurence. | |
| QString | matrixString (const GLC_Matrix4x4 &matrix) |
| Return the 3DXML string of the given matrix. | |
| void | write3DRep (const GLC_3DRep *pRep, const QString &fileName) |
| Write the given 3DRep to 3DXML 3DRep. | |
| QString | representationFileName (const GLC_3DRep *pRep) |
| Return the file name of the given 3DRep. | |
| void | writeGeometry (const GLC_Mesh *pMesh) |
| Write the given mesh to 3DXML 3DRep. | |
| void | writeGeometryFace (const GLC_Mesh *pMesh, int lod, GLC_uint materialId) |
| Write the geometry face from the given lod and material. | |
| void | writeSurfaceAttributes (const GLC_Material *pMaterial) |
| Write surface attributes. | |
| void | writeEdges (const GLC_Mesh *pMesh) |
| Write edges. | |
| void | writeLineAttributes (const QColor &color) |
| Write lines attributes. | |
| void | writeMaterial (const GLC_Material *pMaterial) |
| Write Material. | |
| void | writeMaterialAttributtes (const QString &name, const QString &type, const QString &value) |
| Write material attributes. | |
| QString | colorToString (const QColor &color) |
| Return a QString of a color. | |
| void | writeCatRepImageFile (const QList< GLC_Material * > &materialList) |
| Write the CATRepImage.3dxml file. | |
| void | writeCATRepresentationImage (const GLC_Material *pMat, unsigned int id) |
| Write CATRepresentationImage of the given material and id. | |
| void | writeAllMaterialRelatedFilesIn3dxml () |
| Write all material related files in the 3dxml. | |
| void | writeImageFileIn3dxml (const QList< GLC_Material * > &materialList) |
| Write image file in 3DXML archive or folder. | |
| void | writeCatMaterialRef (const QList< GLC_Material * > &materialList) |
| Write de CATMaterialRef. | |
| void | writeMaterialToCatMaterialRef (const GLC_Material *pMat, unsigned int *id) |
| Write a material in the CATMaterialRef. | |
| void | addImageTextureTo3dxml (const QImage &image, const QString &fileName) |
| Add the given texture to 3DXML with the given name. | |
| QString | xmlFileName (const QString &fileName) |
| Transform the given name to the 3DXML name (no double). | |
| void | writeExtensionAttributes (GLC_Attributes *pAttributes) |
| Write extension attributes to 3DXML. | |
| void | writeOccurenceDefaultViewProperty (const GLC_StructOccurence *pOccurence) |
| Write the default view property of the given occurence. | |
| bool | continu () |
| return true if export must continu | |
Private Attributes | |
| GLC_World | m_World |
| The world to export. | |
| ExportType | m_ExportType |
| The export type. | |
| QString | m_FileName |
| The file name in which the world is exported. | |
| QXmlStreamWriter * | m_pOutStream |
| The Stream writer. | |
| QString | m_Generator |
| QString the 3DXML Generator. | |
| unsigned int | m_CurrentId |
| The current 3DXML id. | |
| QuaZip * | m_p3dxmlArchive |
| The 3DXML Archive. | |
| QuaZipFile * | m_pCurrentZipFile |
| The current quazp file. | |
| QFile * | m_pCurrentFile |
| The current file. | |
| QString | m_AbsolutePath |
| the 3dxml absolute path | |
| QHash< const GLC_StructReference *, unsigned int > | m_ReferenceToIdHash |
| Map reference to 3dxml id. | |
| QHash< const GLC_StructInstance *, unsigned int > | m_InstanceToIdHash |
| Map instance to 3dxml id. | |
| QHash< const GLC_3DRep *, unsigned int > | m_ReferenceRepToIdHash |
| Map reference rep to 3dxml id. | |
| QHash< const GLC_3DRep *, QString > | m_ReferenceRepTo3dxmlFileName |
| Map Reference rep to 3dxml fileName. | |
| QSet< unsigned int > | m_InstanceRep |
| InstanceRep SET. | |
| QHash< GLC_uint, QString > | m_MaterialIdToMaterialName |
| Map between material id and 3DRep name. | |
| QHash< GLC_uint, unsigned int > | m_MaterialIdToMaterialId |
| Map between material id and 3dxml image id. | |
| QHash< GLC_uint, QString > | m_MaterialIdToTexture3dxmlName |
| Map between material id and 3DXML texture name. | |
| QHash< GLC_uint, unsigned int > | m_MaterialIdTo3dxmlImageId |
| Map between material id and 3dxml image id. | |
| bool | m_ExportMaterial |
| Flag to know if material must be exported. | |
| QSet< QString > | m_3dxmlFileSet |
| Set of files in the 3dxml. | |
| unsigned int | m_FileNameIncrement |
| file name increment | |
| QList< const GLC_StructOccurence * > | m_ListOfOverLoadedOccurence |
| List of structOccurence with overload properties. | |
| QReadWriteLock * | m_pReadWriteLock |
| Mutex. | |
| bool * | m_pIsInterupted |
| Flag to know if export must be interupted. | |
| bool | m_IsThreaded |
| Flag to know if export is threaded (the default). | |
GLC_WorldTo3dxml : Export a GLC_World to a 3dxml file.
Definition at line 44 of file glc_worldto3dxml.h.
Definition at line 49 of file glc_worldto3dxml.h.
| GLC_WorldTo3dxml::GLC_WorldTo3dxml | ( | const GLC_World & | world, | |
| bool | threaded = true | |||
| ) |
Definition at line 35 of file glc_worldto3dxml.cpp.
References m_World, GLC_World::rootOccurence(), and GLC_StructOccurence::updateOccurenceNumber().
| GLC_WorldTo3dxml::~GLC_WorldTo3dxml | ( | ) | [virtual] |
Definition at line 67 of file glc_worldto3dxml.cpp.
References m_p3dxmlArchive, m_pCurrentFile, and m_pCurrentZipFile.
| void GLC_WorldTo3dxml::addImageTextureTo3dxml | ( | const QImage & | image, | |
| const QString & | fileName | |||
| ) | [private] |
Add the given texture to 3DXML with the given name.
Definition at line 1054 of file glc_worldto3dxml.cpp.
References m_AbsolutePath, m_p3dxmlArchive, m_pCurrentFile, m_pCurrentZipFile, and m_pOutStream.
Referenced by writeImageFileIn3dxml().
| void GLC_WorldTo3dxml::addManifest | ( | ) | [private] |
Add the manifest to 3DXML compressed file.
Definition at line 284 of file glc_worldto3dxml.cpp.
References m_FileName, m_pOutStream, and setStreamWriterToFile().
Referenced by exportTo3dxml().
| QString GLC_WorldTo3dxml::colorToString | ( | const QColor & | color | ) | [private] |
Return a QString of a color.
Definition at line 838 of file glc_worldto3dxml.cpp.
Referenced by writeMaterial().
| bool GLC_WorldTo3dxml::continu | ( | ) | [private] |
return true if export must continu
Definition at line 1167 of file glc_worldto3dxml.cpp.
References m_pIsInterupted, and m_pReadWriteLock.
Referenced by exportTo3dxml().
| void GLC_WorldTo3dxml::currentQuantum | ( | int | ) | [signal] |
Referenced by exportTo3dxml().
| void GLC_WorldTo3dxml::exportAssemblyFromOccurence | ( | const GLC_StructOccurence * | pOccurence | ) | [private] |
Export assembly from the given occurence.
Definition at line 339 of file glc_worldto3dxml.cpp.
References GLC_StructOccurence::child(), GLC_StructOccurence::childCount(), GLC_World::collection(), GLC_3DViewCollection::contains(), GLC_StructReference::hasRepresentation(), GLC_StructOccurence::id(), GLC_3DViewCollection::instanceHandle(), GLC_RenderProperties::isDefault(), GLC_StructOccurence::isOrphan(), GLC_3DViewInstance::isVisible(), m_InstanceRep, m_InstanceToIdHash, m_ListOfOverLoadedOccurence, m_ReferenceRepToIdHash, m_ReferenceToIdHash, m_World, GLC_StructOccurence::parent(), GLC_3DViewInstance::renderPropertiesHandle(), GLC_StructReference::representationHandle(), GLC_StructOccurence::structInstance(), GLC_StructOccurence::structReference(), writeInstance3D(), writeInstanceRep(), writeReference3D(), and writeReferenceRep().
Referenced by exportAssemblyStructure().
| void GLC_WorldTo3dxml::exportAssemblyStructure | ( | ) | [private] |
Export the assembly structure from the list of reference.
Definition at line 299 of file glc_worldto3dxml.cpp.
References exportAssemblyFromOccurence(), m_FileName, m_InstanceRep, m_InstanceToIdHash, m_ListOfOverLoadedOccurence, m_pOutStream, m_ReferenceRepTo3dxmlFileName, m_ReferenceRepToIdHash, m_ReferenceToIdHash, m_World, GLC_World::rootOccurence(), setStreamWriterToFile(), writeHeader(), and writeOccurenceDefaultViewProperty().
Referenced by exportTo3dxml().
| bool GLC_WorldTo3dxml::exportTo3dxml | ( | const QString & | filename, | |
| GLC_WorldTo3dxml::ExportType | exportType, | |||
| bool | exportMaterial = true | |||
| ) |
Save the world to the specified file name.
Definition at line 74 of file glc_worldto3dxml.cpp.
References addManifest(), Compressed3dxml, continu(), currentQuantum(), exportAssemblyStructure(), m_3dxmlFileSet, m_AbsolutePath, m_ExportMaterial, m_ExportType, m_FileName, m_FileNameIncrement, m_IsThreaded, m_ListOfOverLoadedOccurence, m_p3dxmlArchive, m_ReferenceRepTo3dxmlFileName, StructureOnly, write3DRep(), and writeAllMaterialRelatedFilesIn3dxml().
| QString GLC_WorldTo3dxml::matrixString | ( | const GLC_Matrix4x4 & | matrix | ) | [private] |
Return the 3DXML string of the given matrix.
Definition at line 405 of file glc_worldto3dxml.cpp.
References GLC_Matrix4x4::data().
Referenced by writeInstance3D().
| QString GLC_WorldTo3dxml::representationFileName | ( | const GLC_3DRep * | pRep | ) | [private] |
Return the file name of the given 3DRep.
Definition at line 461 of file glc_worldto3dxml.cpp.
References GLC_Rep::fileName(), glc::isArchiveString(), m_AbsolutePath, m_ExportType, m_FileName, m_ReferenceRepToIdHash, GLC_Rep::name(), StructureOnly, and xmlFileName().
Referenced by writeReferenceRep().
| void GLC_WorldTo3dxml::setGeneratorName | ( | const QString & | generator | ) | [inline] |
Set the name of the 3dxml generator default is GLC_LIB.
Definition at line 73 of file glc_worldto3dxml.h.
| void GLC_WorldTo3dxml::setInterupt | ( | QReadWriteLock * | pReadWriteLock, | |
| bool * | pInterupt | |||
| ) |
set interrupt flag adress
Definition at line 143 of file glc_worldto3dxml.cpp.
References m_pIsInterupted, and m_pReadWriteLock.
| void GLC_WorldTo3dxml::setStreamWriterToFile | ( | const QString & | fileName | ) | [private] |
Set the streamwriter to the specified file and return true if success.
Definition at line 239 of file glc_worldto3dxml.cpp.
References m_AbsolutePath, m_p3dxmlArchive, m_pCurrentFile, m_pCurrentZipFile, and m_pOutStream.
Referenced by addManifest(), exportAssemblyStructure(), write3DRep(), writeCatMaterialRef(), writeCatRepImageFile(), and writeMaterial().
| void GLC_WorldTo3dxml::write3DRep | ( | const GLC_3DRep * | pRep, | |
| const QString & | fileName | |||
| ) | [private] |
Write the given 3DRep to 3DXML 3DRep.
Definition at line 430 of file glc_worldto3dxml.cpp.
References GLC_3DRep::geomAt(), m_CurrentId, m_pOutStream, GLC_3DRep::numberOfBody(), setStreamWriterToFile(), and writeGeometry().
Referenced by exportTo3dxml().
| void GLC_WorldTo3dxml::writeAllMaterialRelatedFilesIn3dxml | ( | ) | [private] |
Write all material related files in the 3dxml.
Definition at line 910 of file glc_worldto3dxml.cpp.
References GLC_World::listOfMaterials(), m_MaterialIdTo3dxmlImageId, m_MaterialIdToMaterialId, m_MaterialIdToMaterialName, m_MaterialIdToTexture3dxmlName, m_World, writeCatMaterialRef(), writeCatRepImageFile(), writeImageFileIn3dxml(), and writeMaterial().
Referenced by exportTo3dxml().
| void GLC_WorldTo3dxml::writeCatMaterialRef | ( | const QList< GLC_Material * > & | materialList | ) | [private] |
Write de CATMaterialRef.
Definition at line 980 of file glc_worldto3dxml.cpp.
References m_pOutStream, setStreamWriterToFile(), writeHeader(), and writeMaterialToCatMaterialRef().
Referenced by writeAllMaterialRelatedFilesIn3dxml().
| void GLC_WorldTo3dxml::writeCatRepImageFile | ( | const QList< GLC_Material * > & | materialList | ) | [private] |
Write the CATRepImage.3dxml file.
Definition at line 843 of file glc_worldto3dxml.cpp.
References m_pOutStream, setStreamWriterToFile(), writeCATRepresentationImage(), and writeHeader().
Referenced by writeAllMaterialRelatedFilesIn3dxml().
| void GLC_WorldTo3dxml::writeCATRepresentationImage | ( | const GLC_Material * | pMat, | |
| unsigned int | id | |||
| ) | [private] |
Write CATRepresentationImage of the given material and id.
Definition at line 869 of file glc_worldto3dxml.cpp.
References GLC_Texture::fileName(), GLC_Material::hasTexture(), GLC_Object::id(), m_MaterialIdTo3dxmlImageId, m_MaterialIdToTexture3dxmlName, m_pOutStream, GLC_Object::name(), GLC_Material::textureHandle(), and xmlFileName().
Referenced by writeCatRepImageFile().
| void GLC_WorldTo3dxml::writeEdges | ( | const GLC_Mesh * | pMesh | ) | [private] |
Write edges.
Definition at line 705 of file glc_worldto3dxml.cpp.
References m_pOutStream, GLC_Mesh::wireColor(), GLC_Geometry::wirePolylineCount(), GLC_Geometry::wirePolylineOffset(), GLC_Geometry::wirePolylineSize(), GLC_Geometry::wirePositionVector(), and writeLineAttributes().
Referenced by writeGeometry().
| void GLC_WorldTo3dxml::writeExtensionAttributes | ( | GLC_Attributes * | pAttributes | ) | [private] |
Write extension attributes to 3DXML.
Definition at line 1108 of file glc_worldto3dxml.cpp.
References m_AbsolutePath, m_pOutStream, GLC_Attributes::names(), and GLC_Attributes::value().
Referenced by writeInstance3D(), and writeReference3D().
| void GLC_WorldTo3dxml::writeGeometry | ( | const GLC_Mesh * | pMesh | ) | [private] |
Write the given mesh to 3DXML 3DRep.
Definition at line 494 of file glc_worldto3dxml.cpp.
References GLC_Mesh::getLodAccuracy(), GLC_Mesh::lodContainsMaterial(), GLC_Mesh::lodCount(), m_CurrentId, m_pOutStream, GLC_Geometry::materialIds(), GLC_Mesh::normalVector(), GLC_Mesh::positionVector(), GLC_Mesh::texelVector(), GLC_Geometry::wireDataIsEmpty(), writeEdges(), and writeGeometryFace().
Referenced by write3DRep().
| void GLC_WorldTo3dxml::writeGeometryFace | ( | const GLC_Mesh * | pMesh, | |
| int | lod, | |||
| GLC_uint | materialId | |||
| ) | [private] |
Write the geometry face from the given lod and material.
Definition at line 610 of file glc_worldto3dxml.cpp.
References GLC_Mesh::containsFans(), GLC_Mesh::containsStrips(), GLC_Mesh::containsTriangles(), GLC_Mesh::getFansIndex(), GLC_Mesh::getStripsIndex(), GLC_Mesh::getTrianglesIndex(), m_pOutStream, GLC_Geometry::material(), and writeSurfaceAttributes().
Referenced by writeGeometry().
| void GLC_WorldTo3dxml::writeHeader | ( | ) | [private] |
Write 3DXML Header.
Definition at line 149 of file glc_worldto3dxml.cpp.
References m_FileName, m_Generator, and m_pOutStream.
Referenced by exportAssemblyStructure(), writeCatMaterialRef(), and writeCatRepImageFile().
| void GLC_WorldTo3dxml::writeImageFileIn3dxml | ( | const QList< GLC_Material * > & | materialList | ) | [private] |
Write image file in 3DXML archive or folder.
Definition at line 949 of file glc_worldto3dxml.cpp.
References addImageTextureTo3dxml(), GLC_Texture::fileName(), GLC_Object::id(), GLC_Texture::imageOfTexture(), m_MaterialIdToTexture3dxmlName, and GLC_Material::textureHandle().
Referenced by writeAllMaterialRelatedFilesIn3dxml().
| void GLC_WorldTo3dxml::writeInstance3D | ( | const GLC_StructInstance * | pInstance, | |
| unsigned int | parentId | |||
| ) | [private] |
Write 3DXML instance 3D element.
Definition at line 200 of file glc_worldto3dxml.cpp.
References GLC_StructInstance::attributesHandle(), GLC_StructInstance::containsAttributes(), m_CurrentId, m_InstanceToIdHash, m_pOutStream, m_ReferenceToIdHash, matrixString(), GLC_StructInstance::name(), GLC_StructInstance::relativeMatrix(), GLC_StructInstance::structReference(), and writeExtensionAttributes().
Referenced by exportAssemblyFromOccurence().
| void GLC_WorldTo3dxml::writeInstanceRep | ( | const GLC_3DRep * | p3DRep, | |
| unsigned int | parentId | |||
| ) | [private] |
Write 3DXML instance 3D element.
Definition at line 225 of file glc_worldto3dxml.cpp.
References m_CurrentId, m_InstanceRep, m_pOutStream, m_ReferenceRepToIdHash, and GLC_Rep::name().
Referenced by exportAssemblyFromOccurence().
| void GLC_WorldTo3dxml::writeLineAttributes | ( | const QColor & | color | ) | [private] |
Write lines attributes.
Definition at line 735 of file glc_worldto3dxml.cpp.
References m_pOutStream.
Referenced by writeEdges().
| void GLC_WorldTo3dxml::writeMaterial | ( | const GLC_Material * | pMaterial | ) | [private] |
Write Material.
Definition at line 750 of file glc_worldto3dxml.cpp.
References GLC_Material::ambientColor(), colorToString(), GLC_Material::diffuseColor(), GLC_Material::emissiveColor(), GLC_Material::hasTexture(), GLC_Object::id(), m_MaterialIdTo3dxmlImageId, m_MaterialIdToMaterialName, m_pOutStream, GLC_Object::name(), GLC_Material::opacity(), setStreamWriterToFile(), GLC_Material::shininess(), GLC_Material::specularColor(), writeMaterialAttributtes(), and xmlFileName().
Referenced by writeAllMaterialRelatedFilesIn3dxml().
| void GLC_WorldTo3dxml::writeMaterialAttributtes | ( | const QString & | name, | |
| const QString & | type, | |||
| const QString & | value | |||
| ) | [private] |
Write material attributes.
Definition at line 829 of file glc_worldto3dxml.cpp.
References m_pOutStream.
Referenced by writeMaterial().
| void GLC_WorldTo3dxml::writeMaterialToCatMaterialRef | ( | const GLC_Material * | pMat, | |
| unsigned int * | id | |||
| ) | [private] |
Write a material in the CATMaterialRef.
Definition at line 1008 of file glc_worldto3dxml.cpp.
References GLC_Material::hasTexture(), GLC_Object::id(), m_MaterialIdTo3dxmlImageId, m_MaterialIdToMaterialId, m_MaterialIdToMaterialName, and m_pOutStream.
Referenced by writeCatMaterialRef().
| void GLC_WorldTo3dxml::writeOccurenceDefaultViewProperty | ( | const GLC_StructOccurence * | pOccurence | ) | [private] |
Write the default view property of the given occurence.
Definition at line 1128 of file glc_worldto3dxml.cpp.
References GLC_World::collection(), GLC_StructOccurence::id(), GLC_3DViewCollection::instanceHandle(), GLC_RenderProperties::isDefault(), GLC_StructOccurence::isVisible(), m_pOutStream, m_World, GLC_StructOccurence::occurenceNumber(), GLC_RenderProperties::overwriteTransparency(), and GLC_3DViewInstance::renderPropertiesHandle().
Referenced by exportAssemblyStructure().
| void GLC_WorldTo3dxml::writeReference3D | ( | const GLC_StructReference * | pRef | ) | [private] |
Write 3DXML reference 3D element.
Definition at line 161 of file glc_worldto3dxml.cpp.
References GLC_StructReference::attributesHandle(), GLC_StructReference::containsAttributes(), m_CurrentId, m_pOutStream, m_ReferenceToIdHash, GLC_StructReference::name(), and writeExtensionAttributes().
Referenced by exportAssemblyFromOccurence().
| void GLC_WorldTo3dxml::writeReferenceRep | ( | const GLC_3DRep * | p3DRep | ) | [private] |
Write 3DXML reference representation.
Definition at line 178 of file glc_worldto3dxml.cpp.
References m_CurrentId, m_pOutStream, m_ReferenceRepTo3dxmlFileName, m_ReferenceRepToIdHash, GLC_Rep::name(), and representationFileName().
Referenced by exportAssemblyFromOccurence().
| void GLC_WorldTo3dxml::writeSurfaceAttributes | ( | const GLC_Material * | pMaterial | ) | [private] |
Write surface attributes.
Definition at line 677 of file glc_worldto3dxml.cpp.
References GLC_Material::diffuseColor(), GLC_Object::id(), m_ExportMaterial, m_MaterialIdToMaterialId, and m_pOutStream.
Referenced by writeGeometryFace().
| QString GLC_WorldTo3dxml::xmlFileName | ( | const QString & | fileName | ) | [private] |
Transform the given name to the 3DXML name (no double).
Definition at line 1093 of file glc_worldto3dxml.cpp.
References m_3dxmlFileSet, and m_FileNameIncrement.
Referenced by representationFileName(), writeCATRepresentationImage(), and writeMaterial().
QSet<QString> GLC_WorldTo3dxml::m_3dxmlFileSet [private] |
Set of files in the 3dxml.
Definition at line 252 of file glc_worldto3dxml.h.
Referenced by exportTo3dxml(), and xmlFileName().
QString GLC_WorldTo3dxml::m_AbsolutePath [private] |
the 3dxml absolute path
Definition at line 219 of file glc_worldto3dxml.h.
Referenced by addImageTextureTo3dxml(), exportTo3dxml(), representationFileName(), setStreamWriterToFile(), and writeExtensionAttributes().
unsigned int GLC_WorldTo3dxml::m_CurrentId [private] |
The current 3DXML id.
Definition at line 207 of file glc_worldto3dxml.h.
Referenced by write3DRep(), writeGeometry(), writeInstance3D(), writeInstanceRep(), writeReference3D(), and writeReferenceRep().
bool GLC_WorldTo3dxml::m_ExportMaterial [private] |
Flag to know if material must be exported.
Definition at line 249 of file glc_worldto3dxml.h.
Referenced by exportTo3dxml(), and writeSurfaceAttributes().
ExportType GLC_WorldTo3dxml::m_ExportType [private] |
The export type.
Definition at line 195 of file glc_worldto3dxml.h.
Referenced by exportTo3dxml(), and representationFileName().
QString GLC_WorldTo3dxml::m_FileName [private] |
The file name in which the world is exported.
Definition at line 198 of file glc_worldto3dxml.h.
Referenced by addManifest(), exportAssemblyStructure(), exportTo3dxml(), representationFileName(), and writeHeader().
unsigned int GLC_WorldTo3dxml::m_FileNameIncrement [private] |
file name increment
Definition at line 255 of file glc_worldto3dxml.h.
Referenced by exportTo3dxml(), and xmlFileName().
QString GLC_WorldTo3dxml::m_Generator [private] |
QString the 3DXML Generator.
Definition at line 204 of file glc_worldto3dxml.h.
Referenced by writeHeader().
QSet<unsigned int> GLC_WorldTo3dxml::m_InstanceRep [private] |
InstanceRep SET.
Definition at line 234 of file glc_worldto3dxml.h.
Referenced by exportAssemblyFromOccurence(), exportAssemblyStructure(), and writeInstanceRep().
QHash<const GLC_StructInstance*, unsigned int> GLC_WorldTo3dxml::m_InstanceToIdHash [private] |
Map instance to 3dxml id.
Definition at line 225 of file glc_worldto3dxml.h.
Referenced by exportAssemblyFromOccurence(), exportAssemblyStructure(), and writeInstance3D().
bool GLC_WorldTo3dxml::m_IsThreaded [private] |
Flag to know if export is threaded (the default).
Definition at line 267 of file glc_worldto3dxml.h.
Referenced by exportTo3dxml().
QList<const GLC_StructOccurence*> GLC_WorldTo3dxml::m_ListOfOverLoadedOccurence [private] |
List of structOccurence with overload properties.
Definition at line 258 of file glc_worldto3dxml.h.
Referenced by exportAssemblyFromOccurence(), exportAssemblyStructure(), and exportTo3dxml().
QHash<GLC_uint, unsigned int> GLC_WorldTo3dxml::m_MaterialIdTo3dxmlImageId [private] |
Map between material id and 3dxml image id.
Definition at line 246 of file glc_worldto3dxml.h.
Referenced by writeAllMaterialRelatedFilesIn3dxml(), writeCATRepresentationImage(), writeMaterial(), and writeMaterialToCatMaterialRef().
QHash<GLC_uint, unsigned int> GLC_WorldTo3dxml::m_MaterialIdToMaterialId [private] |
Map between material id and 3dxml image id.
Definition at line 240 of file glc_worldto3dxml.h.
Referenced by writeAllMaterialRelatedFilesIn3dxml(), writeMaterialToCatMaterialRef(), and writeSurfaceAttributes().
QHash<GLC_uint, QString> GLC_WorldTo3dxml::m_MaterialIdToMaterialName [private] |
Map between material id and 3DRep name.
Definition at line 237 of file glc_worldto3dxml.h.
Referenced by writeAllMaterialRelatedFilesIn3dxml(), writeMaterial(), and writeMaterialToCatMaterialRef().
QHash<GLC_uint, QString> GLC_WorldTo3dxml::m_MaterialIdToTexture3dxmlName [private] |
Map between material id and 3DXML texture name.
Definition at line 243 of file glc_worldto3dxml.h.
Referenced by writeAllMaterialRelatedFilesIn3dxml(), writeCATRepresentationImage(), and writeImageFileIn3dxml().
QuaZip* GLC_WorldTo3dxml::m_p3dxmlArchive [private] |
The 3DXML Archive.
Definition at line 210 of file glc_worldto3dxml.h.
Referenced by addImageTextureTo3dxml(), exportTo3dxml(), setStreamWriterToFile(), and ~GLC_WorldTo3dxml().
QFile* GLC_WorldTo3dxml::m_pCurrentFile [private] |
The current file.
Definition at line 216 of file glc_worldto3dxml.h.
Referenced by addImageTextureTo3dxml(), setStreamWriterToFile(), and ~GLC_WorldTo3dxml().
QuaZipFile* GLC_WorldTo3dxml::m_pCurrentZipFile [private] |
The current quazp file.
Definition at line 213 of file glc_worldto3dxml.h.
Referenced by addImageTextureTo3dxml(), setStreamWriterToFile(), and ~GLC_WorldTo3dxml().
bool* GLC_WorldTo3dxml::m_pIsInterupted [private] |
Flag to know if export must be interupted.
Definition at line 264 of file glc_worldto3dxml.h.
Referenced by continu(), and setInterupt().
QXmlStreamWriter* GLC_WorldTo3dxml::m_pOutStream [private] |
The Stream writer.
Definition at line 201 of file glc_worldto3dxml.h.
Referenced by addImageTextureTo3dxml(), addManifest(), exportAssemblyStructure(), setStreamWriterToFile(), write3DRep(), writeCatMaterialRef(), writeCatRepImageFile(), writeCATRepresentationImage(), writeEdges(), writeExtensionAttributes(), writeGeometry(), writeGeometryFace(), writeHeader(), writeInstance3D(), writeInstanceRep(), writeLineAttributes(), writeMaterial(), writeMaterialAttributtes(), writeMaterialToCatMaterialRef(), writeOccurenceDefaultViewProperty(), writeReference3D(), writeReferenceRep(), and writeSurfaceAttributes().
QReadWriteLock* GLC_WorldTo3dxml::m_pReadWriteLock [private] |
Mutex.
Definition at line 261 of file glc_worldto3dxml.h.
Referenced by continu(), and setInterupt().
QHash<const GLC_3DRep*, QString> GLC_WorldTo3dxml::m_ReferenceRepTo3dxmlFileName [private] |
Map Reference rep to 3dxml fileName.
Definition at line 231 of file glc_worldto3dxml.h.
Referenced by exportAssemblyStructure(), exportTo3dxml(), and writeReferenceRep().
QHash<const GLC_3DRep*, unsigned int> GLC_WorldTo3dxml::m_ReferenceRepToIdHash [private] |
Map reference rep to 3dxml id.
Definition at line 228 of file glc_worldto3dxml.h.
Referenced by exportAssemblyFromOccurence(), exportAssemblyStructure(), representationFileName(), writeInstanceRep(), and writeReferenceRep().
QHash<const GLC_StructReference*, unsigned int> GLC_WorldTo3dxml::m_ReferenceToIdHash [private] |
Map reference to 3dxml id.
Definition at line 222 of file glc_worldto3dxml.h.
Referenced by exportAssemblyFromOccurence(), exportAssemblyStructure(), writeInstance3D(), and writeReference3D().
GLC_World GLC_WorldTo3dxml::m_World [private] |
The world to export.
Definition at line 192 of file glc_worldto3dxml.h.
Referenced by exportAssemblyFromOccurence(), exportAssemblyStructure(), GLC_WorldTo3dxml(), writeAllMaterialRelatedFilesIn3dxml(), and writeOccurenceDefaultViewProperty().