DATAKIT API  V2025.1
UgReader Class Referenceabstract
+ Inheritance diagram for UgReader:

Public Member Functions

virtual Dtk_ErrorStatus _ReadConnectedEntity (const Dtk_NodeConnectorPtr &inConnector, Dtk_tab< Dtk_EntityPtr > &outEntity)
 
virtual Dtk_ErrorStatus ActivateReader ()=0
 
virtual Dtk_ErrorStatus CreateDocument (const Dtk_string &inInputFile, Dtk_MainDocPtr &outDocument)=0
 
virtual Dtk_ErrorStatus CreateDocumentGraphical (const Dtk_string &inInputFile, Dtk_MainDocPtr &outDocument)
 
virtual Dtk_ErrorStatus DesactivateReader ()=0
 
virtual Dtk_ErrorStatus EndComponent (Dtk_ComponentPtr &inComponent)=0
 
virtual Dtk_ErrorStatus EndPopulateComponentsTree ()=0
 
virtual Dtk_ErrorStatus GetAssociatedEntities (Dtk_Node &inNode, Dtk_tab< Dtk_NodeConnectorPtr > &outAssociatedEntities)
 
virtual Dtk_ErrorStatus GetConnectorsPointingToThisComponent (Dtk_Component &inCompo, Dtk_tab< Dtk_NodeConnectorPtr > &outConnectedEntities)
 
virtual Dtk_ErrorStatus GetFilePreview (const Dtk_string &inInputFile, Dtk_PreviewPtr &outPreview)
 
virtual Dtk_ErrorStatus GetFileVersion (const Dtk_string &inInputFile, Dtk_string &outVersion)=0
 
void * GetSearchEngine ()
 
Dtk_ReaderGetSubReader ()
 
virtual Dtk_Int32 GetVersion ()=0
 
virtual Dtk_ErrorStatus PopulateComponentsTree (const Dtk_string &inInputFile, Dtk_MainDocPtr &inoutDocument, Dtk_ComponentPtr &outRootComponent)=0
 
virtual Dtk_ErrorStatus PopulateComponentsTree (const Dtk_tab< Dtk_StreamPtr > &inArrayStream, Dtk_MainDocPtr &inoutDocument, Dtk_ComponentPtr &outRootComponent)=0
 
virtual Dtk_ErrorStatus ReadAdditionalInfos (Dtk_Node &inNode, Dtk_ObjectPtr &outEntity)=0
 
virtual Dtk_ErrorStatus ReadAdvancedFeature (Dtk_Node &inNode, Dtk_ObjectPtr &outEntity)
 
virtual Dtk_ErrorStatus ReadComponent (const Dtk_ComponentPtr &inComponent, Dtk_NodePtr &outRootNode)=0
 
virtual Dtk_ErrorStatus ReadComponentGraphic (const Dtk_ComponentPtr &inComponent, Dtk_GraphicalDataPtr &outGraphicalData)
 
virtual Dtk_ErrorStatus ReadEntity (Dtk_Node &inNode, Dtk_EntityPtr &outEntity)=0
 
virtual ~UgReader ()=0
 

Static Public Member Functions

static void AddSplitFeatureName (type_detk inType)
 split the name for this entity type More...
 
static void ClearSplitFeatureName ()
 
static Dtk_bool Enable ()
 
static void RemoveDefaultName (Dtk_bool inRemoveDefaultName)
 remove default name for entity as point , line , arc ... More...
 
static void RemoveFeatureName (Dtk_bool inRemoveFeatureName)
 keep geometry name instead feature name More...
 
static void RemoveFeatureTree (Dtk_bool inRemoveFeatureTree)
 remove the feature tree More...
 
static void RemoveZoomFitCamera (Dtk_bool inRemoveZoomfit)
 remove zoomfit camera More...
 
static void SetManageAssemblyAsPart (Dtk_bool inManageAsPart)
 Use to manage an assembly file as a part. More...
 
static void UseCdfFilename (const Dtk_string &inCdfFilename)
 use this cdf file More...
 

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
 

Constructor & Destructor Documentation

◆ ~UgReader()

virtual UgReader::~UgReader ( )
pure virtual

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()

◆ AddSplitFeatureName()

static void UgReader::AddSplitFeatureName ( type_detk  inType)
static

split the name for this entity type

Parameters
inTypetype_detk to split name

◆ ClearSplitFeatureName()

static void UgReader::ClearSplitFeatureName ( )
static

◆ CreateDocument()

◆ CreateDocumentGraphical()

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

Reimplemented in ProeReader, and GltfReader.

◆ DesactivateReader()

◆ Enable()

static Dtk_bool UgReader::Enable ( )
static

◆ EndComponent()

◆ EndPopulateComponentsTree()

◆ 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;};

◆ 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()

◆ GetSearchEngine()

void* UgReader::GetSearchEngine ( )

◆ GetSubReader()

Dtk_Reader* UgReader::GetSubReader ( )

◆ GetVersion()

◆ PopulateComponentsTree() [1/2]

◆ PopulateComponentsTree() [2/2]

◆ ReadAdditionalInfos()

◆ ReadAdvancedFeature()

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

◆ ReadComponent()

◆ ReadComponentGraphic()

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

◆ ReadEntity()

◆ RemoveDefaultName()

static void UgReader::RemoveDefaultName ( Dtk_bool  inRemoveDefaultName)
static

remove default name for entity as point , line , arc ...

Parameters
inRemoveDefaultNameDTK_TRUE to remove the default name
Warning
call it after Dtk_API initialization and before the Dtk_API::OpenDocument call.

◆ RemoveFeatureName()

static void UgReader::RemoveFeatureName ( Dtk_bool  inRemoveFeatureName)
static

keep geometry name instead feature name

Parameters
inRemoveFeatureNameDTK_TRUE to remove the feature name
Warning
call it after Dtk_API initialization and before the Dtk_API::OpenDocument call.

◆ RemoveFeatureTree()

static void UgReader::RemoveFeatureTree ( Dtk_bool  inRemoveFeatureTree)
static

remove the feature tree

Parameters
inRemoveFeatureTreeDTK_TRUE to remove the feature tree
Warning
call it after Dtk_API initialization and before the Dtk_API::OpenDocument call.

◆ RemoveZoomFitCamera()

static void UgReader::RemoveZoomFitCamera ( Dtk_bool  inRemoveZoomfit)
static

remove zoomfit camera

Parameters
inRemoveZoomfitDTK_TRUE to remove the zoomfit
Warning
call it after Dtk_API initialization and before the Dtk_API::OpenDocument call.

◆ SetManageAssemblyAsPart()

static void UgReader::SetManageAssemblyAsPart ( Dtk_bool  inManageAsPart)
static

Use to manage an assembly file as a part.

Parameters
inManageAsPartDTK_TRUE to manage an assembly as a part
Warning
call it after Dtk_API initialization and before the Dtk_API::OpenDocument call.

◆ UseCdfFilename()

static void UgReader::UseCdfFilename ( const Dtk_string inCdfFilename)
static

use this cdf file

Parameters
inCdfFilenamename of cdf file
Warning
call it after Dtk_API initialization and before the Dtk_API::OpenDocument call.

Field Documentation

◆ _InputFile

Dtk_string Dtk_Reader::_InputFile
protectedinherited

◆ _InputFilePtr

FILE* Dtk_Reader::_InputFilePtr
protectedinherited
dtkErrorNotYetImplemented
@ dtkErrorNotYetImplemented
Definition: error_dtk.hpp:32
Dtk_DocElement::GetID
Dtk_ID GetID() const
Retrieves the Dtk_DocElement ID - read only -.
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