Blender  V2.93
AnimationClipExporter.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  */
16 
17 #pragma once
18 
19 #include <math.h>
20 #include <stdio.h>
21 #include <stdlib.h>
22 
23 #include "COLLADASWLibraryAnimationClips.h"
24 #include "DEG_depsgraph.h"
25 #include "ExportSettings.h"
26 
27 class AnimationClipExporter : COLLADASW::LibraryAnimationClips {
28  private:
29  Depsgraph *depsgraph;
30  Scene *scene;
31  COLLADASW::StreamWriter *sw;
32  BCExportSettings &export_settings;
33  std::vector<std::vector<std::string>> anim_meta;
34 
35  public:
37  COLLADASW::StreamWriter *sw,
38  BCExportSettings &export_settings,
39  std::vector<std::vector<std::string>> anim_meta)
40  : COLLADASW::LibraryAnimationClips(sw),
42  scene(nullptr),
43  sw(sw),
44  export_settings(export_settings),
45  anim_meta(anim_meta)
46  {
47  }
48 
49  void exportAnimationClips(Scene *sce);
50 };
struct Depsgraph Depsgraph
Definition: DEG_depsgraph.h:51
void exportAnimationClips(Scene *sce)
AnimationClipExporter(Depsgraph *depsgraph, COLLADASW::StreamWriter *sw, BCExportSettings &export_settings, std::vector< std::vector< std::string >> anim_meta)
Scene scene
const Depsgraph * depsgraph
std::vector< ElementType, Eigen::aligned_allocator< ElementType > > vector
Definition: vector.h:39