DATAKIT SDK
V2026.2
Main Page
API Reference
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
:
10
SwReader
();
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.
26
static
void
SetConfigCreate2dCurvesOf3dGeometryForDrawings
(
Dtk_bool
inCreateCurves );
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.
36
static
Dtk_bool
GetConfigReadDrawingsWithGraphicRepresentation
();
37
38
//! \return [Deprecated] Indicates whether boundaries are computed from mesh when reading SolidWorks 2D/3D files.
39
//! \warning Call after Dtk_API initialization.
40
static
Dtk_bool
GetComputeBoundariesFromMesh
(
void
);
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.
44
static
Dtk_bool
GetConfigCreate2dCurvesOf3dGeometryForDrawings
(
void
);
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 (...
ClientSamples
CrossCadWareSDK
Lib_Include
dtk_readers
dtk_swrReader.hpp