DATAKIT API  V2025.1
CaddsReader Class Reference
+ Inheritance diagram for CaddsReader:

Public Member Functions

virtual Dtk_ErrorStatus _ReadConnectedEntity (const Dtk_NodeConnectorPtr &inConnector, Dtk_tab< Dtk_EntityPtr > &outEntity)
 
void acknowledge (const unsigned long &thisMiptr)
 
Dtk_ErrorStatus ActivateReader ()
 
void addExtractEntity (void *ThisEnt)
 
Dtk_bool alreadyDone (const unsigned long &thisMiptr)
 
Dtk_Double64CADDSUnitScale ()
 
Dtk_ComponentPtrCAMUComponents (const Dtk_string &)
 
void ClearBodies ()
 
Dtk_ErrorStatus CreateDocument (const Dtk_string &inInputFile, Dtk_MainDocPtr &outDocument)
 
virtual Dtk_ErrorStatus CreateDocumentGraphical (const Dtk_string &inInputFile, Dtk_MainDocPtr &outDocument)
 
Dtk_stringcurrentFileName ()
 
Dtk_stringdatakitDirectory ()
 
const Dtk_stringdatakitDirectory () const
 
Dtk_ErrorStatus DesactivateReader ()
 
Dtk_ErrorStatus EndComponent (Dtk_ComponentPtr &inComponent)
 
Dtk_ErrorStatus EndPopulateComponentsTree ()
 
Dtk_bool entityIsRead ()
 
Dtk_ErrorStatuserrorValue ()
 
void * extractedEntity ()
 
Dtk_bool extractEntityIsRead ()
 
void extractReadBody (Dtk_tab< Dtk_EntityPtr > &outBody)
 
Dtk_boolfilterDrawing ()
 
virtual Dtk_ErrorStatus GetAssociatedEntities (Dtk_Node &inNode, Dtk_tab< Dtk_NodeConnectorPtr > &outAssociatedEntities)
 
virtual Dtk_ErrorStatus GetConnectorsPointingToThisComponent (Dtk_Component &inCompo, Dtk_tab< Dtk_NodeConnectorPtr > &outConnectedEntities)
 
FILE * getDumpFile ()
 
virtual Dtk_ErrorStatus GetFilePreview (const Dtk_string &inInputFile, Dtk_PreviewPtr &outPreview)
 
Dtk_ErrorStatus GetFileVersion (const Dtk_string &inInputFile, Dtk_string &outVersion)
 
void getOtherEntities ()
 
void getOtherEntitiesAsmComponent ()
 
Dtk_Int32 GetVersion ()
 
void initDumpFile ()
 
void initRead ()
 
Dtk_boolisCAMU ()
 
void isTopologic (const unsigned long &thisMiptr)
 
Dtk_UInt32 nbExtracted ()
 
Dtk_ErrorStatus PopulateComponentsTree (const Dtk_string &inInputFile, Dtk_MainDocPtr &inoutDocument, Dtk_ComponentPtr &outRootComponent)
 
Dtk_ErrorStatus PopulateComponentsTree (const Dtk_tab< Dtk_StreamPtr > &inArrayStream, Dtk_MainDocPtr &inoutDocument, Dtk_ComponentPtr &outRootComponent)
 
Dtk_bool processTopology ()
 
Dtk_bool processTopologyAsmComponent ()
 
void pushEntity (const unsigned long &thisMiptr, Dtk_EntityPtr &ent)
 
void pushEntity (Dtk_EntityPtr &ent)
 
Dtk_ErrorStatus ReadAdditionalInfos (Dtk_Node &inNode, Dtk_ObjectPtr &outEntity)
 
virtual Dtk_ErrorStatus ReadAdvancedFeature (Dtk_Node &inNode, Dtk_ObjectPtr &outEntity)
 
void readAllEntities ()
 
Dtk_boolreadCamuAllowed ()
 
Dtk_ErrorStatus ReadComponent (const Dtk_ComponentPtr &inComponent, Dtk_NodePtr &outRootNode)
 
virtual Dtk_ErrorStatus ReadComponentGraphic (const Dtk_ComponentPtr &inComponent, Dtk_GraphicalDataPtr &outGraphicalData)
 
Dtk_ErrorStatus ReadEntity (Dtk_Node &inNode, Dtk_EntityPtr &outEntity)
 
Dtk_EntityPtr readMiptr_val (const unsigned long &index)
 
Dtk_boolreadOnlyGeometry ()
 
Dtk_boolreadOnlyWireFrame ()
 
Dtk_boolreadParametricAllowed ()
 
Dtk_Short16readVisibility ()
 
Dtk_tab< Dtk_EntityPtrresultBodies ()
 
void setReadBody (Dtk_tab< Dtk_EntityPtr > &thisBody)
 
void storeCallbackResult (const unsigned long &thisMiptr, Dtk_EntityPtr outent)
 
virtual ~CaddsReader ()
 

Static Public Member Functions

static Dtk_bool Enable ()
 
static CaddsReaderGetInstance ()
 

Protected Member Functions

void _EndFile ()
 
Dtk_string _GetAsmInfos (const Dtk_ComponentPtr &inComponent)
 
void _Init ()
 
Dtk_ErrorStatus _InitComponent (const Dtk_ComponentPtr &inComponent, const Dtk_string &inAsmId, Dtk_NodePtr &outRootNode)
 
Dtk_bool _IsItFromAsm (const Dtk_string &inAsmId)
 
Dtk_ErrorStatus _ProcessCaddsComponent (const Dtk_string &InIdFile, Dtk_transfo father_matrix, Dtk_MainDocPtr &inoutDocument, Dtk_ComponentPtr &outComponent)
 
Dtk_ErrorStatus _ProcessCaddsComponentJoints (Dtk_MainDocPtr &inoutDocument, Dtk_ComponentPtr &outJointComponent, const Dtk_string &inComponentId, Dtk_Int32 inBlanked)
 
void _ProcessSuccessorAssemblyJoints (Dtk_MainDocPtr &inoutDocument, Dtk_ComponentPtr &outJointComponent, Dtk_string &outAssemblyJointsName, Dtk_Int32 inPosCurrentTree, Dtk_Int32 inIdJoints, const Dtk_string &inComponentId, Dtk_Int32 inBlanked)
 
Dtk_ErrorStatus _ReadBodiesInComponent (const Dtk_ComponentPtr &inComponent, const Dtk_string &inAsmId, Dtk_NodePtr &outRootNode)
 
Dtk_ErrorStatus _ReadComponentWithCst (const Dtk_ComponentPtr &inComponent, Dtk_NodePtr &outRootNode)
 
Dtk_ErrorStatus _ReadComponentWithCstRecursive (const Dtk_ComponentPtr &inComponent, Dtk_NodePtr &outFatherNode)
 
Dtk_ErrorStatus _ReadDrawingInComponent (const Dtk_ComponentPtr &inComponent, const Dtk_string &inAsmId, Dtk_NodePtr &outRootNode)
 
Dtk_ErrorStatus _ReadFdtInComponent (const Dtk_ComponentPtr &inComponent, const Dtk_string &inAsmId, Dtk_NodePtr &outRootNode)
 
void _Reset ()
 
void _SetAsmInfos (const Dtk_string &inAsmIdCounter, Dtk_ComponentPtr &inoutComponent)
 
Dtk_ErrorStatus _StartFile (const Dtk_string &inInputFile, const Dtk_UUID &inUuid, int &outFileType)
 
Dtk_ErrorStatus _WriteInventoryInLogFile (Dtk_ID inID, int inNum, int *inCount, char **inEntitiesName)
 
Dtk_ErrorStatus Cadds_EndPart ()
 
Dtk_ErrorStatus Cadds_InitPart (const Dtk_string &inInputFile, const Dtk_UUID &inUuid)
 
 CaddsReader ()
 

Protected Attributes

Dtk_string _InputFile
 
FILE * _InputFilePtr
 
CaddsReader::caddsReader_Handle * _private
 

Static Protected Attributes

static CaddsReader_ReaderInstance
 

Constructor & Destructor Documentation

◆ CaddsReader()

CaddsReader::CaddsReader ( )
protected

◆ ~CaddsReader()

virtual CaddsReader::~CaddsReader ( )
virtual

Member Function Documentation

◆ _EndFile()

void CaddsReader::_EndFile ( )
protected

◆ _GetAsmInfos()

Dtk_string CaddsReader::_GetAsmInfos ( const Dtk_ComponentPtr inComponent)
protected

◆ _Init()

void CaddsReader::_Init ( )
protected

◆ _InitComponent()

Dtk_ErrorStatus CaddsReader::_InitComponent ( const Dtk_ComponentPtr inComponent,
const Dtk_string inAsmId,
Dtk_NodePtr outRootNode 
)
protected

◆ _IsItFromAsm()

Dtk_bool CaddsReader::_IsItFromAsm ( const Dtk_string inAsmId)
protected

◆ _ProcessCaddsComponent()

Dtk_ErrorStatus CaddsReader::_ProcessCaddsComponent ( const Dtk_string InIdFile,
Dtk_transfo  father_matrix,
Dtk_MainDocPtr inoutDocument,
Dtk_ComponentPtr outComponent 
)
protected

◆ _ProcessCaddsComponentJoints()

Dtk_ErrorStatus CaddsReader::_ProcessCaddsComponentJoints ( Dtk_MainDocPtr inoutDocument,
Dtk_ComponentPtr outJointComponent,
const Dtk_string inComponentId,
Dtk_Int32  inBlanked 
)
protected

◆ _ProcessSuccessorAssemblyJoints()

void CaddsReader::_ProcessSuccessorAssemblyJoints ( Dtk_MainDocPtr inoutDocument,
Dtk_ComponentPtr outJointComponent,
Dtk_string outAssemblyJointsName,
Dtk_Int32  inPosCurrentTree,
Dtk_Int32  inIdJoints,
const Dtk_string inComponentId,
Dtk_Int32  inBlanked 
)
protected

◆ _ReadBodiesInComponent()

Dtk_ErrorStatus CaddsReader::_ReadBodiesInComponent ( const Dtk_ComponentPtr inComponent,
const Dtk_string inAsmId,
Dtk_NodePtr outRootNode 
)
protected

◆ _ReadComponentWithCst()

Dtk_ErrorStatus CaddsReader::_ReadComponentWithCst ( const Dtk_ComponentPtr inComponent,
Dtk_NodePtr outRootNode 
)
protected

◆ _ReadComponentWithCstRecursive()

Dtk_ErrorStatus CaddsReader::_ReadComponentWithCstRecursive ( const Dtk_ComponentPtr inComponent,
Dtk_NodePtr outFatherNode 
)
protected

◆ _ReadConnectedEntity()

virtual Dtk_ErrorStatus Dtk_Reader::_ReadConnectedEntity ( const Dtk_NodeConnectorPtr inConnector,
Dtk_tab< Dtk_EntityPtr > &  outEntity 
)
virtualinherited

Reimplemented in GltfReader.

◆ _ReadDrawingInComponent()

Dtk_ErrorStatus CaddsReader::_ReadDrawingInComponent ( const Dtk_ComponentPtr inComponent,
const Dtk_string inAsmId,
Dtk_NodePtr outRootNode 
)
protected

◆ _ReadFdtInComponent()

Dtk_ErrorStatus CaddsReader::_ReadFdtInComponent ( const Dtk_ComponentPtr inComponent,
const Dtk_string inAsmId,
Dtk_NodePtr outRootNode 
)
protected

◆ _Reset()

void CaddsReader::_Reset ( )
protected

◆ _SetAsmInfos()

void CaddsReader::_SetAsmInfos ( const Dtk_string inAsmIdCounter,
Dtk_ComponentPtr inoutComponent 
)
protected

◆ _StartFile()

Dtk_ErrorStatus CaddsReader::_StartFile ( const Dtk_string inInputFile,
const Dtk_UUID inUuid,
int &  outFileType 
)
protected

◆ _WriteInventoryInLogFile()

Dtk_ErrorStatus Dtk_Reader::_WriteInventoryInLogFile ( Dtk_ID  inID,
int  inNum,
int *  inCount,
char **  inEntitiesName 
)
protectedinherited

◆ acknowledge()

void CaddsReader::acknowledge ( const unsigned long &  thisMiptr)

◆ ActivateReader()

Dtk_ErrorStatus CaddsReader::ActivateReader ( )
virtual

Implements Dtk_Reader.

◆ addExtractEntity()

void CaddsReader::addExtractEntity ( void *  ThisEnt)

◆ alreadyDone()

Dtk_bool CaddsReader::alreadyDone ( const unsigned long &  thisMiptr)

◆ Cadds_EndPart()

Dtk_ErrorStatus CaddsReader::Cadds_EndPart ( )
protected

◆ Cadds_InitPart()

Dtk_ErrorStatus CaddsReader::Cadds_InitPart ( const Dtk_string inInputFile,
const Dtk_UUID inUuid 
)
protected

◆ CADDSUnitScale()

Dtk_Double64& CaddsReader::CADDSUnitScale ( )

◆ CAMUComponents()

Dtk_ComponentPtr& CaddsReader::CAMUComponents ( const Dtk_string )

◆ ClearBodies()

void CaddsReader::ClearBodies ( )

◆ CreateDocument()

Dtk_ErrorStatus CaddsReader::CreateDocument ( const Dtk_string inInputFile,
Dtk_MainDocPtr outDocument 
)
virtual

Implements Dtk_Reader.

◆ CreateDocumentGraphical()

virtual Dtk_ErrorStatus Dtk_Reader::CreateDocumentGraphical ( const Dtk_string inInputFile,
Dtk_MainDocPtr outDocument 
)
virtualinherited

Reimplemented in ProeReader, and GltfReader.

◆ currentFileName()

Dtk_string& CaddsReader::currentFileName ( )

◆ datakitDirectory() [1/2]

Dtk_string& CaddsReader::datakitDirectory ( )

◆ datakitDirectory() [2/2]

const Dtk_string& CaddsReader::datakitDirectory ( ) const

◆ DesactivateReader()

Dtk_ErrorStatus CaddsReader::DesactivateReader ( )
virtual

Implements Dtk_Reader.

◆ Enable()

static Dtk_bool CaddsReader::Enable ( )
static

◆ EndComponent()

Dtk_ErrorStatus CaddsReader::EndComponent ( Dtk_ComponentPtr inComponent)
virtual

Implements Dtk_Reader.

◆ EndPopulateComponentsTree()

Dtk_ErrorStatus CaddsReader::EndPopulateComponentsTree ( )
virtual

Implements Dtk_Reader.

◆ entityIsRead()

Dtk_bool CaddsReader::entityIsRead ( )

◆ errorValue()

Dtk_ErrorStatus& CaddsReader::errorValue ( )

◆ extractedEntity()

void* CaddsReader::extractedEntity ( )

◆ extractEntityIsRead()

Dtk_bool CaddsReader::extractEntityIsRead ( )

◆ extractReadBody()

void CaddsReader::extractReadBody ( Dtk_tab< Dtk_EntityPtr > &  outBody)

◆ filterDrawing()

Dtk_bool& CaddsReader::filterDrawing ( )

◆ GetAssociatedEntities()

virtual Dtk_ErrorStatus Dtk_Reader::GetAssociatedEntities ( Dtk_Node inNode,
Dtk_tab< Dtk_NodeConnectorPtr > &  outAssociatedEntities 
)
virtualinherited

Reimplemented in StepReader, SolidEdgeReader, ProeReader, JtReader, GltfReader, CreoviewReader, and BRepOccReader.

51  {
52  outAssociatedEntities.clear(); inNode.GetID(); return dtkErrorNotYetImplemented;};

◆ GetConnectorsPointingToThisComponent()

virtual Dtk_ErrorStatus Dtk_Reader::GetConnectorsPointingToThisComponent ( Dtk_Component inCompo,
Dtk_tab< Dtk_NodeConnectorPtr > &  outConnectedEntities 
)
virtualinherited

Reimplemented in StepReader, SolidEdgeReader, ProeReader, JtReader, GltfReader, CreoviewReader, and BRepOccReader.

53  {
54  outConnectedEntities.clear(); inCompo.GetID(); return dtkErrorNotYetImplemented;};

◆ getDumpFile()

FILE* CaddsReader::getDumpFile ( )

◆ GetFilePreview()

virtual Dtk_ErrorStatus Dtk_Reader::GetFilePreview ( const Dtk_string inInputFile,
Dtk_PreviewPtr outPreview 
)
virtualinherited

Reimplemented in SolidEdgeReader, ProeReader, and _3dmReader.

34  {DTK_UNUSED(inInputFile); outPreview = NULL; return dtkErrorNotYetImplemented;}

◆ GetFileVersion()

Dtk_ErrorStatus CaddsReader::GetFileVersion ( const Dtk_string inInputFile,
Dtk_string outVersion 
)
virtual

Implements Dtk_Reader.

◆ GetInstance()

static CaddsReader* CaddsReader::GetInstance ( )
static

◆ getOtherEntities()

void CaddsReader::getOtherEntities ( )

◆ getOtherEntitiesAsmComponent()

void CaddsReader::getOtherEntitiesAsmComponent ( )

◆ GetVersion()

Dtk_Int32 CaddsReader::GetVersion ( )
virtual

Implements Dtk_Reader.

◆ initDumpFile()

void CaddsReader::initDumpFile ( )

◆ initRead()

void CaddsReader::initRead ( )

◆ isCAMU()

Dtk_bool& CaddsReader::isCAMU ( )

◆ isTopologic()

void CaddsReader::isTopologic ( const unsigned long &  thisMiptr)

◆ nbExtracted()

Dtk_UInt32 CaddsReader::nbExtracted ( )

◆ PopulateComponentsTree() [1/2]

Dtk_ErrorStatus CaddsReader::PopulateComponentsTree ( const Dtk_string inInputFile,
Dtk_MainDocPtr inoutDocument,
Dtk_ComponentPtr outRootComponent 
)
virtual

Implements Dtk_Reader.

◆ PopulateComponentsTree() [2/2]

Dtk_ErrorStatus CaddsReader::PopulateComponentsTree ( const Dtk_tab< Dtk_StreamPtr > &  inArrayStream,
Dtk_MainDocPtr inoutDocument,
Dtk_ComponentPtr outRootComponent 
)
virtual

Implements Dtk_Reader.

◆ processTopology()

Dtk_bool CaddsReader::processTopology ( )

◆ processTopologyAsmComponent()

Dtk_bool CaddsReader::processTopologyAsmComponent ( )

◆ pushEntity() [1/2]

void CaddsReader::pushEntity ( const unsigned long &  thisMiptr,
Dtk_EntityPtr ent 
)

◆ pushEntity() [2/2]

void CaddsReader::pushEntity ( Dtk_EntityPtr ent)

◆ ReadAdditionalInfos()

Dtk_ErrorStatus CaddsReader::ReadAdditionalInfos ( Dtk_Node inNode,
Dtk_ObjectPtr outEntity 
)
virtual

Implements Dtk_Reader.

◆ ReadAdvancedFeature()

virtual Dtk_ErrorStatus Dtk_Reader::ReadAdvancedFeature ( Dtk_Node inNode,
Dtk_ObjectPtr outEntity 
)
virtualinherited

◆ readAllEntities()

void CaddsReader::readAllEntities ( )

◆ readCamuAllowed()

Dtk_bool& CaddsReader::readCamuAllowed ( )

◆ ReadComponent()

Dtk_ErrorStatus CaddsReader::ReadComponent ( const Dtk_ComponentPtr inComponent,
Dtk_NodePtr outRootNode 
)
virtual

Implements Dtk_Reader.

◆ ReadComponentGraphic()

virtual Dtk_ErrorStatus Dtk_Reader::ReadComponentGraphic ( const Dtk_ComponentPtr inComponent,
Dtk_GraphicalDataPtr outGraphicalData 
)
virtualinherited

◆ ReadEntity()

Dtk_ErrorStatus CaddsReader::ReadEntity ( Dtk_Node inNode,
Dtk_EntityPtr outEntity 
)
virtual

Implements Dtk_Reader.

◆ readMiptr_val()

Dtk_EntityPtr CaddsReader::readMiptr_val ( const unsigned long &  index)

◆ readOnlyGeometry()

Dtk_bool& CaddsReader::readOnlyGeometry ( )

◆ readOnlyWireFrame()

Dtk_bool& CaddsReader::readOnlyWireFrame ( )

◆ readParametricAllowed()

Dtk_bool& CaddsReader::readParametricAllowed ( )

◆ readVisibility()

Dtk_Short16& CaddsReader::readVisibility ( )

◆ resultBodies()

Dtk_tab<Dtk_EntityPtr> CaddsReader::resultBodies ( )

◆ setReadBody()

void CaddsReader::setReadBody ( Dtk_tab< Dtk_EntityPtr > &  thisBody)

◆ storeCallbackResult()

void CaddsReader::storeCallbackResult ( const unsigned long &  thisMiptr,
Dtk_EntityPtr  outent 
)

Field Documentation

◆ _InputFile

Dtk_string Dtk_Reader::_InputFile
protectedinherited

◆ _InputFilePtr

FILE* Dtk_Reader::_InputFilePtr
protectedinherited

◆ _private

CaddsReader::caddsReader_Handle* CaddsReader::_private
protected

◆ _ReaderInstance

CaddsReader* CaddsReader::_ReaderInstance
staticprotected
CaddsReader::CaddsReader
CaddsReader()
dtkErrorNotYetImplemented
@ dtkErrorNotYetImplemented
Definition: error_dtk.hpp:32
Dtk_DocElement::GetID
Dtk_ID GetID() const
Retrieves the Dtk_DocElement ID - read only -.
CaddsReader::_ReaderInstance
static CaddsReader * _ReaderInstance
Definition: dtk_CaddsReader.hpp:22
Dtk_tab::clear
void clear(int no_delete=0)
Resets the Dtk_tab content.
Definition: util_stl_dtk.hpp:351
DTK_UNUSED
#define DTK_UNUSED(a)
Definition: define.h:730