DATAKIT SDK  V2026.2
dtk_IgesReader.hpp
Go to the documentation of this file.
1 #ifndef _DTK_IGES_READER_H_
2 #define _DTK_IGES_READER_H_
3 
4 #include "util/dtk_reader.hpp"
5 
6 class IgesReader: public Dtk_Reader
7 {
8 public :
9  virtual ~IgesReader();
11 
12 
13  static Dtk_bool Enable();
14 
15  //! [Options]
16  //! \brief Set Preference on reading boundaries if both restrictions exist (UV and 3D)
17  //! \param [in] inPreference : File to read : 2 means Use UV first (default) 3 means Use 3D first
18  static void SetBoundaryPreference(Dtk_Int32 inPreference);
19 
20  //! \brief Set Preference to exclude group reading (type 402)
21  //! Usefull if many group contains same entity to avoid duplication
22  //! \param [in] inValue = 1 Exclude, inValue = 0 Read 402 (default )
23  static void SetConfigExcludeGroup(Dtk_bool inValue);
24 
25  //! \brief Set Preference on reading file as drawing or part
26  //! \param [in] inBool = 1 means Load entities as Drawing - 2D entities / 0 means Load entities as Part - 3D entities
27  static void SetReadAsDrawing(Dtk_Int32 inBool);
28 
29  //! \brief Set Preference on reading string
30  //! \param [in] inValue = 0 read ascii string (default)
31  //! 1 convert string from utf8
32  //! 2 convert string using JIIS
33  //! 3 convert string using Code page 936
34  static void SetReadStringDecoding(Dtk_Int32 inValue);
35 
36  //! \brief Set Preference to change polygon to nurbs curve of degree 3
37  //! Usefull to accelerate the reading process without seewing process
38  //! \param [in] inValue 1 Transform (default) , 0 No change
39  static void SetTransformPolylineToCurve(const Dtk_bool inValue);
40 
41  //! \brief Set Preference to change Allow Invalid Iges Files
42  //! Usefull to force read the iges files don't respecting norm
43  //! \param [in] inValue 1 Allow read, 0 Do not read invalid (default)
44  static void SetAllowReadInvalidFiles(const Dtk_bool inValue);
45 
46  //! \brief Set Preference to exclude or not the read of Independant shell (514)
47  //! Usefull to avoid duplicated topology in some files
48  //! \param [in] inValue 1 Exclude independant shells, 0 Read shells (default)
49  static void SetConfigExcludeIndependantShell(const Dtk_bool inValue);
50  //! [Options]
51 } ;
52 
53 
54 //! \deprecated : use static method IgesReader::SetBoundaryPreference
55 SetAsDeprecated("2022.2", "Use IgesReader::SetBoundaryPreference.")
56 void igesr_SetBoundaryPreference_Deprecated222(Dtk_Int32 inPreference);
57 
58 //! \deprecated :use static method IgesReader::SetConfigExcludeGroup
59 SetAsDeprecated("2022.2", "Use IgesReader::SetConfigExcludeGroup method instead.")
60 void igesr_SetConfigExcludeGroup_Deprecated222( Dtk_bool inValue );
61 
62 //! \deprecated : use static method IgesReader::SetReadAsDrawing
63 SetAsDeprecated("2022.2", "Use IgesReader::SetReadAsDrawing method instead.")
64 void igesr_SetReadAsDrawing_Deprecated221( Dtk_Int32 inBool );
65 
66 
67 //! \deprecated : use static method IgesRead::SetTransformPolylineToCurve
68 SetAsDeprecated("2022.1", "Use IgesReader::SetTransformPolylineToCurve method instead.")
69 void igesr_SetTransformPolylineToCurve_Deprecated221( const Dtk_bool inValue );
70 
71 
72 #endif
73 
IgesReader::SetBoundaryPreference
static void SetBoundaryPreference(Dtk_Int32 inPreference)
Set Preference on reading boundaries if both restrictions exist (UV and 3D)
IgesReader::SetAllowReadInvalidFiles
static void SetAllowReadInvalidFiles(const Dtk_bool inValue)
Set Preference to change Allow Invalid Iges Files Usefull to force read the iges files don't respecti...
SetAsDeprecated
SetAsDeprecated("2022.2", "Use IgesReader::SetBoundaryPreference.") void igesr_SetBoundaryPreference_Deprecated222(Dtk_Int32 inPreference)
Dtk_Reader
Definition: dtk_reader.hpp:15
IgesReader::SetReadAsDrawing
static void SetReadAsDrawing(Dtk_Int32 inBool)
Set Preference on reading file as drawing or part.
Dtk_bool
char Dtk_bool
Definition: define.h:717
IgesReader::~IgesReader
virtual ~IgesReader()
IgesReader::Enable
static Dtk_bool Enable()
Dtk_Int32
int32_t Dtk_Int32
Definition: define.h:679
IgesReader::SetReadStringDecoding
static void SetReadStringDecoding(Dtk_Int32 inValue)
Set Preference on reading string
IgesReader::GetSearchPathEngine
void * GetSearchPathEngine()
IgesReader::SetTransformPolylineToCurve
static void SetTransformPolylineToCurve(const Dtk_bool inValue)
Set Preference to change polygon to nurbs curve of degree 3 Usefull to accelerate the reading process...
IgesReader
Definition: dtk_IgesReader.hpp:7
IgesReader::SetConfigExcludeGroup
static void SetConfigExcludeGroup(Dtk_bool inValue)
Set Preference to exclude group reading (type 402) Usefull if many group contains same entity to avoi...
IgesReader::SetConfigExcludeIndependantShell
static void SetConfigExcludeIndependantShell(const Dtk_bool inValue)
Set Preference to exclude or not the read of Independant shell (514) Usefull to avoid duplicated topo...
dtk_reader.hpp