-
Notifications
You must be signed in to change notification settings - Fork 251
/
COLLADAMayaPhysicSceneExporter.h
82 lines (61 loc) · 2.22 KB
/
COLLADAMayaPhysicSceneExporter.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/*
Copyright (c) 2008-2009 NetAllied Systems GmbH
This file is part of COLLADAMaya.
Portions of the code are:
Copyright (c) 2005-2007 Feeling Software Inc.
Copyright (c) 2005-2007 Sony Computer Entertainment America
Copyright (c) 2004-2005 Alias Systems Corp.
Licensed under the MIT Open Source License,
for details please see LICENSE file or the website
http://www.opensource.org/licenses/mit-license.php
*/
#ifndef __COLLADA_MAYA_PHYSIC_SCENE_EXPORTER_H__
#define __COLLADA_MAYA_PHYSIC_SCENE_EXPORTER_H__
#include "COLLADAMayaStableHeaders.h"
#include "COLLADASWLibraryPhysicsScenes.h"
#include "COLLADASWStreamWriter.h"
#include "COLLADASWInstanceRigidBody.h"
#include "COLLADAMayaDocumentExporter.h"
#include "COLLADAMayaSceneElement.h"
#include "COLLADABUIDList.h"
#include <maya/MDagPath.h>
#include <maya/MFnTransform.h>
#include <maya/MFnMesh.h>
class DocumentExporter;
namespace COLLADAMaya
{
/**
* Exports the transform data of the visual scene.
*
* All transform components with units will be in maya's internal units
* (radians for rotations and centimeters for translations).
* We have to translate them into the working units of the current scene!
*/
class PhysicSceneExporter : public COLLADASW::LibraryPhysicsScenes
{
private:
/** The id of the current scene. */
String mSceneId;
/** Pointer to the document exporter. */
DocumentExporter* mDocumentExporter;
public:
/**
* Constructor
* @param streamWriter Pointer to the collada stream writer.
* @param documentExporter Pointer to the main document exporter.
* @param sceneId Name of the current scene to export. Has an empty string as default value.
*/
PhysicSceneExporter ( COLLADASW::StreamWriter* streamWriter,
DocumentExporter* documentExporter,
const String& sceneId = EMPTY_STRING );
/**
* Destructor.
*/
virtual ~PhysicSceneExporter() {};
/**
* Exports the visual scene with the transforms of all included elements
*/
bool exportPhysicScenes();
};
}
#endif //__COLLADA_MAYA_VISUAL_SCENE_EXPORTER_H__