Atoms Crowd  7.0.0
JointPose.h
1 #pragma once
2 // ===========================================================================
3 // Copyright (c) 2015 Toolchefs Ltd. All rights reserved.
4 //
5 // Use of this software is subject to the terms of the Toolchefs license
6 // agreement provided at the time of installation or download, or which
7 // otherwise accompanies this software in either electronic or hard copy form.
8 // ===========================================================================
9 
10 #include <AtomsCore/Globals.h>
11 #include <AtomsCore/AtomsMath.h>
12 #include <AtomsCore/Serialiser.h>
13 #include <map>
14 #include <string>
15 
16 namespace AtomsCore
17 {
19  class ATOMSCORE_EXPORT JointPose
20  {
21  public:
22 
25 
28 
30 
33  Matrix matrix() const;
34 
36 
39  void setMatrix(const Matrix& matrix);
40 
42  static size_t memSize();
43 
44  public:
45 
47 
49 
51  };
52 
53 }
54 
55 namespace AtomsCore
56 {
58  ATOMSCORE_EXPORT AtomsCore::Archive& operator<<(AtomsCore::Archive& os, const AtomsCore::JointPose& pose);
59 
61  ATOMSCORE_EXPORT AtomsCore::Archive& operator >> (AtomsCore::Archive& is, AtomsCore::JointPose& pose);
62 }
Archive class.
Definition: Serialiser.h:29
Joint pose.
Definition: JointPose.h:20
~JointPose()
Destructor.
Quaternion rotation
Rotation.
Definition: JointPose.h:46
static size_t memSize()
Get the memory size fo this object.
void setMatrix(const Matrix &matrix)
Sets the joint matrix.
Vector3 scale
Scale.
Definition: JointPose.h:50
JointPose()
Constructor.
Vector3 translation
Translation.
Definition: JointPose.h:48
Matrix matrix() const
Gets the joint matrix.
AtomsCore namespace.
Definition: Agent.h:344
AtomsMath::Quaternion Quaternion
Quaternion class.
Definition: AtomsMath.h:67
AtomsMath::Vector3 Vector3
Vector3 class.
Definition: AtomsMath.h:57
AtomsMath::Matrix Matrix
Matrix class.
Definition: AtomsMath.h:63