DATAKIT SDK  V2026.2
dtk_api.hpp
Go to the documentation of this file.
1 #ifndef _UTIL_API_DTK_HPP_
2 #define _UTIL_API_DTK_HPP_
3 
4 #include "def/define.h"
5 #include "util/dtk_maindoc.hpp"
7 #include "util/error_dtk.hpp"
10 #include "util/util_ptr_dtk.hpp"
11 #include "util/util_stl_dtk.hpp"
12 #include <cstdio>
13 
14 class Dtk_Config;
15 class Dtk_ColorTable;
16 class Dtk_Reader;
17 class Dtk_Log;
19 class Dtk_Preview;
21 class Dtk_GraphicalData;
23 
25 {
26  DTK_BODYMODE_NOPREFERENCE = 0, //no preference (faster)
27  DTK_BODYMODE_UVSURFACIC, //Prepare data to get UV boundaries (Needed for Tesselation Lib)
28  DTK_BODYMODE_COMPLETETOPOLOGY, //default : Prepare data to get 3D and corresponding UV boundaries
29  DTK_BODYMODE_3DTOPOLOGY //Prepare data to get 3D boundaries
30 };
31 
32 
34 {
35 public:
37  {
38 
39  };
41  {
42 
43  };
44 
46  {
50  };
52  {
59  };
60 
61  enum Status
62  {
63  Enable = 0,
65  };
66 
67 private:
68 
69 };
70 
71 
72 
73 
74 class Dtk_API
75 {
76 protected:
77  class Dtk_Handle; // Not defined here
78  Dtk_Handle *_Private; // Handle
80 
128 
129  Dtk_ErrorStatus _InitData(const Dtk_string& inTemporyDirectory,const Dtk_string &inClientCode);
130  void _Init();
131  void _Reset();
133  virtual ~Dtk_API();
134 
135 private :
136  friend class Dtk_Node;
137  friend class Dtk_Component;
138  friend class Dtk_APIContext;
139  friend class Dtk_MainDocWrapper;
140 
141  friend class CatiaV5Reader;
142  friend class CatiaV6Reader;
143  friend class VdaReader;
144  friend class InvReader;
145  friend class CatiaV4Reader;
146  friend class IgesReader;
147  friend class UgReader;
148  friend class XmtReader;
149  friend class SwReader;
150  friend class SeReader;
151  friend class ProeReader;
152  friend class JtReader;
153  friend class StepReader;
154  friend class PsReader;
155  friend class AcisReader;
156  friend class CgrReader;
157  friend class CaddsReader;
158  friend class ProCeraReader;
159  friend class CerconReader;
160  friend class CerecReader;
161  friend class XmlReader;
162  friend class DcmReader;
163  friend class DxfReader;
164  friend class PlmXmlReader;
165  friend class LavaReader;
166  friend class RnXmlReader;
167  friend class _3dmReader;
168  friend class DwgReader;
169  friend class ObjReader;
170  friend class IfcReader;
171  friend class SolidEdgeReader;
172  friend class BRepOccReader;
173  friend class RevitReader;
174  friend class CreoviewReader;
175  friend class StlReader;
176  friend class FbxReader;
177  friend class SdnfReader;
178  friend class CgmReader;
179  friend class ArtReader;
180  friend class SmgReader;
181  friend class PrcReader;
182  friend class F3dReader;
183  friend class GltfReader;
184  friend class DstvReader;
185  friend class NavisReader;
186  friend class QifReader;
187  friend class DwgDtkReader;
188  friend class Zw3dReader;
189  friend class UsdReader;
190 
191  Dtk_ErrorStatus _ActivateReader();
192  Dtk_ErrorStatus _DesactivateReader();
193 
194  void _WriteTimeLog();
195  virtual void InitLog();
196 
197 public:
198  //! \brief GetVersion of DatakitLibs
200  //! \brief Start DATAKIT API
201  //! \param [in] inTemporyDirectory : Directory where API can write temporary files.
202  //! \param [out] outErrorCode : Error code if API returned is NULL.
203  //! \param [in] inCustomerID : Customer ID if you have one.
204  //! \return Pointer on API if OK, NULL if can't write in inTemporyDirectory or can't find licence
205  static Dtk_API* StartAPI(const Dtk_string& inTemporyDirectory,Dtk_ErrorStatus &outErrorCode, const Dtk_string& inCustomerID=Dtk_string());
206 
207  //! \brief Stop DATAKIT API
208  //! \param [in] inAPI : Api to stop.
209  static void StopAPI(Dtk_API*& inAPI, Dtk_bool inWriteTimeInLog = 1);
210  //! \brief Get DATAKIT API
211  //! \return Pointer on API
212  static Dtk_API* GetAPI();
213 
214  //! \brief Deactivate FlexlmCall
215  // avoid license check for unlimited customer
216  static void DeactivateFlexlmCall();
217 
218 
219  //! \brief Add customer Id for evaluation
220  //! \param [in] inEvaluationID : Additionnal ID .
221  //! \return dtkNoError if OK
223 
224  void BreakApi();
226 
227  Dtk_Config *GetConfig();
228  Dtk_ColorTable *GetColorTable();
229 
230  const Dtk_LogPtr& GetLog();
231 
232 
233  //! \deprecated Use AddRenderInfosInTable method instead.
234  SetAsDeprecated("2017.4 ", "Use AddRenderInfosInTable method instead")
235  Dtk_ID AddMaterialInTable(const Dtk_RenderInfosPtr &inNewRenderInfos);
236  //! \deprecated Use GetNumRenderInfosInTable method instead.
237  SetAsDeprecated("2017.4 ", "Use GetNumRenderInfosInTable method instead")
238  Dtk_Size_t GetNumMaterialInTable() const;
239  //! \deprecated Use GetRenderInfosInTable method instead.
240  SetAsDeprecated("2017.4 ", "Use GetRenderInfosInTable method instead")
241  Dtk_RenderInfosPtr GetMaterialInTable(Dtk_ID inId) const;
242 
243 
247 
251 
252 
256 
260 
261  //! \brief Set Log File.
262  //! \param [in] inLogFile : File where API can write infos.
263  //! \return dtkNoError if OK
265 
266  //! \brief Set Schema Directory needed for Unigraphics, Parasolid, Solidedge, Solidworks and Jt readers.
267  //! \param [in] inSchemaDir : Directory where API can find Parasolid Schema.
268  //! \return dtkNoError if OK
270  //! \brief Change TemporyDirectory
271  //! \param [in] inWorkingDir : Directory where API can write temporary files.
272  //! \return dtkNoError if OK
274  const Dtk_string & GetLogFile() const ;
275  const Dtk_string & GetSchemaDir()const;
276  const Dtk_string & GetWorkingDir()const;
277 
278 
280  Dtk_ErrorStatus WriteInLogFile(const char *inString);
281 
283 
285  Dtk_ErrorStatus LoadConfigFile(FILE *inConfigFile);
286 
287  //! \brief Independant method to get DtkReaderType associated to inFileName
288  //! \param [in] inInputFile : File to read.
289  //! \return Module type or UnknownModule
291 
292  //! \brief Independant method to get version of inInputFile.
293  //! \param [in] inInputFile : File to read.
294  //! \param [out] outVersion : File Version if found.
295  //! \return Error if version not supported
296  Dtk_ErrorStatus GetFileVersion(const Dtk_string &inInputFile, Dtk_string& outVersion);
297 
298  //! \brief Independant method to get preview of inInputFile.
299  //! \param [in] inInputFile : File to read.
300  //! \param [out] outPreview : File Preview if found.
301  //! \return dtkNoError if OK
302  Dtk_ErrorStatus GetFilePreview(const Dtk_string &inInputFile, Dtk_PreviewPtr& outPreview);
303 
304  //! \brief Open a Document (call EndDocument to close it)
305  //! \param [in] inInputFile : File to read.
306  //! \param [out] outDocument : Assembly Tree corresponding to inInputFile.
307  //! \return dtkNoError if OK
308  Dtk_ErrorStatus OpenDocument(const Dtk_string& inInputFile, Dtk_MainDocPtr& outDocument);
309  //! \brief Open a Document for graphical representation(call EndDocument to close it)
310  //! \param [in] inInputFile : File to read.
311  //! \param [out] outDocument : Assembly Tree corresponding to Graphical representation of inInputFile.
312  //! \return dtkNoError if OK
313  Dtk_ErrorStatus OpenDocumentGraphic( const Dtk_string& inInputFile, Dtk_MainDocPtr& outDocument );
314 
315  //! \brief Close a Document.
316  //! \param [in,out] inoutDocument : Assembly Tree opened with OpenDocument or OpenDocumentGraphic.
317  //! \return Pointer on API
319 
320  //! \brief Read Component from Assembly Tree (Call EndComponent to free data allocated)
321  //! \param [in] inComponent : Component to read.
322  //! \param [out] outRootNode : Root of construction tree read. Can be NULL if component is empty
323  //! \return dtkNoError if OK
325  const Dtk_ComponentPtr& inComponent,
326  Dtk_NodePtr& outRootNode);
327 
328  //! \brief Read graphical data from Component (Call EndComponent to free data allocated)
329  //! \param [in] inComponent : Component to read.
330  //! \param [out] outGraphicalData : Dtk_GraphicalData with meshes or drawing
331  //! \return dtkNoError if OK
333  const Dtk_ComponentPtr& inComponent,
334  Dtk_GraphicalDataPtr& outGraphicalData );
335 
336  //! \brief EndComponent
337  //! \param [in] inComponent : Component to free.
338  //! \return dtkNoError if OK
340 
341  //! \brief Clear Search Path initialised with AddSearchPathForAssembly
342  //! \return dtkNoError if OK
344  //! \brief Add search path to find missing files of assemblies
345  //! \param [in] inPath : Path to search missing files
346  //! \param [out] inRecursiveFlag : Search in subdirectories of inPath if DTK_TRUE
347  //! \return dtkNoError if OK
349  Dtk_ErrorStatus GetSearchPathForAssembly(Dtk_tab<Dtk_string> &outPathArray, Dtk_tab<Dtk_bool> &outRecursiveFlagArray) const;
350 
351  //! \brief Add search path to find missing files
352  //! \param [in] inRecursivityEnum : value of which search type from Dtk_SearchFileEnum::RecursivityEnum
353  //! \param [in] inPath : Path to search file
354  //! \return dtkNoError if OK
355  Dtk_ErrorStatus AddSearchPath(const Dtk_SearchFileEnum::RecursivityEnum& inRecursivityEnum , const Dtk_string &inPath);
356 
357 
358  //! \brief Clear Search Priority
359  //! \return dtkNoError if OK
361 
362 
363  //! \brief Set Search Position
364  //! \param [in] inPosition : position into search array 0..5
365  //! \param [out] inSearchEnum : Search enum
366  //! \return dtkNoError if OK
367  Dtk_ErrorStatus SetSearchPositionMode(Dtk_Int32 inPosition, Dtk_SearchFileEnum::PriorityModeEnum inSearchEnum);
368 
369 
370  //! \brief Clear Search Path initialised with AddSearchPathForFonts
371  //! \return dtkNoError if OK
373  //! \brief Add search path to find fonts
374  //! \param [in] inPath : Path to search fonts
375  //! \return dtkNoError if OK
378 
379  //! \brief Returns List of Failed Licence ever checked
380  //! \param [out] outList : List of Product Name
382 
384  const Dtk_string& inInputFile,
385  Dtk_MainDocPtr& inoutDocument,
386  Dtk_ComponentPtr& outRootComponent);
387 
390 
391 
395 
396  //! \brief From V66 Use old way to read Revolution Surface
399 
400  //! \deprecated Not usefull anymore - Always Activaded from V73.
401  SetAsDeprecated("2025.4 ", "Not usefull anymore - Always Activaded from V73")
402  void ActivateNewFdtRead();
403  //! \deprecated Not usefull anymore - Always TRUE from V73.
404  SetAsDeprecated("2025.4 ", "Not usefull anymore - Always TRUE from V73")
405  Dtk_bool IsNewFdtReadActivated();
406 
407 
408  //! \brief Set Body Topology Preference
409  // DTK_BODYMODE_UVSURFACIC, //Prepare data to get UV boundaries
410  // DTK_BODYMODE_COMPLETETOPOLOGY, //default : Prepare data to get 3D and corresponding UV boundaries
411  // DTK_BODYMODE_3DTOPOLOGY //Prepare data to get 3D boundaries
414 
415  //! \brief Disable/Enable Control for extra module
418 
419 
420  //! \brief Split Periodic Faces when we read a model
421  // only available on following readers :Unigraphics, Solidworks, Solidedge, Parasolid, Acis, Inventor
423 
424  //! \brief Split Multi Turns Faces when we read a model
425  // only available on following readers :Unigraphics, Solidworks, Solidedge, Parasolid
427 
428  //! \brief Keep Kernel Data option (see "How to use KeepKernelData option")
429  // only available on following readers :Unigraphics, Solidworks, Solidedge, Parasolid
431 
432  //! \brief read customers attribut
433  // only available on following readers :Unigraphics, Solidworks, Solidedge, Parasolid, Jt
434  // if inRead == DTK_TRUE, force reading customers attributs
436 
437  //! \brief Activate Features read
438  // only available on following readers :Unigraphics, Solidedge
439  // default DTK_FALSE
440  // if inForceFeatureData==DTK_TRUE , force name entity from name feature
441  void ActivateFeaturesRead( Dtk_Int32 inForceFeatureData =DTK_FALSE);
442 
443  //! \brief Desactivate Drawing read
444  // only available on following readers :Unigraphics
446 
447  //!\brief Allow Local Path Search for files of assembly
448  // default DTK_TRUE
449  void SetLocalPathSearchFlag( Dtk_bool inActivationFlag );
450 
451  //!\brief Allow Internal Read Path Search for files of assembly
452  // default DTK_TRUE
453  void SetInternalReadPathSearchFlag( Dtk_bool inActivationFlag );
454 
455  //!\brief Allow Additionnal Path Search for files of assembly
456  // default DTK_TRUE
457  void SetAdditionnalPathSearchFlag(Dtk_bool inActivationFlag);
458 
459  //!\brief Allow Relative Search for files of assembly
460  // default DTK_FALSE
461  void SetRelativePathSearchFlag(Dtk_bool inActivationFlag);
462 
463  //!\brief Allow Below Search for files of assembly
464  // default DTK_FALSE
465  void SetBelowPathSearchFlag(Dtk_bool inActivationFlag);
466 
467  //!\brief Allow Above Search for files of assembly
468  // default DTK_FALSE
469  void SetAbovePathSearchFlag(Dtk_bool inActivationFlag);
470 
471 
472  //! \brief Force to update the intern assembly definition by extern definition
474 
475  //! \brief GetColor in API Lut form index
476  //! \param [in] inIndex : Color Index
477  //! \param [out] outColor : RGB Color corresponding to inIndex
478  //! \return dtkNoError if OK
480 
481  //! \brief Get Number of Colors in API Lut
482  //! \return Number of Colors
484 
485 
486  //! \brief Internal Use
488 
489  //temporaire
490  void ManageSearchFile(Dtk_SearchFileEnum::Status inStatus);
491 
492 };
493 
496 
498 int dtkDumpTypeError( Dtk_Int32 errNumero, Dtk_string inMyDumpFile );
499 
500 
501 #endif
502 
Dtk_API::_AcisReader
static Dtk_Reader * _AcisReader
Definition: dtk_api.hpp:94
IsDtkApiStarted
Dtk_bool IsDtkApiStarted()
Dtk_SearchFileEnum::ReadPathSearch
@ ReadPathSearch
Definition: dtk_api.hpp:54
Dtk_API::_CgmReader
static Dtk_Reader * _CgmReader
Definition: dtk_api.hpp:116
Dtk_API::EndDocument
Dtk_ErrorStatus EndDocument(Dtk_MainDocPtr &inoutDocument)
Close a Document.
DTK_BODYMODE_NOPREFERENCE
@ DTK_BODYMODE_NOPREFERENCE
Definition: dtk_api.hpp:26
Dtk_API::_ProCeraReader
static Dtk_Reader * _ProCeraReader
Definition: dtk_api.hpp:97
Dtk_API::_ProeReader
static Dtk_Reader * _ProeReader
Definition: dtk_api.hpp:91
F3dReader
Definition: dtk_F3dReader.hpp:9
Dtk_API::UsdReader
friend class UsdReader
Definition: dtk_api.hpp:189
Dtk_API::ActivateReversedRevolution
void ActivateReversedRevolution()
From V66 Use old way to read Revolution Surface.
Dtk_ID
uint32_t Dtk_ID
Definition: define.h:681
RnXmlReader
Definition: dtk_RnXmlReader.hpp:17
Dtk_API::_CerconReader
static Dtk_Reader * _CerconReader
Definition: dtk_api.hpp:98
Dtk_API::SetBelowPathSearchFlag
void SetBelowPathSearchFlag(Dtk_bool inActivationFlag)
Allow Below Search for files of assembly.
Dtk_API::IsBroken
Dtk_bool IsBroken()
Dtk_API::GetNumColorInTable
Dtk_Size_t GetNumColorInTable() const
Get Number of Colors in API Lut
CgmReader
Definition: dtk_CgmReader.hpp:7
Dtk_API::AddRenderInfosInTable
Dtk_ID AddRenderInfosInTable(const Dtk_RenderInfosPtr &inNewRenderInfos)
Dtk_API::_SeReader
static Dtk_Reader * _SeReader
Definition: dtk_api.hpp:90
Dtk_API::GetNumCurveLineTypeDefinitionsInTable
Dtk_Size_t GetNumCurveLineTypeDefinitionsInTable() const
Dtk_API::ReadConnectedEntity
Dtk_ErrorStatus ReadConnectedEntity(const Dtk_MainDocPtr &inDoc, const Dtk_NodeConnectorPtr &inConnector, Dtk_tab< Dtk_EntityPtr > &outEntity)
Internal Use.
Dtk_API::GetLogFile
const Dtk_string & GetLogFile() const
Dtk_SearchFileEnum::Dtk_SearchFileEnum
Dtk_SearchFileEnum()
Definition: dtk_api.hpp:36
Dtk_Log
Definition: dtk_log.hpp:170
Dtk_API::ClearSearchPathForFonts
Dtk_ErrorStatus ClearSearchPathForFonts()
Clear Search Path initialised with AddSearchPathForFonts.
XmlReader
Definition: dtk_XmlReader.hpp:6
Dtk_API::_3dmReader
static Dtk_Reader * _3dmReader
Definition: dtk_api.hpp:106
Dtk_API::AddSearchPath
Dtk_ErrorStatus AddSearchPath(const Dtk_SearchFileEnum::RecursivityEnum &inRecursivityEnum, const Dtk_string &inPath)
Add search path to find missing files.
DTK_BODYMODE_3DTOPOLOGY
@ DTK_BODYMODE_3DTOPOLOGY
Definition: dtk_api.hpp:29
Dtk_SearchFileEnum::RootFolderFirstRecursivity
@ RootFolderFirstRecursivity
Definition: dtk_api.hpp:48
Dtk_API::_InitData
Dtk_ErrorStatus _InitData(const Dtk_string &inTemporyDirectory, const Dtk_string &inClientCode)
LavaReader
Definition: dtk_Lava3mReader.hpp:5
Dtk_API::_CerecReader
static Dtk_Reader * _CerecReader
Definition: dtk_api.hpp:100
Dtk_API::GetConfig
Dtk_Config * GetConfig()
Dtk_SearchFileEnum::Disable
@ Disable
Definition: dtk_api.hpp:64
Dtk_API::SetBodyModePreference
void SetBodyModePreference(dtk_BodyMode inMode)
Set Body Topology Preference.
Dtk_API::IsExtraControlEnable
Dtk_bool IsExtraControlEnable()
Dtk_API::AddCurveLineTypeDefinitionInTable
Dtk_ID AddCurveLineTypeDefinitionInTable(const Dtk_LineTypeDefinitionPtr &inNewLineTypeDefinition)
NavisReader
Definition: dtk_NavisReader.hpp:9
Dtk_API::GetSearchPathForAssembly
Dtk_ErrorStatus GetSearchPathForAssembly(Dtk_tab< Dtk_string > &outPathArray, Dtk_tab< Dtk_bool > &outRecursiveFlagArray) const
DcmReader
Definition: dtk_DcmReader.hpp:20
UgReader
Definition: dtk_ugrReader.hpp:5
SwReader
Definition: dtk_swrReader.hpp:8
Dtk_API::_UsdReader
static Dtk_Reader * _UsdReader
Definition: dtk_api.hpp:127
CreoviewReader
Definition: dtk_CreoviewReader.hpp:15
Dtk_API::_IgesReader
static Dtk_Reader * _IgesReader
Definition: dtk_api.hpp:85
Dtk_Reader
Definition: dtk_reader.hpp:15
Dtk_API::StartAPI
static Dtk_API * StartAPI(const Dtk_string &inTemporyDirectory, Dtk_ErrorStatus &outErrorCode, const Dtk_string &inCustomerID=Dtk_string())
Start DATAKIT API.
Dtk_API::_Zw3dReader
static Dtk_Reader * _Zw3dReader
Definition: dtk_api.hpp:126
CatiaV6Reader
Definition: dtk_Catiav6Reader.hpp:8
Dtk_API::_Lava3mReader
static Dtk_Reader * _Lava3mReader
Definition: dtk_api.hpp:104
StlReader
Definition: dtk_StlReader.hpp:13
Dtk_API::AddSearchPathForAssembly
Dtk_ErrorStatus AddSearchPathForAssembly(Dtk_string &inPath, Dtk_bool inRecursiveFlag)
Add search path to find missing files of assemblies.
Dtk_API::GetFileReaderType
DtkReaderType GetFileReaderType(const Dtk_string &inFileName)
Independant method to get DtkReaderType associated to inFileName.
Dtk_API::SetAbovePathSearchFlag
void SetAbovePathSearchFlag(Dtk_bool inActivationFlag)
Allow Above Search for files of assembly.
Dtk_string
This is a high level string class.
Definition: dtk_string.hpp:53
Dtk_API::GetPhysicalMaterialInfosInTable
Dtk_PhysicalMaterialInfosPtr GetPhysicalMaterialInfosInTable(Dtk_ID inId) const
DwgReader
Definition: dtk_DwgReader.hpp:13
Dtk_API::AddSearchPathForFonts
Dtk_ErrorStatus AddSearchPathForFonts(const Dtk_string &inPath)
Add search path to find fonts.
Dtk_API::DxfReader
friend class DxfReader
Definition: dtk_api.hpp:163
Dtk_Size_t
size_t Dtk_Size_t
Definition: define.h:704
dtk_BodyMode
dtk_BodyMode
Definition: dtk_api.hpp:25
Dtk_API::_RnXmlReader
static Dtk_Reader * _RnXmlReader
Definition: dtk_api.hpp:105
ProCeraReader
Definition: dtk_proceraReader.hpp:11
Dtk_API::_SmgReader
static Dtk_Reader * _SmgReader
Definition: dtk_api.hpp:118
Dtk_API::_PlmXmlReader
static Dtk_Reader * _PlmXmlReader
Definition: dtk_api.hpp:103
Dtk_API::GetInvalidLicenseList
Dtk_ErrorStatus GetInvalidLicenseList(Dtk_tab< Dtk_string > &outList)
Returns List of Failed Licence ever checked.
Dtk_API::_CgrReader
static Dtk_Reader * _CgrReader
Definition: dtk_api.hpp:95
dtkDumpTypeError
int dtkDumpTypeError(Dtk_Int32 errNumero, Dtk_string inMyDumpFile)
Dtk_API::EndComponent
Dtk_ErrorStatus EndComponent(Dtk_ComponentPtr &inComponent)
EndComponent.
Dtk_API::_CurrentAPI
static Dtk_API * _CurrentAPI
Definition: dtk_api.hpp:79
Dtk_LogPtr
Dtk_SmartPtr< Dtk_Log > Dtk_LogPtr
Definition: dtk_api.hpp:17
Dtk_API::OpenDocument
Dtk_ErrorStatus OpenDocument(const Dtk_string &inInputFile, Dtk_MainDocPtr &outDocument)
Open a Document (call EndDocument to close it)
DTK_FALSE
#define DTK_FALSE
Definition: define.h:720
Dtk_bool
char Dtk_bool
Definition: define.h:717
Dtk_API::GetWorkingDir
const Dtk_string & GetWorkingDir() const
Dtk_API::_DstvReader
static Dtk_Reader * _DstvReader
Definition: dtk_api.hpp:122
Dtk_API::PrcReader
friend class PrcReader
Definition: dtk_api.hpp:181
PlmXmlReader
Definition: dtk_PlmXmlReader.hpp:5
Dtk_API::ActivateSplitForPeriodicFaces
void ActivateSplitForPeriodicFaces()
Split Periodic Faces when we read a model.
IfcReader
Definition: dtk_IfcReader.hpp:5
Dtk_API::_Init
void _Init()
Dtk_API::_PrcReader
static Dtk_Reader * _PrcReader
Definition: dtk_api.hpp:119
Dtk_API::SetSchemaDir
Dtk_ErrorStatus SetSchemaDir(const Dtk_string &inSchemaDir)
Set Schema Directory needed for Unigraphics, Parasolid, Solidedge, Solidworks and Jt readers.
Dtk_API::ActivateSearchFileEngine
void ActivateSearchFileEngine()
Dtk_API::ClearSearchPathForAssembly
Dtk_ErrorStatus ClearSearchPathForAssembly()
Clear Search Path initialised with AddSearchPathForAssembly.
DtkReaderType
DtkReaderType
Definition: dtk_maindoc.hpp:29
ProeReader
Definition: dtk_proerReader.hpp:19
PsReader
Definition: dtk_PsReader.hpp:10
Dtk_SearchFileEnum::RecursivityEnum
RecursivityEnum
Definition: dtk_api.hpp:46
Dtk_API::LoadConfigFile
Dtk_ErrorStatus LoadConfigFile(const Dtk_string &inConfigFile)
RevitReader
Definition: dtk_RevitReader.hpp:10
Dtk_API::_DcmReader
static Dtk_Reader * _DcmReader
Definition: dtk_api.hpp:99
Dtk_API::OpenDocumentGraphic
Dtk_ErrorStatus OpenDocumentGraphic(const Dtk_string &inInputFile, Dtk_MainDocPtr &outDocument)
Open a Document for graphical representation(call EndDocument to close it)
Dtk_API::DstvReader
friend class DstvReader
Definition: dtk_api.hpp:184
Dtk_API::GetSchemaDir
const Dtk_string & GetSchemaDir() const
BRepOccReader
Definition: dtk_BRepOccReader.hpp:10
Dtk_API::GetLog
const Dtk_LogPtr & GetLog()
Dtk_API::_Private
Dtk_Handle * _Private
Definition: dtk_api.hpp:77
Dtk_API::_V5Reader
static Dtk_Reader * _V5Reader
Definition: dtk_api.hpp:82
Dtk_API::Dtk_MainDocWrapper
friend class Dtk_MainDocWrapper
Definition: dtk_api.hpp:139
Dtk_API::ArtReader
friend class ArtReader
Definition: dtk_api.hpp:179
Dtk_API::_QifReader
static Dtk_Reader * _QifReader
Definition: dtk_api.hpp:124
Dtk_API::ManageSearchFile
void ManageSearchFile(Dtk_SearchFileEnum::Status inStatus)
Dtk_API::GetAPI
static Dtk_API * GetAPI()
Get DATAKIT API.
Dtk_API::_IfcReader
static Dtk_Reader * _IfcReader
Definition: dtk_api.hpp:109
DTK_BODYMODE_UVSURFACIC
@ DTK_BODYMODE_UVSURFACIC
Definition: dtk_api.hpp:27
Dtk_GraphicalDataPtr
Dtk_SmartPtr< Dtk_GraphicalData > Dtk_GraphicalDataPtr
Definition: dtk_api.hpp:21
Dtk_API::_StlReader
static Dtk_Reader * _StlReader
Definition: dtk_api.hpp:113
Dtk_PreviewPtr
Dtk_SmartPtr< Dtk_Preview > Dtk_PreviewPtr
Definition: dtk_api.hpp:19
Dtk_API::GetSearchPathForFonts
Dtk_ErrorStatus GetSearchPathForFonts(Dtk_tab< Dtk_string > &outPathArray) const
CerecReader
Definition: dtk_CerecReader.hpp:5
XmtReader
Definition: dtk_ugrReader.hpp:54
Dtk_API::_UgReader
static Dtk_Reader * _UgReader
Definition: dtk_api.hpp:87
Dtk_API::PopulateComponentsTree
Dtk_ErrorStatus PopulateComponentsTree(const Dtk_string &inInputFile, Dtk_MainDocPtr &inoutDocument, Dtk_ComponentPtr &outRootComponent)
Dtk_API::SetWorkingDir
Dtk_ErrorStatus SetWorkingDir(const Dtk_string &inWorkingDir)
Change TemporyDirectory.
Dtk_API::_Reset
void _Reset()
Dtk_API::ActivateDialogBox
void ActivateDialogBox()
VdaReader
Definition: dtk_VdaReader.hpp:10
Dtk_API::_ArtReader
static Dtk_Reader * _ArtReader
Definition: dtk_api.hpp:117
Dtk_SearchFileEnum::Status
Status
Definition: dtk_api.hpp:62
Dtk_Node
This is the Node Class.
Definition: dtk_maindoc.hpp:231
Dtk_Int32
int32_t Dtk_Int32
Definition: define.h:679
dtk_maindoc_ptr.hpp
_3dmReader
Definition: dtk_3dmreader.hpp:10
Dtk_Preview
This is the Dtk_Preview class.
Definition: util_ent_dtk.hpp:842
Dtk_API::AddBuildingMaterialInTable
Dtk_ID AddBuildingMaterialInTable(const Dtk_BuildingMaterialPtr &inNewBuildingMaterial)
Dtk_API::BreakApi
void BreakApi()
CerconReader
Definition: dtk_cerconReader.hpp:11
Dtk_SearchFileEnum::AdditionalPathSearch
@ AdditionalPathSearch
Definition: dtk_api.hpp:55
Dtk_API::GetColorInTable
Dtk_ErrorStatus GetColorInTable(const Dtk_Int32 inIndex, Dtk_RGB &outColor)
GetColor in API Lut form index.
JtReader
Definition: dtk_JtReader.hpp:10
Dtk_API::_NavisReader
static Dtk_Reader * _NavisReader
Definition: dtk_api.hpp:123
error_dtk.hpp
Dtk_API::DesactivateDrawingRead
void DesactivateDrawingRead()
Desactivate Drawing read.
DwgDtkReader
Definition: dtk_DwgDtkReader.hpp:9
Dtk_ErrorStatus
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
Dtk_API::GetVersion
Dtk_string GetVersion() const
GetVersion of DatakitLibs.
Dtk_API::Dtk_APIContext
friend class Dtk_APIContext
Definition: dtk_api.hpp:138
Dtk_API::Dtk_API
Dtk_API()
Dtk_API::_DwgDtkReader
static Dtk_Reader * _DwgDtkReader
Definition: dtk_api.hpp:125
Dtk_API::SetSearchPositionMode
Dtk_ErrorStatus SetSearchPositionMode(Dtk_Int32 inPosition, Dtk_SearchFileEnum::PriorityModeEnum inSearchEnum)
Set Search Position.
Dtk_SmartPtr
Definition: util_ptr_dtk.hpp:37
dtk_maindoc.hpp
dtkTypeError
Dtk_string dtkTypeError(Dtk_Int32 errNumero)
Dtk_SearchFileEnum::LocalSearch
@ LocalSearch
Definition: dtk_api.hpp:53
Dtk_API::GetBodyModePreference
dtk_BodyMode GetBodyModePreference()
Dtk_API::GetBuildingMaterialInTable
Dtk_BuildingMaterialPtr GetBuildingMaterialInTable(Dtk_ID inId) const
Dtk_API::ForceUpdateAssembly
void ForceUpdateAssembly()
Force to update the intern assembly definition by extern definition.
Dtk_API::IsReversedRevolutionActivated
Dtk_bool IsReversedRevolutionActivated()
Dtk_API::WriteInLogFile
Dtk_ErrorStatus WriteInLogFile(const Dtk_string &inString)
CatiaV5Reader
Definition: dtk_Catiav5Reader.hpp:9
Dtk_API::SetInternalReadPathSearchFlag
void SetInternalReadPathSearchFlag(Dtk_bool inActivationFlag)
Allow Internal Read Path Search for files of assembly.
ObjReader
Definition: dtk_objreader.hpp:10
Dtk_GraphicalData
This is the Dtk_GraphicalData Class. The Dtk_GraphicalDataPtr object is used to store preview data It...
Definition: dtk_graphical.hpp:27
Dtk_API::GetNumPhysicalMaterialInfosInTable
Dtk_Size_t GetNumPhysicalMaterialInfosInTable() const
Dtk_API::_FbxReader
static Dtk_Reader * _FbxReader
Definition: dtk_api.hpp:114
Dtk_API::_XmtReader
static Dtk_Reader * _XmtReader
Definition: dtk_api.hpp:88
Dtk_SearchFileEnum::PriorityModeEnum
PriorityModeEnum
Definition: dtk_api.hpp:52
Dtk_SearchFileEnum::AbovePathSearch
@ AbovePathSearch
Definition: dtk_api.hpp:58
Dtk_SearchFileEnum::NoRecursivity
@ NoRecursivity
Definition: dtk_api.hpp:47
Dtk_API::SdnfReader
friend class SdnfReader
Definition: dtk_api.hpp:177
Dtk_API::ActivateFeaturesRead
void ActivateFeaturesRead(Dtk_Int32 inForceFeatureData=DTK_FALSE)
Activate Features read.
Dtk_API::SetControlOnExtraModule
void SetControlOnExtraModule(Dtk_bool inControl)
Disable/Enable Control for extra module.
Dtk_API::_V4Reader
static Dtk_Reader * _V4Reader
Definition: dtk_api.hpp:86
InvReader
Definition: dtk_invrReader.hpp:13
Dtk_API::_XmlReader
static Dtk_Reader * _XmlReader
Definition: dtk_api.hpp:101
Dtk_SearchFileEnum::BelowPathSearch
@ BelowPathSearch
Definition: dtk_api.hpp:57
Dtk_API::SeReader
friend class SeReader
Definition: dtk_api.hpp:150
Zw3dReader
Definition: dtk_Zw3dReader.hpp:9
Dtk_API::GetCurveLineTypeDefinitionInTable
Dtk_LineTypeDefinitionPtr GetCurveLineTypeDefinitionInTable(const Dtk_ID inId) const
Dtk_API::_InvReader
static Dtk_Reader * _InvReader
Definition: dtk_api.hpp:84
util_stl_dtk.hpp
Dtk_API::IsDialogBoxActivated
Dtk_bool IsDialogBoxActivated()
IgesReader
Definition: dtk_IgesReader.hpp:7
util_ptr_dtk.hpp
DTK_BODYMODE_COMPLETETOPOLOGY
@ DTK_BODYMODE_COMPLETETOPOLOGY
Definition: dtk_api.hpp:28
define.h
Dtk_API::_DxfReader
static Dtk_Reader * _DxfReader
Definition: dtk_api.hpp:102
StepReader
Definition: dtk_StepReader.hpp:10
Dtk_API::SetAsDeprecated
SetAsDeprecated("2017.4 ", "Use AddRenderInfosInTable method instead") Dtk_ID AddMaterialInTable(const Dtk_RenderInfosPtr &inNewRenderInfos)
Dtk_API::AddEvaluationID
Dtk_ErrorStatus AddEvaluationID(Dtk_string inEvaluationID)
Add customer Id for evaluation.
Dtk_API::_ObjReader
static Dtk_Reader * _ObjReader
Definition: dtk_api.hpp:108
Dtk_API::GetRenderInfosInTable
Dtk_RenderInfosPtr GetRenderInfosInTable(Dtk_ID inId) const
Dtk_SearchFileEnum::RelativePathSearch
@ RelativePathSearch
Definition: dtk_api.hpp:56
FbxReader
Definition: dtk_FbxReader.hpp:14
SmgReader
Definition: dtk_SmgReader.hpp:7
Dtk_tab
This is a high level array class.
Definition: util_stl_dtk.hpp:84
Dtk_API::ActivateKeepKernelData
void ActivateKeepKernelData()
Keep Kernel Data option (see "How to use KeepKernelData option")
Dtk_SearchFileEnum::Enable
@ Enable
Definition: dtk_api.hpp:63
Dtk_API::_BRepOccReader
static Dtk_Reader * _BRepOccReader
Definition: dtk_api.hpp:110
Dtk_API::ClearSearchPriority
Dtk_ErrorStatus ClearSearchPriority()
Clear Search Priority.
Dtk_API::_VdaReader
static Dtk_Reader * _VdaReader
Definition: dtk_api.hpp:81
Dtk_API::SetAdditionnalPathSearchFlag
void SetAdditionnalPathSearchFlag(Dtk_bool inActivationFlag)
Allow Additionnal Path Search for files of assembly.
Dtk_API::GetNumRenderInfosInTable
Dtk_Size_t GetNumRenderInfosInTable() const
Dtk_SearchFileEnum
Definition: dtk_api.hpp:34
Dtk_SearchFileEnum::SubFolderFirstRecursivity
@ SubFolderFirstRecursivity
Definition: dtk_api.hpp:49
Dtk_API::StopAPI
static void StopAPI(Dtk_API *&inAPI, Dtk_bool inWriteTimeInLog=1)
Stop DATAKIT API.
Dtk_API::_SwReader
static Dtk_Reader * _SwReader
Definition: dtk_api.hpp:89
Dtk_API::_StepReader
static Dtk_Reader * _StepReader
Definition: dtk_api.hpp:93
Dtk_API::ReadComponentGraphic
Dtk_ErrorStatus ReadComponentGraphic(const Dtk_ComponentPtr &inComponent, Dtk_GraphicalDataPtr &outGraphicalData)
Read graphical data from Component (Call EndComponent to free data allocated)
Dtk_API::SetRelativePathSearchFlag
void SetRelativePathSearchFlag(Dtk_bool inActivationFlag)
Allow Relative Search for files of assembly.
IsDtkApiBroken
Dtk_bool IsDtkApiBroken()
Dtk_API::_DwgReader
static Dtk_Reader * _DwgReader
Definition: dtk_api.hpp:107
Dtk_API::_F3dReader
static Dtk_Reader * _F3dReader
Definition: dtk_api.hpp:120
Dtk_API::IsSearchFileEngineActivated
Dtk_bool IsSearchFileEngineActivated()
Dtk_Component
This is the Component Class. The Dtk_ComponentPtr object is used as element into an assembly tree....
Definition: dtk_maindoc.hpp:555
CaddsReader
Definition: dtk_CaddsReader.hpp:17
dtk_string.hpp
Dtk_API::_V6Reader
static Dtk_Reader * _V6Reader
Definition: dtk_api.hpp:83
Dtk_API::GetFilePreview
Dtk_ErrorStatus GetFilePreview(const Dtk_string &inInputFile, Dtk_PreviewPtr &outPreview)
Independant method to get preview of inInputFile.
Dtk_API::GetFileVersion
Dtk_ErrorStatus GetFileVersion(const Dtk_string &inInputFile, Dtk_string &outVersion)
Independant method to get version of inInputFile.
Dtk_API::_RevitReader
static Dtk_Reader * _RevitReader
Definition: dtk_api.hpp:111
Dtk_API::_GltfReader
static Dtk_Reader * _GltfReader
Definition: dtk_api.hpp:121
Dtk_API::DeactivateFlexlmCall
static void DeactivateFlexlmCall()
Deactivate FlexlmCall.
Dtk_API::DeactivateSearchFileEngine
void DeactivateSearchFileEngine()
Dtk_API::_SdnfReader
static Dtk_Reader * _SdnfReader
Definition: dtk_api.hpp:115
Dtk_API::AddPhysicalMaterialInfosInTable
Dtk_ID AddPhysicalMaterialInfosInTable(const Dtk_PhysicalMaterialInfosPtr &inNewMaterialInfos)
Dtk_API::ActivateSplitForMultiTurnsFaces
void ActivateSplitForMultiTurnsFaces()
Split Multi Turns Faces when we read a model.
Dtk_API::~Dtk_API
virtual ~Dtk_API()
dtk_rgb.hpp
Dtk_API::ReadComponent
Dtk_ErrorStatus ReadComponent(const Dtk_ComponentPtr &inComponent, Dtk_NodePtr &outRootNode)
Read Component from Assembly Tree (Call EndComponent to free data allocated)
Dtk_API::WriteInDebugFile
Dtk_ErrorStatus WriteInDebugFile(const Dtk_string &inString)
Dtk_RGB
Definition: dtk_rgb.hpp:7
CatiaV4Reader
Definition: dtk_Catiav4Reader.hpp:10
SolidEdgeReader
Definition: dtk_sereader.hpp:5
Dtk_API::GetNumBuildingMaterialInTable
Dtk_Size_t GetNumBuildingMaterialInTable() const
Dtk_API::SetLogFile
Dtk_ErrorStatus SetLogFile(const Dtk_string &inLogFile)
Set Log File.
Dtk_SearchFileEnum::~Dtk_SearchFileEnum
~Dtk_SearchFileEnum()
Definition: dtk_api.hpp:40
CgrReader
Definition: dtk_cgrrReader.hpp:8
Dtk_API::SetReadCustomAttribut
void SetReadCustomAttribut(Dtk_bool bRead)
read customers attribut
Dtk_API::_CreoviewReader
static Dtk_Reader * _CreoviewReader
Definition: dtk_api.hpp:112
GltfReader
Definition: dtk_GltfReader.hpp:10
Dtk_API::_CaddsReader
static Dtk_Reader * _CaddsReader
Definition: dtk_api.hpp:96
AcisReader
Definition: dtk_sabrReader.hpp:9
QifReader
Definition: dtk_QifReader.hpp:8
Dtk_API
Definition: dtk_api.hpp:75
Dtk_API::_JtReader
static Dtk_Reader * _JtReader
Definition: dtk_api.hpp:92
Dtk_API::GetColorTable
Dtk_ColorTable * GetColorTable()
Dtk_API::SetLocalPathSearchFlag
void SetLocalPathSearchFlag(Dtk_bool inActivationFlag)
Allow Local Path Search for files of assembly.