Import: code-refactoring and clean-up

* Add new method ExportOCAF::exportObjects() to avoid code duplication
* Simplify handling of arguments passed to Python handler
* Fix several lint warnings
* Move ImportOCAFExt to the corresponding source files
This commit is contained in:
wmayer
2023-10-01 17:11:28 +02:00
committed by wwmayer
parent 58cc0f2a0d
commit abda1438ad
6 changed files with 105 additions and 101 deletions

View File

@@ -57,8 +57,9 @@ namespace Import
class ImportExport ExportOCAF
{
public:
ExportOCAF(Handle(TDocStd_Document) h, bool explicitPlacement);
ExportOCAF(Handle(TDocStd_Document) hDoc, bool explicitPlacement);
virtual ~ExportOCAF();
void exportObjects(std::vector<App::DocumentObject*>& objs);
int exportObject(App::DocumentObject* obj,
std::vector<TDF_Label>& hierarchical_label,
std::vector<TopLoc_Location>& hierarchical_loc,