#include <maya/MStatus.h>
#include <maya/MString.h>
#include <maya/MObject.h>
#include <maya/MGlobal.h>
#include <maya/MItDag.h>
#include <maya/MDagPath.h>
#include <maya/MItSelectionList.h>
#include <maya/MPlug.h>
#include "polyExporter.h"
#include "polyWriter.h"
#include <fstream>
#include <ios>
polyExporter::polyExporter()
{
}
polyExporter::~polyExporter()
{
}
{
std::ofstream newFile(fileName.
asChar(), std::ios::out);
if (!newFile) {
return MS::kFailure;
}
newFile.setf(std::ios::unitbuf);
writeHeader(newFile);
}
}
} else {
}
writeFooter(newFile);
newFile.flush();
newFile.close();
return MS::kSuccess;
}
bool polyExporter::haveWriteMethod() const
{
return true;
}
bool polyExporter::haveReadMethod() const
{
return false;
}
bool polyExporter::canBeOpened() const
{
return true;
}
MStatus polyExporter::exportAll(std::ostream& os)
{
}
for(;!itDag.isDone();itDag.next()) {
}
}
}
}
}
MStatus polyExporter::exportSelection(std::ostream& os)
{
}
}
for (itSelectionList.reset(); !itSelectionList.isDone(); itSelectionList.next()) {
}
}
}
}
MStatus polyExporter::processPolyMesh(
const MDagPath dagPath, std::ostream& os)
{
polyWriter* pWriter = createPolyWriter(dagPath, status);
delete pWriter;
}
delete pWriter;
}
delete pWriter;
}
delete pWriter;
}
{
return false;
return false;
} else {
bool visible;
}
return visible;
}
}
void polyExporter::writeHeader(std::ostream& os)
{
os << "";
}
void polyExporter::writeFooter(std::ostream& os)
{
os << "";
}