Abstract base class for CAD exports. More...
#include <CTiglCADExporter.h>
Protected Member Functions | |
const CCPACSConfiguration * | GetConfiguration (size_t iShape) const |
Can also be NULL! More... | |
Private Member Functions | |
virtual std::string | SupportedFileTypeImpl () const =0 |
must be overridden. If multiple types supported, separate with a ";" More... | |
virtual bool | WriteImpl (const std::string &filename) const =0 |
must be overridden by the concrete implementation More... | |
Private Attributes | |
std::vector< const CCPACSConfiguration * > | _configs |
TIGL configurations */. More... | |
ExporterOptions | _globalOptions |
std::vector< ShapeExportOptions > | _shapeOptions |
ListPNamedShape | _shapes |
Abstract base class for CAD exports.
TIGL_EXPORT tigl::CTiglCADExporter::CTiglCADExporter | ( | const ExporterOptions & | options = DefaultExporterOption() | ) |
Constructor.
|
inlinevirtual |
TIGL_EXPORT bool tigl::CTiglCADExporter::AddConfiguration | ( | CCPACSConfiguration & | config, |
const ShapeExportOptions & | options = DefaultShapeExportOptions() |
||
) |
Adds the whole non-fused configuration, to the exporter If one of the components fail to export, the function returns false.
TIGL_EXPORT void tigl::CTiglCADExporter::AddFusedConfiguration | ( | CCPACSConfiguration & | config, |
const ShapeExportOptions & | options = DefaultShapeExportOptions() |
||
) |
Adds a whole geometry, boolean fused and meshed.
TIGL_EXPORT void tigl::CTiglCADExporter::AddShape | ( | PNamedShape | shape, |
const ShapeExportOptions & | options = DefaultShapeExportOptions() |
||
) |
Adds a shape.
TIGL_EXPORT void tigl::CTiglCADExporter::AddShape | ( | PNamedShape | shape, |
const CCPACSConfiguration * | config, | ||
const ShapeExportOptions & | options = DefaultShapeExportOptions() |
||
) |
|
protected |
Can also be NULL!
|
pure virtual |
|
pure virtual |
TIGL_EXPORT const ShapeExportOptions& tigl::CTiglCADExporter::GetOptions | ( | size_t | iShape | ) | const |
TIGL_EXPORT PNamedShape tigl::CTiglCADExporter::GetShape | ( | size_t | iShape | ) | const |
Returns all shapes added to the exporter.
TIGL_EXPORT const ExporterOptions& tigl::CTiglCADExporter::GlobalExportOptions | ( | ) | const |
TIGL_EXPORT size_t tigl::CTiglCADExporter::NShapes | ( | ) | const |
Number of shapes.
TIGL_EXPORT std::string tigl::CTiglCADExporter::SupportedFileType | ( | ) | const |
|
privatepure virtual |
must be overridden. If multiple types supported, separate with a ";"
Implemented in tigl::CTiglExportIges, tigl::CTiglExportVtk, tigl::CTiglExportStep, tigl::CTiglExportBrep, tigl::CTiglExportStl, and tigl::CTiglExportCollada.
TIGL_EXPORT bool tigl::CTiglCADExporter::Write | ( | const std::string & | filename | ) | const |
|
privatepure virtual |
must be overridden by the concrete implementation
Implemented in tigl::CTiglExportIges, tigl::CTiglExportVtk, tigl::CTiglExportStep, tigl::CTiglExportBrep, tigl::CTiglExportStl, and tigl::CTiglExportCollada.
|
private |
TIGL configurations */.
|
mutableprivate |
|
private |
|
private |