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

Public Member Functions

virtual Dtk_ErrorStatus _ReadConnectedEntity (const Dtk_NodeConnectorPtr &inConnector, Dtk_tab< Dtk_EntityPtr > &outEntity)
 
Dtk_ErrorStatus ActivateReader ()
 
Dtk_ErrorStatus CreateDocument (const Dtk_string &inInputFile, Dtk_MainDocPtr &outDocument)
 
Dtk_ErrorStatus CreateDocumentGraphical (const Dtk_string &inInputFile, Dtk_MainDocPtr &outDocument)
 
Dtk_ErrorStatus DesactivateReader ()
 
Dtk_ErrorStatus EndComponent (Dtk_ComponentPtr &inComponent)
 
Dtk_ErrorStatus EndPopulateComponentsTree ()
 
Dtk_ErrorStatus GetAssociatedEntities (Dtk_Node &inNode, Dtk_tab< Dtk_NodeConnectorPtr > &outAssociatedEntities)
 
Dtk_ErrorStatus GetConnectorsPointingToThisComponent (Dtk_Component &inCompo, Dtk_tab< Dtk_NodeConnectorPtr > &outConnectedEntities)
 
Dtk_ErrorStatus GetFilePreview (const Dtk_string &inInputFile, Dtk_PreviewPtr &outPreview)
 
Dtk_ErrorStatus GetFileVersion (const Dtk_string &inInputFile, Dtk_string &outVersion)
 
Dtk_Int32 GetVersion ()
 
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_ErrorStatus ReadAdditionalInfos (Dtk_Node &inNode, Dtk_ObjectPtr &outEntity)
 
virtual Dtk_ErrorStatus ReadAdvancedFeature (Dtk_Node &inNode, Dtk_ObjectPtr &outEntity)
 
Dtk_ErrorStatus ReadComponent (const Dtk_ComponentPtr &inComponent, Dtk_NodePtr &outRootNode)
 
Dtk_ErrorStatus ReadComponentGraphic (const Dtk_ComponentPtr &inComponent, Dtk_GraphicalDataPtr &outGraphicalData)
 
Dtk_ErrorStatus ReadEntity (Dtk_Node &inNode, Dtk_EntityPtr &outEntity)
 
void Release ()
 

Static Public Member Functions

static Dtk_bool Enable ()
 
static void GetAllMetadata (Dtk_bool inStatus)
 
static void GetDetailledMetadata (Dtk_bool inStatus)
 
static Dtk_bool GetFileSwapStatus ()
 
static ProeReaderGetInstance ()
 
static void SetAssemblyLvlGeomConfig (const Dtk_bool inStatus)
 Set the config to retreive the final geometry of the component with assembly level feature (but only mesh or preview body) More...
 
static void SetCreateConicEdges (const Dtk_bool inCreateConicEdges)
 Set the config to create or not conic on edge curves if possible. More...
 
static void SetDisable2dProjectionForShadedView (const Dtk_bool inDisableProjection)
 Set the config to disable projection on shaded 2D view (allowing you to shade body by yourself) More...
 
static void SetFileSwapStatus (const Dtk_bool inFileSwap)
 Set the config to Use file swap instead memory (usefull for large files) More...
 
static void SetSurfaciqueMode (const Dtk_bool inSurfaciqueMode)
 

Protected Member Functions

void _Init ()
 
void _Reset ()
 
Dtk_ErrorStatus _WriteInventoryInLogFile (Dtk_ID inID, int inNum, int *inCount, char **inEntitiesName)
 

Protected Attributes

Dtk_string _InputFile
 
FILE * _InputFilePtr
 

Member Function Documentation

◆ _Init()

void Dtk_Reader::_Init ( )
protectedinherited

◆ _ReadConnectedEntity()

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

Reimplemented in GltfReader.

◆ _Reset()

void Dtk_Reader::_Reset ( )
protectedinherited

◆ _WriteInventoryInLogFile()

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

◆ ActivateReader()

Dtk_ErrorStatus ProeReader::ActivateReader ( )
virtual

Implements Dtk_Reader.

◆ CreateDocument()

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

Implements Dtk_Reader.

◆ CreateDocumentGraphical()

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

Reimplemented from Dtk_Reader.

◆ DesactivateReader()

Dtk_ErrorStatus ProeReader::DesactivateReader ( )
virtual

Implements Dtk_Reader.

◆ Enable()

static Dtk_bool ProeReader::Enable ( )
static

◆ EndComponent()

Dtk_ErrorStatus ProeReader::EndComponent ( Dtk_ComponentPtr inComponent)
virtual

Implements Dtk_Reader.

◆ EndPopulateComponentsTree()

Dtk_ErrorStatus ProeReader::EndPopulateComponentsTree ( )
virtual

Implements Dtk_Reader.

◆ GetAllMetadata()

static void ProeReader::GetAllMetadata ( Dtk_bool  inStatus)
static

◆ GetAssociatedEntities()

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

Reimplemented from Dtk_Reader.

◆ GetConnectorsPointingToThisComponent()

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

Reimplemented from Dtk_Reader.

◆ GetDetailledMetadata()

static void ProeReader::GetDetailledMetadata ( Dtk_bool  inStatus)
static

◆ GetFilePreview()

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

Reimplemented from Dtk_Reader.

◆ GetFileSwapStatus()

static Dtk_bool ProeReader::GetFileSwapStatus ( )
static

◆ GetFileVersion()

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

Implements Dtk_Reader.

◆ GetInstance()

static ProeReader* ProeReader::GetInstance ( )
static

◆ GetVersion()

Dtk_Int32 ProeReader::GetVersion ( )
virtual

Implements Dtk_Reader.

◆ PopulateComponentsTree() [1/2]

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

Implements Dtk_Reader.

◆ PopulateComponentsTree() [2/2]

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

Implements Dtk_Reader.

◆ ReadAdditionalInfos()

Dtk_ErrorStatus ProeReader::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

◆ ReadComponent()

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

Implements Dtk_Reader.

◆ ReadComponentGraphic()

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

Reimplemented from Dtk_Reader.

◆ ReadEntity()

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

Implements Dtk_Reader.

◆ Release()

void ProeReader::Release ( )

◆ SetAssemblyLvlGeomConfig()

static void ProeReader::SetAssemblyLvlGeomConfig ( const Dtk_bool  inStatus)
static

Set the config to retreive the final geometry of the component with assembly level feature (but only mesh or preview body)

Parameters
[in]inStatus: DTK_TRUE [yes] , DTK_FALSE[no] default value DTK_FALSE

◆ SetCreateConicEdges()

static void ProeReader::SetCreateConicEdges ( const Dtk_bool  inCreateConicEdges)
static

Set the config to create or not conic on edge curves if possible.

Parameters
[in]inCreateConicEdge: DTK_TRUE [yes] , DTK_FALSE[no] default value DTK_FALSE

◆ SetDisable2dProjectionForShadedView()

static void ProeReader::SetDisable2dProjectionForShadedView ( const Dtk_bool  inDisableProjection)
static

Set the config to disable projection on shaded 2D view (allowing you to shade body by yourself)

Parameters
[in]inDisableProjection: DTK_TRUE [yes] , DTK_FALSE[no] default value DTK_FALSE

◆ SetFileSwapStatus()

static void ProeReader::SetFileSwapStatus ( const Dtk_bool  inFileSwap)
static

Set the config to Use file swap instead memory (usefull for large files)

Parameters
[in]inFileSwap: DTK_TRUE [yes] , DTK_FALSE[no] default value DTK_FALSE

◆ SetSurfaciqueMode()

static void ProeReader::SetSurfaciqueMode ( const Dtk_bool  inSurfaciqueMode)
static

Field Documentation

◆ _InputFile

Dtk_string Dtk_Reader::_InputFile
protectedinherited

◆ _InputFilePtr

FILE* Dtk_Reader::_InputFilePtr
protectedinherited