Hide menu
Loading...
Searching...
No Matches
cadex::ModelData::ModelWriter Class Reference

Writes supported formats, see Import and Export section. More...

#include <cadex/ModelData/ModelWriter.hxx>

Inheritance diagram for cadex::ModelData::ModelWriter:
cadex::BaseObject

Public Member Functions

 ModelWriter ()
 Constructor.
 
const ModelWriterParametersParameters ()
 Returns Writer parameters.
 
void SetParameters (const ModelWriterParameters &theParameters)
 Sets Writer parameters.
 
bool Write (const ModelData::Model &theModel, const UTF16String &theFilePath)
 Writes the specified model to the file at the specified path.
 
const cadex::ProgressStatusProgressStatus ()
 
void SetProgressStatus (cadex::ProgressStatus &theStatus)
 
- Public Member Functions inherited from cadex::BaseObject
size_t Id () const
 Return unique identifier of public object.
 
internal::BaseObjectImpl * Impl () const
 
bool IsNull () const
 
 operator bool () const
 
template<typename T >
bool IsOfType () const
 
template<typename T >
T * Impl () const
 Reserved for internal use.
 

Additional Inherited Members

- Public Types inherited from cadex::BaseObject
typedef std::shared_ptr< internal::BaseObjectImpl > ImplType
 
- Protected Member Functions inherited from cadex::BaseObject
 BaseObject (const ImplType &theImpl)
 

Detailed Description

Constructor & Destructor Documentation

◆ ModelWriter()

cadex::ModelData::ModelWriter::ModelWriter ( )

Constructor.

Member Function Documentation

◆ Parameters()

const ModelWriterParameters & cadex::ModelData::ModelWriter::Parameters ( )

Returns Writer parameters.

◆ SetParameters()

void cadex::ModelData::ModelWriter::SetParameters ( const ModelWriterParameters & theParameters)

Sets Writer parameters.

◆ Write()

bool cadex::ModelData::ModelWriter::Write ( const ModelData::Model & theModel,
const UTF16String & theFilePath )

Writes the specified model to the file at the specified path.

Automatically detects suitable format based on the file extension.

Returns true if the writing process succeeded, false otherwise.

Examples
projector/poly_projector/Program.cs, projector/poly_projector/main.cxx, and sheet_metal/unfolder/main.cxx.