Depsgraph: remove EvaluationContext, pass Depsgraph instead.
[blender.git] / source / blender / collada / SceneExporter.h
1 /*
2  * ***** BEGIN GPL LICENSE BLOCK *****
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version 2
7  * of the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software Foundation,
16  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17  *
18  * Contributor(s): Chingiz Dyussenov, Arystanbek Dyussenov.
19  *
20  * ***** END GPL LICENSE BLOCK *****
21  */
22
23 /** \file SceneExporter.h
24  *  \ingroup collada
25  */
26
27 #ifndef __SCENEEXPORTER_H__
28 #define __SCENEEXPORTER_H__
29
30 #include <stdlib.h>
31 #include <stdio.h>
32 #include <math.h>
33
34 extern "C" {
35 #include "DNA_scene_types.h"
36 #include "DNA_object_types.h"
37 #include "DNA_group_types.h"
38 #include "DNA_meshdata_types.h"
39 #include "DNA_mesh_types.h"
40 #include "DNA_image_types.h"
41 #include "DNA_material_types.h"
42 #include "DNA_texture_types.h"
43 #include "DNA_anim_types.h"
44 #include "DNA_action_types.h"
45 #include "DNA_curve_types.h"
46 #include "DNA_constraint_types.h"
47 #include "DNA_armature_types.h"
48 #include "DNA_modifier_types.h"
49 #include "DNA_userdef_types.h"
50
51 #include "BKE_DerivedMesh.h"
52 #include "BKE_fcurve.h"
53 #include "BKE_animsys.h"
54 #include "BLI_path_util.h"
55 #include "BKE_constraint.h"
56 #include "BLI_fileops.h"
57 #include "ED_keyframing.h"
58 }
59
60 #include "COLLADASWAsset.h"
61 #include "COLLADASWLibraryVisualScenes.h"
62 #include "COLLADASWNode.h"
63 #include "COLLADASWSource.h"
64 #include "COLLADASWInstanceGeometry.h"
65 #include "COLLADASWInputList.h"
66 #include "COLLADASWPrimitves.h"
67 #include "COLLADASWVertices.h"
68 #include "COLLADASWLibraryAnimations.h"
69 #include "COLLADASWLibraryImages.h"
70 #include "COLLADASWLibraryEffects.h"
71 #include "COLLADASWImage.h"
72 #include "COLLADASWEffectProfile.h"
73 #include "COLLADASWColorOrTexture.h"
74 #include "COLLADASWParamTemplate.h"
75 #include "COLLADASWParamBase.h"
76 #include "COLLADASWSurfaceInitOption.h"
77 #include "COLLADASWSampler.h"
78 #include "COLLADASWScene.h"
79 #include "COLLADASWTechnique.h"
80 #include "COLLADASWTexture.h"
81 #include "COLLADASWLibraryMaterials.h"
82 #include "COLLADASWBindMaterial.h"
83 #include "COLLADASWInstanceCamera.h"
84 #include "COLLADASWInstanceLight.h"
85 #include "COLLADASWConstants.h"
86 #include "COLLADASWLibraryControllers.h"
87 #include "COLLADASWInstanceController.h"
88 #include "COLLADASWInstanceNode.h"
89 #include "COLLADASWBaseInputElement.h"
90
91 #include "ArmatureExporter.h"
92
93 #include "ExportSettings.h"
94
95 class SceneExporter: COLLADASW::LibraryVisualScenes, protected TransformWriter, protected InstanceWriter
96 {
97 public:
98         SceneExporter(COLLADASW::StreamWriter *sw, ArmatureExporter *arm, const ExportSettings *export_settings);
99         void exportScene(Depsgraph *depsgraph, Scene *sce);
100
101 private:
102         friend class ArmatureExporter;
103         void exportHierarchy(struct Depsgraph *depsgraph, Scene *sce);
104         void writeNodes(struct Depsgraph *depsgraph, Object *ob, Scene *sce);
105         
106         ArmatureExporter *arm_exporter;
107         const ExportSettings *export_settings;
108 };
109
110 #endif