AGX Dynamics
2.35.0.1
TrackNode.h
Go to the documentation of this file.
1
/*
2
Copyright 2007-2022. 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 <
agxVehicle/export.h
>
20
21
#include <
agxSDK/LinkedSegment.h
>
22
23
#include <
agx/Hinge.h
>
24
25
namespace
agx
26
{
27
class
MergedBody;
28
}
29
30
namespace
agxVehicle
31
{
32
class
Track;
33
AGX_DECLARE_POINTER_TYPES
(
TrackNode
);
34
35
using
IndexRange
=
agx::IndexRangeT<agx::UInt>
;
36
using
IndexRangeContainer
=
agx::VectorPOD<IndexRange>
;
37
46
class
AGXVEHICLE_EXPORT
TrackNode
:
public
agxSDK::LinkedSegment
47
{
48
public
:
56
TrackNode
(
const
agx::AffineMatrix4x4
&
transform
,
const
agx::Vec3
& halfExtents );
57
61
agx::Real
getWidth
()
const
;
62
66
agx::Real
getThickness
()
const
;
67
71
agx::Vec3
getRotationAxis
()
const
;
72
76
agx::MergedBody
*
getMergedBody
()
const
;
77
81
agx::Bool
isMergedWithWheel
()
const
;
82
86
agxVehicle::Track
*
getTrack
()
const
;
87
88
public
:
89
AGXSTREAM_DECLARE_SERIALIZABLE
(
agxVehicle::TrackNode
);
90
91
protected
:
95
TrackNode
();
96
100
virtual
~TrackNode
();
101
};
102
}
Hinge.h
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
AGXVEHICLE_EXPORT
#define AGXVEHICLE_EXPORT
Definition:
agxVehicle/export.h:38
agxSDK::LinkedSegment
Segment object in a linked structure.
Definition:
LinkedSegment.h:39
agxVehicle::TrackNode
Node/segment/shoe object in agxVehicle::Track.
Definition:
TrackNode.h:47
agxVehicle::TrackNode::getThickness
agx::Real getThickness() const
agxVehicle::TrackNode::TrackNode
TrackNode(const agx::AffineMatrix4x4 &transform, const agx::Vec3 &halfExtents)
Construct given transform and half extents of the shape.
agxVehicle::TrackNode::getRotationAxis
agx::Vec3 getRotationAxis() const
agxVehicle::TrackNode::TrackNode
TrackNode()
Default constructor used by serialization.
agxVehicle::TrackNode::isMergedWithWheel
agx::Bool isMergedWithWheel() const
agxVehicle::TrackNode::getTrack
agxVehicle::Track * getTrack() const
agxVehicle::TrackNode::getMergedBody
agx::MergedBody * getMergedBody() const
agxVehicle::TrackNode::getWidth
agx::Real getWidth() const
agxVehicle::TrackNode::~TrackNode
virtual ~TrackNode()
Reference counted object - protected destructor.
agxVehicle::Track
Assembly object representing a continuous track with a given number of shoes (nodes).
Definition:
agxVehicle/Track.h:37
agx::AffineMatrix4x4T< Real >
agx::IndexRangeT< agx::UInt >
agx::MergedBody
Structure holding several "normal" rigid bodies.
Definition:
MergedBody.h:56
agx::Vec3T< Real >
agx::VectorPOD< IndexRange >
agxData::transform
void AGXCORE_EXPORT transform(void *target, const Format *targetFormat, const void *source, const Format *sourceFormat, size_t numElements)
Transform data between two buffers.
agxVehicle
This namespace contains classes related to vehicles dynamics.
Definition:
AckermannSteering.h:23
agx
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Definition:
AddedMassInteraction.h:23
agx::Bool
bool Bool
Definition:
Integer.h:48
agx::Real
double Real
Definition:
Real.h:42
include
agxVehicle
TrackNode.h
Generated on Fri Jan 20 2023 10:48:20 for AGX Dynamics by
1.9.1