AGX Dynamics  2.37.3.2
DeprecatedAttachment.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2024. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or having been
9 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10 valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 
17 #ifndef AGX_DEPRECATEDATTACHMENT_H
18 #define AGX_DEPRECATEDATTACHMENT_H
19 
20 #include <agxStream/Serializable.h>
21 
22 #include <agx/Vec3.h>
23 
24 #ifdef _MSC_VER
25 # pragma warning( push )
26 # pragma warning( disable : 4251 ) // class X needs to have dll-interface to be used by clients of class Y
27 #endif
28 
29 namespace agx
30 {
35  class AGXPHYSICS_EXPORT OldConstraintAttachmentSkeleton : public virtual agxStream::Serializable
36  {
37  public:
38  OldConstraintAttachmentSkeleton() : m_data( 0 ), m_size(0) {}
39  OldConstraintAttachmentSkeleton( Vec3* data, size_t n ) : m_data( data ), m_size( n ) {}
40  virtual ~OldConstraintAttachmentSkeleton() {}
41 
42  AGXSTREAM_DECLARE_SERIALIZABLE(agx::OldConstraintAttachmentSkeleton);
43 
44  protected:
45  Vec3* m_data;
46  size_t m_size;
47  };
48 
49  class AGXPHYSICS_EXPORT HingeAttachment : public OldConstraintAttachmentSkeleton
50  {
51  public:
52  HingeAttachment() : OldConstraintAttachmentSkeleton( m_data, 9 ) {}
53 
54  protected:
55  AGXSTREAM_DECLARE_SERIALIZABLE(agx::HingeAttachment);
56 
57  Vec3 m_data[ 9 ];
58  OldConstraintAttachmentSkeleton m_xformed[ 1 ];
59  };
60 
61  class AGXPHYSICS_EXPORT PrismaticAttachment : public HingeAttachment { public: AGXSTREAM_DECLARE_SERIALIZABLE(agx::PrismaticAttachment); };
62  class AGXPHYSICS_EXPORT CylindricalJointAttachment : public HingeAttachment { public: AGXSTREAM_DECLARE_SERIALIZABLE(agx::CylindricalJointAttachment); };
63  class AGXPHYSICS_EXPORT LockJointAttachment : public HingeAttachment { public: AGXSTREAM_DECLARE_SERIALIZABLE(agx::LockJointAttachment); };
64  class AGXPHYSICS_EXPORT BallJointAttachment : public OldConstraintAttachmentSkeleton
65  {
66  public:
67  BallJointAttachment() : OldConstraintAttachmentSkeleton( m_data, 3 ) {}
68  AGXSTREAM_DECLARE_SERIALIZABLE(agx::BallJointAttachment);
69  protected:
70  Vec3 m_data[ 3 ];
71  OldConstraintAttachmentSkeleton m_xformed[ 1 ];
72  };
73 
74  class AGXPHYSICS_EXPORT DistanceJointAttachment : public OldConstraintAttachmentSkeleton
75  {
76  public:
77  DistanceJointAttachment() : OldConstraintAttachmentSkeleton( m_data, 3 ) {}
78  AGXSTREAM_DECLARE_SERIALIZABLE(agx::DistanceJointAttachment);
79  protected:
80  Vec3 m_data[ 3 ];
81  OldConstraintAttachmentSkeleton m_xformed[ 1 ];
82  };
83 
84  class AGXPHYSICS_EXPORT AngularLockJointAttachment : public OldConstraintAttachmentSkeleton
85  {
86  public:
87  AngularLockJointAttachment() : OldConstraintAttachmentSkeleton( m_data, 6 ) {}
88  AGXSTREAM_DECLARE_SERIALIZABLE(agx::AngularLockJointAttachment);
89  protected:
90  Vec3 m_data[ 6 ];
91  OldConstraintAttachmentSkeleton m_xformed[ 1 ];
92  };
93 
94  class AGXPHYSICS_EXPORT Dot1JointAttachment : public AngularLockJointAttachment
95  {
96  public:
97  AGXSTREAM_DECLARE_SERIALIZABLE(agx::Dot1JointAttachment);
98  };
100 } // namespace agx
101 
102 #ifdef _MSC_VER
103 #pragma warning( pop )
104 #endif
105 
106 #endif
Vec3T< Real > Vec3
The object holding 3 dimensional vectors and providing basic arithmetic.
Definition: Vec3.h:36
#define m_size
Definition: Vector.h:429
#define AGXPHYSICS_EXPORT
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
Definition: Serializable.h:207
This namespace contain classes for streaming classes into archives, ASCII, binary for storage (serial...
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition: Object.h:98
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: Object.h:97