1 /*
2     Copyright (c) 2008-2009 NetAllied Systems GmbH
3 
4 	This file is part of COLLADAMaya.
5 
6     Portions of the code are:
7     Copyright (c) 2005-2007 Feeling Software Inc.
8     Copyright (c) 2005-2007 Sony Computer Entertainment America
9     Copyright (c) 2004-2005 Alias Systems Corp.
10 
11     Licensed under the MIT Open Source License,
12     for details please see LICENSE file or the website
13     http://www.opensource.org/licenses/mit-license.php
14 */
15 
16 #ifndef __COLLADA_MAYA_LOD_EXPORTER_H__
17 #define __COLLADA_MAYA_LOD_EXPORTER_H__
18 
19 #include "COLLADAMayaPrerequisites.h"
20 #include "COLLADASWStreamWriter.h"
21 #include "COLLADASWLibraryNodes.h"
22 #include "COLLADAMayaDocumentExporter.h"
23 
24 namespace COLLADAMaya
25 {
26 
27     /** This class writes the <library_nodes>. */
28 	class LODExporter : public COLLADASW::LibraryNodes
29     {
30 
31     private:
32 
33         /** Pointer to the document exporter */
34         DocumentExporter* mDocumentExporter;
35 
36     public:
37 
38         /**
39         * @param streamWriter The stream the output will be written to
40         * @param documentExporter The document exporter this material exporter is used in
41         */
42 		LODExporter(COLLADASW::StreamWriter* streamWriter, DocumentExporter* documentExporter);
~LODExporter()43         virtual ~LODExporter() {};
44 
45         /** Exports the nodes in <library_nodes> and add extra techniques with <proxy> to instance_node. */
46 		void exportLODs(VisualSceneExporter* mVisualSceneExporter);
47 
48 		void exportLOD(VisualSceneExporter* mVisualSceneExporter, SceneElement* sceneElement);
49     };
50 
51 }
52 
53 #endif //__COLLADA_MAYA_LOD_EXPORTER_H__
54