OpenLexocad
28.0
|
Exports the visible Elements of the Document to an OBJ file. The point coordinates can be written out in the following order: YXMODE -> Y|X|Z ESRIMODE -> X|Z|Y DEFAULT -> X|Y|Z. More...
#include <OBJ_Exporter.h>
Public Types | |
enum | CoordinateOrder { CoordinateOrder::DEFAULT = 0, CoordinateOrder::YXMODE = 1, CoordinateOrder::ESRIMODE = 2 } |
Public Member Functions | |
OBJ_Exporter (std::shared_ptr< OpenLxApp::Document > aDoc) | |
OBJ_Exporter ()=delete | |
virtual | ~OBJ_Exporter () |
void | setHeader (const Base::String &aHeader) |
void | setWithMaterials (bool aFlag) |
void | setMerge (bool aFlag) |
void | setCoordinateOrder (CoordinateOrder aCoordOrder) |
Base::String | getHeader () const |
bool | getWithMaterials () const |
bool | getMerge () const |
CoordinateOrder | getCoordinateOrder () const |
virtual int | exportFile (const Base::String &filename) override |
![]() | |
Exporter (std::shared_ptr< OpenLxApp::Document > aDoc) | |
Exporter ()=delete | |
void | setSilentMode (bool aFlag) |
bool | isInSilentMode () const |
virtual | ~Exporter () |
Static Public Member Functions | |
static std::shared_ptr< OBJ_Exporter > | createIn (std::shared_ptr< OpenLxApp::Document > aDoc) |
Additional Inherited Members | |
![]() | |
bool | init () |
![]() | |
std::shared_ptr< OpenLxApp::Document > | _doc |
bool | _silentMode = false |
Exports the visible Elements of the Document to an OBJ file. The point coordinates can be written out in the following order: YXMODE -> Y|X|Z ESRIMODE -> X|Z|Y DEFAULT -> X|Y|Z.
|
strong |
OpenLxApp::OBJ_Exporter::OBJ_Exporter | ( | std::shared_ptr< OpenLxApp::Document > | aDoc | ) |
|
delete |
|
inlinevirtual |
|
static |
|
overridevirtual |
Implements OpenLxApp::Exporter.
CoordinateOrder OpenLxApp::OBJ_Exporter::getCoordinateOrder | ( | ) | const |
Base::String OpenLxApp::OBJ_Exporter::getHeader | ( | ) | const |
bool OpenLxApp::OBJ_Exporter::getMerge | ( | ) | const |
bool OpenLxApp::OBJ_Exporter::getWithMaterials | ( | ) | const |
void OpenLxApp::OBJ_Exporter::setCoordinateOrder | ( | CoordinateOrder | aCoordOrder | ) |
void OpenLxApp::OBJ_Exporter::setHeader | ( | const Base::String & | aHeader | ) |
void OpenLxApp::OBJ_Exporter::setMerge | ( | bool | aFlag | ) |
void OpenLxApp::OBJ_Exporter::setWithMaterials | ( | bool | aFlag | ) |