Virtual base class for exporting meshes. More...
#include <Exporter.h>
Public Member Functions | |
virtual bool | addMesh (const char *name, const MeshObject &mesh)=0 |
int | addObject (App::DocumentObject *obj, float tol) |
Add object and all subobjects and links etc. Returns the number of stuff added. More... | |
Exporter () | |
virtual | ~Exporter ()=default |
Static Protected Member Functions | |
static std::string | xmlEscape (const std::string &input) |
Does some simple escaping of characters for XML-type exports. More... | |
Protected Attributes | |
std::map< const App::DocumentObject *, MeshObject > | meshCache |
std::map< const App::DocumentObject *, std::vector< std::string > > | subObjectNameCache |
Virtual base class for exporting meshes.
Constructors of derived classes are expected to be required, for passing in the name of output file.
If objects are meant to be combined into a single file, then the file should be saved from the derived class' destructor.
Exporter::Exporter | ( | ) |
|
virtualdefault |
|
pure virtual |
Implemented in Mesh::MergeExporter, and Mesh::AmfExporter.
Referenced by addObject(), and PathScripts.PathCamoticsGui.CamoticsSimulation::worker().
int Exporter::addObject | ( | App::DocumentObject * | obj, |
float | tol | ||
) |
Add object and all subobjects and links etc. Returns the number of stuff added.
obj | The object to export. If this is a group like object, its sub-objects will be added. |
tol | The tolerance/accuracy with which to generate the triangle mesh |
accuracy
of ComplexGeoData::getFaces References addMesh(), Base::Persistence::getClassTypeId(), meshCache, and subObjectNameCache.
Referenced by ArchBuildingPart.BuildingPart::autogroup(), ArchPanel.NestTaskPanel::getContainer(), and ArchPanel.NestTaskPanel::getShapes().
|
staticprotected |
Does some simple escaping of characters for XML-type exports.
Referenced by Mesh::AmfExporter::addMesh().
|
protected |
Referenced by addObject().
|
protected |
Referenced by addObject().