3.3.0
tigl::CTiglCADExporter Class Referenceabstract

Abstract base class for CAD exports. More...

#include <CTiglCADExporter.h>

+ Inheritance diagram for tigl::CTiglCADExporter:

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, the function returns false. More...
 
TIGL_EXPORT void AddFusedConfiguration (CCPACSConfiguration &config, const ShapeExportOptions &options=DefaultShapeExportOptions())
 Adds a whole geometry, boolean fused and meshed. More...
 
TIGL_EXPORT void AddShape (PNamedShape shape, const ShapeExportOptions &options=DefaultShapeExportOptions())
 Adds a shape. More...
 
TIGL_EXPORT void AddShape (PNamedShape shape, const CCPACSConfiguration *config, const ShapeExportOptions &options=DefaultShapeExportOptions())
 
TIGL_EXPORT CTiglCADExporter (const ExporterOptions &options=DefaultExporterOption())
 Constructor. More...
 
virtual ExporterOptions GetDefaultOptions () const =0
 
virtual ShapeExportOptions GetDefaultShapeOptions () const =0
 
TIGL_EXPORT const ShapeExportOptionsGetOptions (size_t iShape) const
 
TIGL_EXPORT PNamedShape GetShape (size_t iShape) const
 Returns all shapes added to the exporter. More...
 
TIGL_EXPORT const ExporterOptionsGlobalExportOptions () const
 
TIGL_EXPORT size_t NShapes () const
 Number of shapes. More...
 
TIGL_EXPORT std::string SupportedFileType () const
 
TIGL_EXPORT bool Write (const std::string &filename) const
 
virtual TIGL_EXPORT ~CTiglCADExporter ()
 

Protected Member Functions

const CCPACSConfigurationGetConfiguration (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
 

Detailed Description

Abstract base class for CAD exports.

Constructor & Destructor Documentation

◆ CTiglCADExporter()

TIGL_EXPORT tigl::CTiglCADExporter::CTiglCADExporter ( const ExporterOptions options = DefaultExporterOption())

Constructor.

◆ ~CTiglCADExporter()

virtual TIGL_EXPORT tigl::CTiglCADExporter::~CTiglCADExporter ( )
inlinevirtual

Member Function Documentation

◆ AddConfiguration()

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.

◆ AddFusedConfiguration()

TIGL_EXPORT void tigl::CTiglCADExporter::AddFusedConfiguration ( CCPACSConfiguration config,
const ShapeExportOptions options = DefaultShapeExportOptions() 
)

Adds a whole geometry, boolean fused and meshed.

◆ AddShape() [1/2]

TIGL_EXPORT void tigl::CTiglCADExporter::AddShape ( PNamedShape  shape,
const ShapeExportOptions options = DefaultShapeExportOptions() 
)

Adds a shape.

◆ AddShape() [2/2]

TIGL_EXPORT void tigl::CTiglCADExporter::AddShape ( PNamedShape  shape,
const CCPACSConfiguration config,
const ShapeExportOptions options = DefaultShapeExportOptions() 
)

◆ GetConfiguration()

const CCPACSConfiguration* tigl::CTiglCADExporter::GetConfiguration ( size_t  iShape) const
protected

Can also be NULL!

◆ GetDefaultOptions()

virtual ExporterOptions tigl::CTiglCADExporter::GetDefaultOptions ( ) const
pure virtual

◆ GetDefaultShapeOptions()

virtual ShapeExportOptions tigl::CTiglCADExporter::GetDefaultShapeOptions ( ) const
pure virtual

◆ GetOptions()

TIGL_EXPORT const ShapeExportOptions& tigl::CTiglCADExporter::GetOptions ( size_t  iShape) const

◆ GetShape()

TIGL_EXPORT PNamedShape tigl::CTiglCADExporter::GetShape ( size_t  iShape) const

Returns all shapes added to the exporter.

◆ GlobalExportOptions()

TIGL_EXPORT const ExporterOptions& tigl::CTiglCADExporter::GlobalExportOptions ( ) const

◆ NShapes()

TIGL_EXPORT size_t tigl::CTiglCADExporter::NShapes ( ) const

Number of shapes.

◆ SupportedFileType()

TIGL_EXPORT std::string tigl::CTiglCADExporter::SupportedFileType ( ) const

◆ SupportedFileTypeImpl()

virtual std::string tigl::CTiglCADExporter::SupportedFileTypeImpl ( ) 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.

◆ Write()

TIGL_EXPORT bool tigl::CTiglCADExporter::Write ( const std::string &  filename) const

◆ WriteImpl()

virtual bool tigl::CTiglCADExporter::WriteImpl ( const std::string &  filename) const
privatepure virtual

Field Documentation

◆ _configs

std::vector<const CCPACSConfiguration*> tigl::CTiglCADExporter::_configs
private

TIGL configurations */.

◆ _globalOptions

ExporterOptions tigl::CTiglCADExporter::_globalOptions
mutableprivate

◆ _shapeOptions

std::vector<ShapeExportOptions> tigl::CTiglCADExporter::_shapeOptions
private

◆ _shapes

ListPNamedShape tigl::CTiglCADExporter::_shapes
private

The documentation for this class was generated from the following file: