WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
OBJExporter Class Reference

Exports WoW models to Wavefront OBJ format with accompanying MTL material files. More...

#include <OBJExporter.h>

Inheritance diagram for OBJExporter:
[legend]
Collaboration diagram for OBJExporter:
[legend]

Public Member Functions

 OBJExporter ()
 
 ~OBJExporter ()=default
 
std::wstring menuLabel () const
 
std::wstring fileSaveTitle () const
 
std::wstring fileSaveFilter () const
 
bool exportModel (Model *, std::wstring file)
 
- Public Member Functions inherited from ExporterPlugin
 ExporterPlugin ()=default
 
virtual ~ExporterPlugin ()=default
 
bool canExportAnimation () const
 
void setAnimationsToExport (std::vector< int > values)
 

Private Member Functions

bool exportModelVertices (WoWModel *model, std::ofstream &file, int &counter, glm::mat4 m=glm::mat4(1.0), glm::vec3 pos=glm::vec3(0.0f)) const
 
bool exportModelMaterials (WoWModel *model, std::ofstream &file, std::string mtlFile) const
 

Additional Inherited Members

- Protected Member Functions inherited from ExporterPlugin
void exportGLTexture (GLuint id, std::wstring filename) const
 
- Protected Attributes inherited from ExporterPlugin
bool m_canExportAnimation = false
 
std::vector< int > m_animsToExport
 

Detailed Description

Exports WoW models to Wavefront OBJ format with accompanying MTL material files.

Definition at line 39 of file OBJExporter.h.

Constructor & Destructor Documentation

◆ OBJExporter()

OBJExporter::OBJExporter ( )
default

◆ ~OBJExporter()

OBJExporter::~OBJExporter ( )
default

Member Function Documentation

◆ exportModel()

bool OBJExporter::exportModel ( Model m,
std::wstring  file 
)
virtual

Implements ExporterPlugin.

Definition at line 69 of file OBJExporter.cpp.

Here is the call graph for this function:

◆ exportModelMaterials()

bool OBJExporter::exportModelMaterials ( WoWModel model,
std::ofstream &  file,
std::string  mtlFile 
) const
private

Definition at line 343 of file OBJExporter.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ exportModelVertices()

bool OBJExporter::exportModelVertices ( WoWModel model,
std::ofstream &  file,
int &  counter,
glm::mat4  m = glm::mat4(1.0),
glm::vec3  pos = glm::vec3(0.0f) 
) const
private

Definition at line 187 of file OBJExporter.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fileSaveFilter()

std::wstring OBJExporter::fileSaveFilter ( ) const
virtual

Implements ExporterPlugin.

Definition at line 64 of file OBJExporter.cpp.

◆ fileSaveTitle()

std::wstring OBJExporter::fileSaveTitle ( ) const
virtual

Implements ExporterPlugin.

Definition at line 59 of file OBJExporter.cpp.

◆ menuLabel()

std::wstring OBJExporter::menuLabel ( ) const
virtual

Implements ExporterPlugin.

Definition at line 54 of file OBJExporter.cpp.


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