|
KiCad PCB EDA Suite
|
#include <model_import.h>
Public Member Functions | |
| MODEL_IMPORT_RESULT (MODEL_IMPORT_RESULT &&aOther) noexcept | |
| MODEL_IMPORT_RESULT & | operator= (MODEL_IMPORT_RESULT &&aOther) noexcept |
| ~MODEL_IMPORT_RESULT () | |
| MODEL_IMPORT_RESULT (const MODEL_IMPORT_RESULT &)=delete | |
| MODEL_IMPORT_RESULT & | operator= (const MODEL_IMPORT_RESULT &)=delete |
| operator bool () const noexcept | |
| const S3DMODEL * | GetModel () const noexcept |
| MODEL_IMPORT_ERROR | GetError () const noexcept |
| std::string_view | GetDiagnostic () const noexcept |
Private Member Functions | |
| MODEL_IMPORT_RESULT () noexcept=default | |
Private Attributes | |
| S3DMODEL * | m_model = nullptr |
| MODEL_IMPORT_ERROR | m_error = MODEL_IMPORT_ERROR::INTERNAL |
| std::string | m_diagnostic |
Friends | |
| KICAD_3D_IMPORT_API MODEL_IMPORT_RESULT | ImportModel (const std::string &aFileName, const MODEL_IMPORT_OPTIONS &aOptions={}) |
| Import and flatten one model without invoking GUI facilities. | |
Definition at line 83 of file model_import.h.
|
noexcept |
Definition at line 288 of file model_import.cpp.
References m_diagnostic, m_error, m_model, and MODEL_IMPORT_RESULT().
Referenced by ImportModel, MODEL_IMPORT_RESULT(), MODEL_IMPORT_RESULT(), MODEL_IMPORT_RESULT(), operator=(), and operator=().
| S3D::MODEL_IMPORT_RESULT::~MODEL_IMPORT_RESULT | ( | ) |
Definition at line 312 of file model_import.cpp.
References S3D::Destroy3DModel(), and m_model.
|
delete |
References MODEL_IMPORT_RESULT().
|
privatedefaultnoexcept |
References MODEL_IMPORT_RESULT().
|
noexcept |
Definition at line 336 of file model_import.cpp.
References m_diagnostic.
Referenced by operator=().
|
noexcept |
|
noexcept |
|
explicitnoexcept |
Definition at line 318 of file model_import.cpp.
References m_model.
|
delete |
References GetDiagnostic(), GetError(), GetModel(), and MODEL_IMPORT_RESULT().
|
noexcept |
Definition at line 297 of file model_import.cpp.
References S3D::Destroy3DModel(), m_diagnostic, m_error, m_model, and MODEL_IMPORT_RESULT().
|
friend |
Import and flatten one model without invoking GUI facilities.
Source and expanded temporary data are admitted against maxExpandedBytes, and the flattened arrays are admitted against maxMeshBytes using checked arithmetic. OCCT can allocate its document and tessellation before those flattened-array checks, so these limits are not a hard process-memory cap. Cancellation is checked before and after file readers and tessellation, and at parser, label, face, vertex and triangle loop boundaries. Individual OCCT read and BRepMesh_IncrementalMesh calls are noninterruptible.
References ImportModel, KICAD_3D_IMPORT_API, and MODEL_IMPORT_RESULT().
Referenced by ImportModel.
|
private |
Definition at line 103 of file model_import.h.
Referenced by GetDiagnostic(), MODEL_IMPORT_RESULT(), and operator=().
|
private |
Definition at line 102 of file model_import.h.
Referenced by GetError(), MODEL_IMPORT_RESULT(), and operator=().
|
private |
Definition at line 101 of file model_import.h.
Referenced by GetModel(), MODEL_IMPORT_RESULT(), operator bool(), operator=(), and ~MODEL_IMPORT_RESULT().