DATAKIT SDK  V2026.2
satw.hpp
Go to the documentation of this file.
1 #include "def/define.h"
3 #include "util/error_dtk.hpp"
4 #include "util/util_stl_dtk.hpp"
6 
7 //! \defgroup sat_write Sat Write Functions
8 //! \brief .
9 
10 //! \class satw_WriteOptions
11 //! \brief This class provides several options to tune Sat Writer.\n
12 //! It must be provided to satw_InitFile method.
14 {
15 public:
16  //! DTK_TRUE: Writes pcurve entities, DTK_FALSE: no pcurve
18  //! DTK_TRUE: Splits periodic faces, DTK_FALSE: no split
20  //! DTK_TRUE: To be used for dxf write only, DTK_FALSE: otherwise
22  //! INTEGER: sat output version (5-7, 5 by default)
24 
25  //! \BaseConstructor
27  {
28  }
29 
30  //! \BaseDestructor
32  {
33  }
34 };
35 
36 //! \ingroup sat_write
37 //! \brief Initializes a file to be written
38 //! \param [in] inFileOut : Sat File to write
39 //! \param [in] inOptions : options for Sat writer
40 //! \return 0 if OK , -4 if licence checking has failed
42 
43 //! \ingroup sat_write
44 //! \brief Initializes the writing of a 3D part
45 //! \return dtkNoError if done
46 //! Each product must have a 3D part, even empty : started by satw_InitPart, ended by satw_EndPart.
47 //! Between them there can be 0, 1 or more Bodies to write (by satw_WriteBody)
49 
50 //! \ingroup sat_write
51 //! \brief Writes a Body
52 //! \param [in] inBody : the Body to be written
53 //! \return dtkNoError if done, dtkErrorUnspecified if inBody is null
55 
56 //! \ingroup sat_write
57 //! \brief Writes a liste of Bodies with sewing or not
58 //! \param [in] inBodies : the Bodies to be written
59 //! \param [in] inSewing : DTK_TRUE if a sewing action of the bodies is performed, DTK_FALSE otherwise
60 //! \return dtkNoError if done, dtkErrorUnspecified if inBodies is empty
62 
63 //! \ingroup sat_write
64 //! \brief Ends the writing of a part
65 //! \return dtkNoError if OK
67 
68 //! \ingroup sat_write
69 //! \brief Ends the writing of the Sat file
70 //! \return dtkNoError if OK
satw_InitPart
DtkErrorStatus satw_InitPart()
Initializes the writing of a 3D part.
DTK_TRUE
#define DTK_TRUE
Definition: define.h:719
Dtk_string
This is a high level string class.
Definition: dtk_string.hpp:53
Dtk_Size_t
size_t Dtk_Size_t
Definition: define.h:704
DTK_FALSE
#define DTK_FALSE
Definition: define.h:720
Dtk_bool
char Dtk_bool
Definition: define.h:717
satw_WriteOptions
This class provides several options to tune Sat Writer. It must be provided to satw_InitFile method.
Definition: satw.hpp:14
util_topology_ptr_dtk.hpp
satw_WriteOptions::WritePcurve
Dtk_bool WritePcurve
DTK_TRUE: Writes pcurve entities, DTK_FALSE: no pcurve.
Definition: satw.hpp:17
satw_WriteOptions::WriteForDxfOutput
Dtk_bool WriteForDxfOutput
DTK_TRUE: To be used for dxf write only, DTK_FALSE: otherwise.
Definition: satw.hpp:21
error_dtk.hpp
Dtk_ErrorStatus
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
satw_InitFile
DtkErrorStatus satw_InitFile(const Dtk_string &inFileOut, const satw_WriteOptions &inOptions=satw_WriteOptions())
Initializes a file to be written.
Dtk_SmartPtr
Definition: util_ptr_dtk.hpp:37
satw_WriteOptions::SplitPeriodicFaces
Dtk_bool SplitPeriodicFaces
DTK_TRUE: Splits periodic faces, DTK_FALSE: no split.
Definition: satw.hpp:19
satw_WriteOptions::OutputVersion
Dtk_Size_t OutputVersion
INTEGER: sat output version (5-7, 5 by default)
Definition: satw.hpp:23
util_stl_dtk.hpp
satw_EndPart
DtkErrorStatus satw_EndPart()
Ends the writing of a part.
define.h
satw_WriteOptions::satw_WriteOptions
satw_WriteOptions()
Default constructor.
Definition: satw.hpp:26
Dtk_tab
This is a high level array class.
Definition: util_stl_dtk.hpp:84
satw_WriteOptions::~satw_WriteOptions
~satw_WriteOptions()
Destructor.
Definition: satw.hpp:31
dtk_string.hpp
satw_WriteBody
DtkErrorStatus satw_WriteBody(const Dtk_BodyPtr &inBody)
Writes a Body.
satw_EndFile
DtkErrorStatus satw_EndFile()
Ends the writing of the Sat file.