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

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

Static Public Member Functions

static Dtk_bool checkNewColorMethod ()
 
static Dtk_bool Enable ()
 
static void EnableNewColorMethod ()
 
static Dtk_ErrorStatus ReadAnalyticDefinition (Dtk_ID inJele, Dtk_SurfacePtr &outSrf)
 : Read analytic surface ( if available ) used to create the surface of Dtk_FacePtr More...
 
static void SetConfigMockUpAsMesh (int ival)
 : Enable or disable conversion from MockUp Solid into a mesh solid More...
 
static void SetConfigOrderedSessionTree (Dtk_Int32 inValue)
 
static void SetConfigReadAnalyticSurface (int inVal)
 : Enable or disable conversion from nurbs surfaces to analytic surfaces if defined on the 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

◆ ~CatiaV4Reader()

virtual CatiaV4Reader::~CatiaV4Reader ( )
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()

◆ checkNewColorMethod()

static Dtk_bool CatiaV4Reader::checkNewColorMethod ( )
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 CatiaV4Reader::Enable ( )
static

◆ EnableNewColorMethod()

static void CatiaV4Reader::EnableNewColorMethod ( )
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()

◆ GetVersion()

◆ PopulateComponentsTree() [1/2]

◆ PopulateComponentsTree() [2/2]

◆ ReadAdditionalInfos()

◆ ReadAdvancedFeature()

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

◆ ReadAnalyticDefinition()

static Dtk_ErrorStatus CatiaV4Reader::ReadAnalyticDefinition ( Dtk_ID  inJele,
Dtk_SurfacePtr outSrf 
)
static

: Read analytic surface ( if available ) used to create the surface of Dtk_FacePtr

Parameters
[in]inJele: ID of surface entity , obtain by infos->get_ID() of the Dtk_SurfacePtr of Dtk_FacePtr [out] outSrf : Description of analytic surface found
Returns
status Error dtkErrorAPINotStarted : DtkAPI not started dtkErrorUnavailableReader : CatiaV4 reader not enable dtkCatiaV4_3dReadBadEntityNumber : Bad input parameter : inJele not a surface entity dtkErrorAttributeNotFound : No analytic description available dtkErrorNotProcessed : unknown analytic description
Remarks
: surfaces analytics read are : -Plane (Dtk_PlaneSurface) -Sphere (Dtk_SphericalSurface) -Torus (Dtk_ToroidalSurface) -Cylindrical (Dtk_CylindricalSurface) -Conical (Dtk_ConicalSurface)

Sample:

◆ ReadComponent()

◆ ReadComponentGraphic()

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

◆ ReadEntity()

◆ SetConfigMockUpAsMesh()

static void CatiaV4Reader::SetConfigMockUpAsMesh ( int  ival)
static

: Enable or disable conversion from MockUp Solid into a mesh solid

Parameters
[in]ival: 0 disable ( MOckUp Solid are a set of Curve_bounded_surface ) 1 enable ( MockUp SOlid are a Mesh_solid )
Returns
void Sample:
Default value is 0

◆ SetConfigOrderedSessionTree()

static void CatiaV4Reader::SetConfigOrderedSessionTree ( Dtk_Int32  inValue)
static

◆ SetConfigReadAnalyticSurface()

static void CatiaV4Reader::SetConfigReadAnalyticSurface ( int  inVal)
static

: Enable or disable conversion from nurbs surfaces to analytic surfaces if defined on the file

Parameters
[in]ival: 0 disable ( keep basic nurbs dfinbition ) 1 enable ( try to replace by analytic surface if strored on the file )
Returns
void Sample:
Default value is 0

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