DATAKIT SDK  V2026.2
dtk_swrReader.hpp
Go to the documentation of this file.
1 #ifndef _UTIL_SWR_READER_HPP_
2 #define _UTIL_SWR_READER_HPP_
3 
4 #include "util/dtk_reader.hpp"
5 #include "def/define.h"
6 
7 class SwReader : public Dtk_Reader
8 {
9 protected:
11 
12  virtual ~SwReader();
13 
14 public:
15  static Dtk_bool Enable();
16 
17  //! [Options]
18  //! \brief Forces computation of boundaries from mesh when reading SolidWorks 2D/3D files.
19  //! \param inComputeBoundary DTK_TRUE to compute boundaries from mesh when reading SolidWorks 2D/3D files. Default is DTK_FALSE.
20  //! \warning Call after Dtk_API initialization and before Dtk_API::OpenDocument.
21  static void SetComputeBoundariesFromMesh( Dtk_bool inComputeBoundary );
22 
23  //! \brief When reading a .SLDDRW file, determines whether curves in the 2D plane are created from 3D geometry (mesh/body). Enabled by default.
24  //! \param inCreateCurves DTK_TRUE to create curves in the 2D plane from 3D geometry (mesh/body) when reading .SLDDRW files. Default is DTK_TRUE.
25  //! \warning Call after Dtk_API initialization and before Dtk_API::OpenDocument.
27 
28  //! \brief If true, reads the graphic representation in .SLDDRW files; if false, uses the semantic representation.
29  //! \param readWithGraphicRepresentation DTK_TRUE to use graphic representation, DTK_FALSE to use semantic representation. Default is DTK_TRUE.
30  //! \warning Call after Dtk_API initialization.
31  static void SetConfigReadDrawingsWithGraphicRepresentation( const Dtk_bool readWithGraphicRepresentation );
32  //! [Options]
33 
34  //! \return Indicates whether the graphic or semantic representation is used when reading .SLDDRW files.
35  //! \warning Call after Dtk_API initialization.
37 
38  //! \return [Deprecated] Indicates whether boundaries are computed from mesh when reading SolidWorks 2D/3D files.
39  //! \warning Call after Dtk_API initialization.
41 
42  //! \return [Deprecated] Indicates whether curves in the 2D plane are created from 3D geometry (mesh/body) when reading .SLDDRW files.
43  //! \warning Call after Dtk_API initialization.
45 
46  void * GetSearchEngine();
47 };
48 
49 #endif
SwReader::Enable
static Dtk_bool Enable()
SwReader
Definition: dtk_swrReader.hpp:8
Dtk_Reader
Definition: dtk_reader.hpp:15
SwReader::SetComputeBoundariesFromMesh
static void SetComputeBoundariesFromMesh(Dtk_bool inComputeBoundary)
Forces computation of boundaries from mesh when reading SolidWorks 2D/3D files.
Dtk_bool
char Dtk_bool
Definition: define.h:717
SwReader::GetComputeBoundariesFromMesh
static Dtk_bool GetComputeBoundariesFromMesh(void)
SwReader::GetConfigCreate2dCurvesOf3dGeometryForDrawings
static Dtk_bool GetConfigCreate2dCurvesOf3dGeometryForDrawings(void)
SwReader::GetSearchEngine
void * GetSearchEngine()
SwReader::SwReader
SwReader()
SwReader::GetConfigReadDrawingsWithGraphicRepresentation
static Dtk_bool GetConfigReadDrawingsWithGraphicRepresentation()
[Options]
define.h
SwReader::~SwReader
virtual ~SwReader()
SwReader::SetConfigReadDrawingsWithGraphicRepresentation
static void SetConfigReadDrawingsWithGraphicRepresentation(const Dtk_bool readWithGraphicRepresentation)
If true, reads the graphic representation in .SLDDRW files; if false, uses the semantic representatio...
dtk_reader.hpp
SwReader::SetConfigCreate2dCurvesOf3dGeometryForDrawings
static void SetConfigCreate2dCurvesOf3dGeometryForDrawings(Dtk_bool inCreateCurves)
When reading a .SLDDRW file, determines whether curves in the 2D plane are created from 3D geometry (...