AGXDynamics
2.31.1.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
RotationalUnit.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
#ifndef AGXPOWERLINE_ROTATIONAL_UNIT_H
18
#define AGXPOWERLINE_ROTATIONAL_UNIT_H
19
20
#include <
agxModel/export.h
>
21
#include <
agxPowerLine/RotationalDimension.h
>
22
#include <
agxPowerLine/Unit.h
>
23
24
namespace
agxPowerLine
25
{
29
class
AGXMODEL_EXPORT
RotationalUnit
:
public
agxPowerLine::Unit
30
{
31
public
:
35
RotationalUnit
();
36
37
38
RotationalUnit
(
agx::RigidBody
* body,
agx::UInt8
slot);
39
43
virtual
agx::Real
getDeliveredTorque()
const
;
44
48
agx::Real
getAngularVelocity()
const
;
49
53
agx::Real
getRPM()
const
;
54
58
void
setAngularVelocityDamping(
agx::Real
damping );
59
63
agxPowerLine::RotationalDimension
* getRotationalDimension()
const
;
64
68
virtual
void
setInertia(
agx::Real
inertia );
69
70
virtual
agx::Real
getInertia()
const
;
71
75
virtual
agx::Vec3
getDirection()
const
;
76
80
static
agx::Real
convertAngularVelocityToRPM(
const
agx::Real
angVel );
81
static
agx::Real
convertRPMtoAngularVelocity(
const
agx::Real
rpm );
82
86
virtual
bool
preUpdate(
agx::Real
timeStep)
override
;
87
90
virtual
bool
postUpdate(
agx::Real
timeStep)
override
;
91
95
virtual
bool
store(
agxStream::StorageStream
& str)
const override
;
96
100
virtual
bool
restore(
agxStream::StorageStream
& str)
override
;
101
102
AGXSTREAM_DECLARE_SERIALIZABLE
(
agxPowerLine::RotationalUnit
);
103
104
protected
:
105
virtual
~
RotationalUnit
();
106
107
protected
:
108
RotationalDimensionRef
m_rotationalDimension
;
109
};
110
111
typedef
agx::ref_ptr<RotationalUnit>
RotationalUnitRef
;
112
}
113
114
#endif // AGXMODEL_ROTATIONAL_UNIT_H
agxPowerLine::RotationalUnit::m_rotationalDimension
RotationalDimensionRef m_rotationalDimension
Definition:
RotationalUnit.h:108
agxPowerLine::RotationalUnitRef
agx::ref_ptr< RotationalUnit > RotationalUnitRef
Definition:
RotationalUnit.h:111
agxPowerLine::RotationalUnit
A rotational unit has one degree of freedom.
Definition:
RotationalUnit.h:29
agxPowerLine::Unit
Pure virtual class.
Definition:
Unit.h:72
agx::UInt8
uint8_t UInt8
Definition:
Integer.h:38
agxPowerLine::RotationalDimension
The rotational has one rotational degree of freedom.
Definition:
RotationalDimension.h:45
agx::ref_ptr< RotationalDimension >
agx::RigidBody
The rigid body class, combining a geometric model and a frame of reference.
Definition:
RigidBody.h:52
export.h
agx::Vec3T< Real >
agxStream::StorageStream
Abstract base class for storing/restoring a line/drums with version control.
Definition:
StorageStream.h:48
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:206
Unit.h
AGXMODEL_EXPORT
#define AGXMODEL_EXPORT
Definition:
agxModel/export.h:42
agx::Real
double Real
Definition:
Real.h:42
RotationalDimension.h
include
agxPowerLine
RotationalUnit.h
Generated on Mon Mar 21 2022 11:53:04 for AGXDynamics by
1.8.5