Abstract base class for CAD exports. More...
#include <CTiglCADExporter.h>
Public Member Functions | |
TIGL_EXPORT bool | AddConfiguration (CCPACSConfiguration &config, const ShapeExportOptions &options=DefaultShapeExportOptions()) |
Adds the whole non-fused configuration to the exporter. If one of the components fail to export, funtion returns fals. More... | |
TIGL_EXPORT void | AddFusedConfiguration (CCPACSConfiguration &config, const ShapeExportOptions &options=DefaultShapeExportOptions()) |
Adds the geometry (as described in loaded file) to exporter as one fused shape. More... | |
TIGL_EXPORT void | AddShape (PNamedShape shape, const ShapeExportOptions &options=DefaultShapeExportOptions()) |
Adds a shape to the exporter. More... | |
TIGL_EXPORT void | AddShape (PNamedShape shape, const CCPACSConfiguration *config, const ShapeExportOptions &options=DefaultShapeExportOptions()) |
Adds a shape and configuration to exporter. More... | |
TIGL_EXPORT | CTiglCADExporter (const ExporterOptions &options=DefaultExporterOption()) |
Constructor. More... | |
virtual ExporterOptions | GetDefaultOptions () const =0 |
virtual ShapeExportOptions | GetDefaultShapeOptions () const =0 |
TIGL_EXPORT const ShapeExportOptions & | GetOptions (size_t iShape) const |
TIGL_EXPORT PNamedShape | GetShape (size_t iShape) const |
Returns shape added to the exporter by position in list, in order it was added to exporter, note that adding the whole configuration adds shapes seperatly if not fused. More... | |
TIGL_EXPORT const ExporterOptions & | GlobalExportOptions () const |
TIGL_EXPORT size_t | NShapes () const |
Returns the number of shapes added to exporter. More... | |
TIGL_EXPORT std::string | SupportedFileType () const |
TIGL_EXPORT bool | Write (const std::string &filename) const |
Writes the export file to working directory. More... | |
virtual TIGL_EXPORT | ~CTiglCADExporter () |
Destructor. More... | |
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 |
ExporterOptions | _globalOptions |
std::vector< ShapeExportOptions > | _shapeOptions |
ListPNamedShape | _shapes |
Abstract base class for CAD exports.
TIGL_EXPORT tigl::CTiglCADExporter::CTiglCADExporter | ( | const ExporterOptions & | options = DefaultExporterOption() | ) |
Constructor.
options | Sets options for exporter |
|
inlinevirtual |
Destructor.
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, funtion returns fals.
config | |
options |
TIGL_EXPORT void tigl::CTiglCADExporter::AddFusedConfiguration | ( | CCPACSConfiguration & | config, |
const ShapeExportOptions & | options = DefaultShapeExportOptions() |
||
) |
Adds the geometry (as described in loaded file) to exporter as one fused shape.
config | |
options |
TIGL_EXPORT void tigl::CTiglCADExporter::AddShape | ( | PNamedShape | shape, |
const ShapeExportOptions & | options = DefaultShapeExportOptions() |
||
) |
Adds a shape to the exporter.
shape | |
options |
TIGL_EXPORT void tigl::CTiglCADExporter::AddShape | ( | PNamedShape | shape, |
const CCPACSConfiguration * | config, | ||
const ShapeExportOptions & | options = DefaultShapeExportOptions() |
||
) |
Adds a shape and configuration to exporter.
shape | |
config | |
options |
|
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 shape added to the exporter by position in list, in order it was added to exporter, note that adding the whole configuration adds shapes seperatly if not fused.
iShape | Index refering to position of shape that was added to exporter. Index starts at '0' |
TIGL_EXPORT const ExporterOptions& tigl::CTiglCADExporter::GlobalExportOptions | ( | ) | const |
TIGL_EXPORT size_t tigl::CTiglCADExporter::NShapes | ( | ) | const |
Returns the number of shapes added to exporter.
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 |
Writes the export file to working directory.
filename |
|
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 |
stores all shapes for export