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

Abstract base class for model export plugins (OBJ, FBX, etc.). More...

#include <ExporterPlugin.h>

Inheritance diagram for ExporterPlugin:
[legend]

Public Member Functions

 ExporterPlugin ()=default
 
virtual ~ExporterPlugin ()=default
 
virtual std::wstring menuLabel () const =0
 
virtual std::wstring fileSaveTitle () const =0
 
virtual std::wstring fileSaveFilter () const =0
 
virtual bool exportModel (Model *, std::wstring file)=0
 
bool canExportAnimation () const
 
void setAnimationsToExport (std::vector< int > values)
 

Protected Member Functions

void exportGLTexture (GLuint id, std::wstring filename) const
 

Protected Attributes

bool m_canExportAnimation = false
 
std::vector< int > m_animsToExport
 

Detailed Description

Abstract base class for model export plugins (OBJ, FBX, etc.).

Subclasses provide a menu label, file dialog filter, and the exportModel() implementation for their specific format.

Definition at line 15 of file ExporterPlugin.h.

Constructor & Destructor Documentation

◆ ExporterPlugin()

ExporterPlugin::ExporterPlugin ( )
default

◆ ~ExporterPlugin()

virtual ExporterPlugin::~ExporterPlugin ( )
virtualdefault

Member Function Documentation

◆ canExportAnimation()

bool ExporterPlugin::canExportAnimation ( ) const
inline

Definition at line 27 of file ExporterPlugin.h.

◆ exportGLTexture()

void ExporterPlugin::exportGLTexture ( GLuint  id,
std::wstring  filename 
) const
protected

Definition at line 5 of file ExporterPlugin.cpp.

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

◆ exportModel()

virtual bool ExporterPlugin::exportModel ( Model ,
std::wstring  file 
)
pure virtual

Implemented in FBXExporter, and OBJExporter.

◆ fileSaveFilter()

virtual std::wstring ExporterPlugin::fileSaveFilter ( ) const
pure virtual

Implemented in FBXExporter, and OBJExporter.

◆ fileSaveTitle()

virtual std::wstring ExporterPlugin::fileSaveTitle ( ) const
pure virtual

Implemented in FBXExporter, and OBJExporter.

◆ menuLabel()

virtual std::wstring ExporterPlugin::menuLabel ( ) const
pure virtual

Implemented in FBXExporter, and OBJExporter.

◆ setAnimationsToExport()

void ExporterPlugin::setAnimationsToExport ( std::vector< int >  values)
inline

Definition at line 29 of file ExporterPlugin.h.

Member Data Documentation

◆ m_animsToExport

std::vector<int> ExporterPlugin::m_animsToExport
protected

Definition at line 34 of file ExporterPlugin.h.

◆ m_canExportAnimation

bool ExporterPlugin::m_canExportAnimation = false
protected

Definition at line 33 of file ExporterPlugin.h.


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