| 1 | //////////////////////////////////////////////////////////////////////////////// |
|---|
| 2 | // mayaExportLayer.h |
|---|
| 3 | // Author : Francesco Giordana |
|---|
| 4 | // Start Date : January 13, 2005 |
|---|
| 5 | // Copyright : (C) 2006 by Francesco Giordana |
|---|
| 6 | // Email : fra.giordana@tiscali.it |
|---|
| 7 | //////////////////////////////////////////////////////////////////////////////// |
|---|
| 8 | |
|---|
| 9 | /********************************************************************************* |
|---|
| 10 | * * |
|---|
| 11 | * This program is free software; you can redistribute it and/or modify * |
|---|
| 12 | * it under the terms of the GNU Lesser General Public License as published by * |
|---|
| 13 | * the Free Software Foundation; either version 2 of the License, or * |
|---|
| 14 | * (at your option) any later version. * |
|---|
| 15 | * * |
|---|
| 16 | **********************************************************************************/ |
|---|
| 17 | |
|---|
| 18 | #ifndef _MAYAEXPORTLAYER_H |
|---|
| 19 | #define _MAYAEXPORTLAYER_H |
|---|
| 20 | |
|---|
| 21 | #define PRECISION 0.0001 |
|---|
| 22 | |
|---|
| 23 | // Maya API |
|---|
| 24 | #include <maya/MAngle.h> |
|---|
| 25 | #include <maya/MFnTransform.h> |
|---|
| 26 | #include <maya/MItDag.h> |
|---|
| 27 | #include <maya/MFnCamera.h> |
|---|
| 28 | #include <maya/MGlobal.h> |
|---|
| 29 | #include <maya/MString.h> |
|---|
| 30 | #include <maya/MStringArray.h> |
|---|
| 31 | #include <maya/MObject.h> |
|---|
| 32 | #include <maya/MObjectArray.h> |
|---|
| 33 | #include <maya/MIntArray.h> |
|---|
| 34 | #include <maya/MFnIntArrayData.h> |
|---|
| 35 | #include <maya/MFnDoubleArrayData.h> |
|---|
| 36 | #include <maya/MFnVectorArrayData.h> |
|---|
| 37 | #include <maya/MArgList.h> |
|---|
| 38 | #include <maya/MStatus.h> |
|---|
| 39 | #include <maya/MDagPath.h> |
|---|
| 40 | #include <maya/MFnMesh.h> |
|---|
| 41 | #include <maya/MFnLambertShader.h> |
|---|
| 42 | #include <maya/MFnPhongShader.h> |
|---|
| 43 | #include <maya/MFnBlinnShader.h> |
|---|
| 44 | #include <maya/MFnIkJoint.h> |
|---|
| 45 | #include <maya/MPlug.h> |
|---|
| 46 | #include <maya/MPlugArray.h> |
|---|
| 47 | #include <maya/MMatrix.h> |
|---|
| 48 | #include <maya/MFnSkinCluster.h> |
|---|
| 49 | #include <maya/MItDependencyNodes.h> |
|---|
| 50 | #include <maya/MFloatPointArray.h> |
|---|
| 51 | #include <maya/MFloatVectorArray.h> |
|---|
| 52 | #include <maya/MFloatArray.h> |
|---|
| 53 | #include <maya/MDagPathArray.h> |
|---|
| 54 | #include <maya/MPointArray.h> |
|---|
| 55 | #include <maya/MItGeometry.h> |
|---|
| 56 | #include <maya/MItMeshPolygon.h> |
|---|
| 57 | #include <maya/MSelectionList.h> |
|---|
| 58 | #include <maya/MItSelectionList.h> |
|---|
| 59 | #include <maya/MItDependencyGraph.h> |
|---|
| 60 | #include <maya/MTime.h> |
|---|
| 61 | #include <maya/MAnimControl.h> |
|---|
| 62 | #include <maya/MAnimUtil.h> |
|---|
| 63 | #include <maya/MRenderUtil.h> |
|---|
| 64 | #include <maya/MQuaternion.h> |
|---|
| 65 | #include <maya/MFnBlendShapeDeformer.h> |
|---|
| 66 | #include <maya/MBoundingBox.h> |
|---|
| 67 | |
|---|
| 68 | // OGRE API |
|---|
| 69 | #include "Ogre.h" |
|---|
| 70 | #include "OgreDefaultHardwareBufferManager.h" |
|---|
| 71 | |
|---|
| 72 | // standard libraries |
|---|
| 73 | #include <math.h> |
|---|
| 74 | #include <vector> |
|---|
| 75 | #include <set> |
|---|
| 76 | #include <cassert> |
|---|
| 77 | #include <fstream> |
|---|
| 78 | #include <iostream> |
|---|
| 79 | |
|---|
| 80 | #pragma warning (disable : 4018) |
|---|
| 81 | |
|---|
| 82 | #endif |
|---|