DATAKIT SDK  V2026.3
dtk_cgrrReader.hpp
Go to the documentation of this file.
1 #ifndef _UTIL_GGR_READER_HPP_
2 #define _UTIL_GGR_READER_HPP_
3 
4 #include "util/dtk_reader.hpp"
5 #include "def/define.h"
6 
7 class CgrReader : public Dtk_Reader
8 {
9 public:
10  virtual ~CgrReader();
11  static Dtk_bool Enable();
12 
13  //! [Options]
14  //! \ingroup cgr_utils
15  //! \brief Initial tree 0
16  //! \brief Intermediate reduce tree ( component tree ) 1
17  //! \brief Flattened tree ( node tree ) 2
18  //! \param [in] inVal: 2 (default)
19  //!
20  //! \endcode
21  static void SetCfgCgrReduceTree( Dtk_Int32 inVal );
22  //! [Options]
23  //! \ingroup cgr_utils
24  //! \brief new interpretation of the ARS 0
25  //! \brief keep the old reading of the ARS 1
26  //! \param [in] inVal: 0 (default)
27  //!
28  //! \endcode
29  static void SetCfgCgrKeepASR( Dtk_bool inVal );
30  //! \ingroup cgr_utils
31  //! \brief Read the mesh data only.
32  //! \brief Avoid reading additional information such as curves, mesh face boundaries or the center/radius/axis/etc of cylinders and circles.
33  //! \param [in] inVal
34  //!
35  //! SetCfgCgrReadMeshOnly(Dtk_Int32 inVal);
36  //! \param [in] inVal: 0 (default)
37  //! \endcode
38  static void SetCfgCgrReadMeshOnly( Dtk_Int32 inVal );
39  //!
40  //! SetCfgCgrFdtToPolyline(Dtk_bool inVal);
41  //! \param [in] inVal: 0 (default)
42  //! \endcode
43  static void SetCfgCgrFdtToPolyline( Dtk_bool inVal );
44  //! [Options]
45 };
46 
47 #endif
48 
CgrReader::Enable
static Dtk_bool Enable()
CgrReader::SetCfgCgrReadMeshOnly
static void SetCfgCgrReadMeshOnly(Dtk_Int32 inVal)
Read the mesh data only.
Dtk_Reader
Definition: dtk_reader.hpp:15
Dtk_bool
char Dtk_bool
Definition: define.h:724
CgrReader::~CgrReader
virtual ~CgrReader()
Dtk_Int32
int32_t Dtk_Int32
Definition: define.h:686
define.h
dtk_reader.hpp
CgrReader::SetCfgCgrReduceTree
static void SetCfgCgrReduceTree(Dtk_Int32 inVal)
Initial tree 0.
CgrReader::SetCfgCgrKeepASR
static void SetCfgCgrKeepASR(Dtk_bool inVal)
new interpretation of the ARS 0
CgrReader
Definition: dtk_cgrrReader.hpp:8
CgrReader::SetCfgCgrFdtToPolyline
static void SetCfgCgrFdtToPolyline(Dtk_bool inVal)