AGX Dynamics
2.35.0.1
BeamSegment.h
Go to the documentation of this file.
1
/*
2
Copyright 2007-2021. 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
#pragma once
18
19
#include <
agxModel/export.h
>
20
21
#include <
agxSDK/LinkedSegment.h
>
22
23
namespace
agxModel
24
{
25
AGX_DECLARE_POINTER_TYPES
(
BeamSegment
);
26
36
class
AGXMODEL_EXPORT
BeamSegment
:
public
agxSDK::LinkedSegment
37
{
38
public
:
43
static
BeamSegment
* get(
agx::RigidBody
* rb );
44
49
static
const
BeamSegment
* get(
const
agx::RigidBody
* rb );
50
51
public
:
59
using
agxSDK::LinkedSegment::LinkedSegment
;
60
64
class
Beam
*
getBeam
()
const
;
65
66
public
:
67
DOXYGEN_START_INTERNAL_BLOCK
()
68
69
AGXSTREAM_DECLARE_SERIALIZABLE
(
agxModel
::
BeamSegment
);
70
71
protected:
72
virtual ~
BeamSegment
();
73
74
DOXYGEN_END_INTERNAL_BLOCK
()
75
};
76
77
inline
BeamSegment
*
BeamSegment
::get(
agx
::RigidBody* rb )
78
{
79
return
agxSDK::LinkedSegment::getT<BeamSegment>( rb );
80
}
81
82
inline
const
BeamSegment
*
BeamSegment::get
(
const
agx::RigidBody
* rb )
83
{
84
return
agxSDK::LinkedSegment::getT<BeamSegment>( rb );
85
}
86
}
LinkedSegment.h
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition:
Referenced.h:248
AGXSTREAM_DECLARE_SERIALIZABLE
#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
export.h
AGXMODEL_EXPORT
#define AGXMODEL_EXPORT
Definition:
agxModel/export.h:42
agxModel::BeamSegment
Beam segment in an agxModel::Beam containing a rigid body, a constraint and is of fixed length.
Definition:
BeamSegment.h:37
agxModel::BeamSegment::get
static BeamSegment * get(agx::RigidBody *rb)
Definition:
BeamSegment.h:77
agxModel::BeamSegment::getBeam
class Beam * getBeam() const
agxModel::Beam
Beam is a segmented, lumped element structure of a given length and resolution.
Definition:
Beam.h:42
agxSDK::LinkedSegment
Segment object in a linked structure.
Definition:
LinkedSegment.h:39
agxSDK::LinkedSegment::LinkedSegment
LinkedSegment()
Default constructor used by serialization.
agx::RigidBody
The rigid body class, combining a geometric model and a frame of reference.
Definition:
RigidBody.h:55
DOXYGEN_END_INTERNAL_BLOCK
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition:
macros.h:97
DOXYGEN_START_INTERNAL_BLOCK
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition:
macros.h:96
agxModel
Contain classes for higher level modeling primitives, such as Tree, Terrain etc.
Definition:
FlowUnit.h:37
agx
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Definition:
AddedMassInteraction.h:23
include
agxModel
BeamSegment.h
Generated on Fri Jan 20 2023 10:48:10 for AGX Dynamics by
1.9.1