 |
DATAKIT SDK
V2026.4
|
|
Go to the source code of this file.
◆ PswGetLastOutputFile()
◆ PswGetLastStream()
| const Dtk_tab<char>& PswGetLastStream |
( |
| ) |
|
◆ PswWriteDocument()
354 if( rootComponent.
IsNULL() )
356 cout <<
"Warning: document has no root component." << endl;
361 Dtk_ID rootAssemblyId = 0;
366 if( docName.
len() > 0 )
◆ PswWriteEnd()
◆ PswWriteInit()
394 if( inOutputFolder.
len() > 0 )
395 outputFile = inOutputFolder + inInputFile.
filename() + inInputFile.
extension() + L
"_psw.x_t";
397 outputFile = inInputFile + L
"_psw.x_t";
406 cout <<
"Creating Parasolid file: " << outputFile.
c_str() << endl;
◆ PswWriteInitMemory()
429 cout <<
"Parasolid writer: using in-memory stream (no .x_t file)." << endl;
431 cout <<
"Warning: psw_InitFile (memory) failed: " <<
dtkTypeError( err ).
c_str() << endl;
◆ WriteBodyForParasolid()
31 for(
size_t i = 0; i < inBody->GetNumTopologicalEntities(
DTK_TYPE_UNKNOWN ); i++ )
41 edge->get_info()->AddCustomerDefinedAttribute( L
"my_edge_id", edge->get_info()->GetId() );
46 vertex->get_info()->AddCustomerDefinedAttribute( L
"my_vertex_id", vertex->get_info()->GetId() );
static Dtk_SmartPtr< Dtk_Info > Create()
Calls default constructor to allocate a new object.
Dtk_InfoPtr get_info() const
uint32_t Dtk_ID
Definition: define.h:688
static void PswWriteComponent(Dtk_ComponentPtr inComponent, Dtk_ID inParentAssemblyId)
Definition: WriteParasolid.cpp:250
@ DTK_TYPE_UNKNOWN
Definition: define.h:26
Dtk_ErrorStatus SetName(Dtk_string inName)
DtkErrorStatus psw_InitFile(const Dtk_string &inFileOut, Dtk_bool muteMode, Dtk_Int32 inVersion=180)
Initialise a file to be written.
Dtk_bool IsNotNULL() const
Definition: util_ptr_dtk.hpp:119
Dtk_ErrorStatus AddCustomerDefinedAttribute(Dtk_string name, Dtk_Val val)
#define DTK_TRUE
Definition: define.h:726
DtkErrorStatus psw_LinkAttribut(Dtk_ID inAssemblyId)
link all attributes attached to an assembly
This is a high level string class.
Definition: dtk_string.hpp:53
size_t Dtk_Size_t
Definition: define.h:711
char Dtk_bool
Definition: define.h:724
static Dtk_string g_lastOutputFile
Definition: WriteParasolid.cpp:18
DtkErrorStatus psw_CreateAttribut(Dtk_ID inIdCompo, Dtk_InfoPtr &info)
Create all attribut attached to a component (body, assembly, instance)
Dtk_string filename() const
File Utility : Retrieves the filename in Dtk_string form.
static Dtk_SmartPtr< Dtk_Face > DtkDynamicCast(const Dtk_SmartPtr< T2 > &p)
Definition: util_ptr_dtk.hpp:101
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
Dtk_bool IsNULL() const
Definition: util_ptr_dtk.hpp:118
Definition: util_ptr_dtk.hpp:37
Dtk_string dtkTypeError(Dtk_Int32 errNumero)
static map< Dtk_ID, Dtk_ID > g_prototypeCache
Definition: WriteParasolid.cpp:14
const char * c_str() const
Retrieve the ASCII conversion string.
Dtk_string extension() const
File Utility : Retrieves the extension in Dtk_string form.
Dtk_ErrorStatus psw_WriteBody(Dtk_BodyPtr &inBody)
Writes a Body of a 3D part (3D content of a product), of any kind (solid, shell / faces,...
This is a high level array class.
Definition: util_stl_dtk.hpp:84
Dtk_Size_t size() const
Returns the size of the array.
Definition: util_stl_dtk.hpp:503
static Dtk_tab< char > g_lastStream
Definition: WriteParasolid.cpp:22
DtkErrorStatus psw_CreateEmptyAssembly(Dtk_ID &outAssemblyId)
Create the entry item of an assembly.
int len() const
Retrieve the length of the Dtk_string.
DtkErrorStatus psw_EndFile(Dtk_tab< Dtk_ID > &inTabIds, Dtk_bool binForceListOfBody=DTK_FALSE)
Ends the writing of the Parasolid (x_t or x_b) file.
@ dtkNoError
Definition: error_dtk.hpp:151
void push_back(const T &x)
Inserts an element at the end of the array.
Definition: util_stl_dtk.hpp:416
void clear(int no_delete=0)
Resets the Dtk_tab content.
Definition: util_stl_dtk.hpp:352