AGX Dynamics
2.38.0.2
TranslationalUnit.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
#pragma once
18
19
#include <
agxModel/export.h
>
20
#include <
agxPowerLine/TranslationalDimension.h
>
21
#include <
agxPowerLine/Unit.h
>
22
23
namespace
agxPowerLine
24
{
25
class
AGXMODEL_EXPORT
TranslationalUnit
:
public
agxPowerLine::Unit
26
{
27
public
:
28
32
TranslationalUnit
();
33
34
38
virtual
agx::Real
getDeliveredForce
()
const
{
return
m_translationalDimension->getOutputLoad();}
39
43
agxPowerLine::TranslationalDimension* getTranslationalDimension()
const
;
44
45
agx::Real
getPosition()
const
;
46
47
agx::Real
getVelocity()
const
;
48
52
void
setVelocityDamping(
agx::Real
damping);
53
54
58
void
setMass(
agx::Real
mass );
59
63
virtual
agx::Vec3
getWorldDirection()
const
;
64
68
virtual
bool
preUpdate(
agx::Real
timeStep)
override
;
72
virtual
bool
store(
agxStream::StorageStream
& str)
const override
;
73
77
virtual
bool
restore(
agxStream::StorageStream
& str)
override
;
78
79
AGXSTREAM_DECLARE_SERIALIZABLE
(
agxPowerLine::TranslationalUnit
);
80
81
protected
:
82
virtual
~
TranslationalUnit
();
83
84
protected
:
85
agxPowerLine::TranslationalDimensionRef
m_translationalDimension
;
86
};
87
88
89
typedef
agx::ref_ptr<TranslationalUnit>
TranslationalUnitRef
;
90
}
agx::Real
double Real
Definition:
Real.h:42
agxPowerLine::TranslationalUnit
Definition:
TranslationalUnit.h:25
Unit.h
export.h
agxPowerLine::TranslationalUnit::m_translationalDimension
agxPowerLine::TranslationalDimensionRef m_translationalDimension
Definition:
TranslationalUnit.h:85
TranslationalDimension.h
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:207
agxPowerLine::TranslationalUnit::getDeliveredForce
virtual agx::Real getDeliveredForce() const
Definition:
TranslationalUnit.h:38
agxPowerLine::Unit
Pure virtual class.
Definition:
Unit.h:71
agxPowerLine::TranslationalUnitRef
agx::ref_ptr< TranslationalUnit > TranslationalUnitRef
Definition:
TranslationalUnit.h:89
agx::ref_ptr< TranslationalUnit >
agxPowerLine
agxPowerLine contains a collection of connected components that transport power across a system.
Definition:
MotorUnit.h:23
AGXMODEL_EXPORT
#define AGXMODEL_EXPORT
Definition:
agxModel/export.h:42
agx::Vec3T< Real >
include
agxPowerLine
TranslationalUnit.h
Generated on Sun Sep 1 2024 11:18:58 for AGX Dynamics by
1.8.17