AGX Dynamics
2.35.0.1
ActuatorConstraints.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
#ifndef AGXPOWERLINE_ACTUATOR_CONSTRAINTS
18
#define AGXPOWERLINE_ACTUATOR_CONSTRAINTS
19
20
#include <
agxPowerLine/PowerLineConstraints.h
>
21
22
namespace
agxPowerLine
23
{
24
class
Actuator1DOF;
25
class
ActuatorConnector;
26
}
27
28
namespace
agxPowerLine
29
{
30
class
AGXMODEL_EXPORT
ElementaryActuatorConstraint
:
31
public
agxPowerLine::ElementaryPhysicalDimensionMultiBodyConstraint
32
{
33
public
:
34
ElementaryActuatorConstraint
();
35
ActuatorConnector
*
getActuatorConnector
();
36
};
37
38
39
class
AGXMODEL_EXPORT
ActuatorConstraintImplementation
:
40
public
agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation
41
{
42
public
:
43
ActuatorConstraintImplementation
();
44
ActuatorConstraintImplementation
(
ElementaryPhysicalDimensionConstraint
* elementaryConstraint,
Actuator1DOF
* owningActuator);
45
void
setOwningActuator
(
Actuator1DOF
* owningActuator);
46
virtual
bool
updateValid
()
override
;
47
virtual
void
prepare
()
override
;
48
49
AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE
(
agxPowerLine::ActuatorConstraintImplementation
);
50
virtual
void
store
(
agxStream::OutputArchive
&
out
)
const override
;
51
virtual
void
restore
(
agxStream::InputArchive
&
in
)
override
;
52
53
private
:
54
Actuator1DOF
* m_owningActuator;
55
};
56
}
57
58
#endif
PowerLineConstraints.h
AGXMODEL_EXPORT
#define AGXMODEL_EXPORT
Definition:
agxModel/export.h:42
agxPowerLine::Actuator1DOF
Definition:
Actuator1DOF.h:41
agxPowerLine::ActuatorConnector
Definition:
ActuatorConnector.h:41
agxPowerLine::ActuatorConstraintImplementation
Definition:
ActuatorConstraints.h:41
agxPowerLine::ActuatorConstraintImplementation::AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE
AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(agxPowerLine::ActuatorConstraintImplementation)
agxPowerLine::ActuatorConstraintImplementation::updateValid
virtual bool updateValid() override
Test if the constraint is still valid.
agxPowerLine::ActuatorConstraintImplementation::ActuatorConstraintImplementation
ActuatorConstraintImplementation()
agxPowerLine::ActuatorConstraintImplementation::store
virtual void store(agxStream::OutputArchive &out) const override
agxPowerLine::ActuatorConstraintImplementation::restore
virtual void restore(agxStream::InputArchive &in) override
agxPowerLine::ActuatorConstraintImplementation::prepare
virtual void prepare() override
Prepares this constraint.
agxPowerLine::ActuatorConstraintImplementation::setOwningActuator
void setOwningActuator(Actuator1DOF *owningActuator)
agxPowerLine::ActuatorConstraintImplementation::ActuatorConstraintImplementation
ActuatorConstraintImplementation(ElementaryPhysicalDimensionConstraint *elementaryConstraint, Actuator1DOF *owningActuator)
agxPowerLine::ElementaryActuatorConstraint
Definition:
ActuatorConstraints.h:32
agxPowerLine::ElementaryActuatorConstraint::getActuatorConnector
ActuatorConnector * getActuatorConnector()
agxPowerLine::ElementaryActuatorConstraint::ElementaryActuatorConstraint
ElementaryActuatorConstraint()
agxPowerLine::ElementaryPhysicalDimensionConstraint
Pure virtual function.
Definition:
PowerLineConstraints.h:39
agxPowerLine::ElementaryPhysicalDimensionMultiBodyConstraint
Elementary constraint for constraining an arbitrary number of ONE specific PhysicalDimension::Type.
Definition:
PowerLineConstraints.h:115
agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation
Constraint implementation for constraining a number of physical dimensions of the same type.
Definition:
PowerLineConstraints.h:151
agxStream::InputArchive
Class for reading a binary stream of serialized data.
Definition:
InputArchive.h:52
agxStream::OutputArchive
Class for writing serialized data in binary format to a stream.
Definition:
OutputArchive.h:57
agxPowerLine
agxPowerLine contains a collection of connected components that transport power across a system.
Definition:
MotorUnit.h:24
agxStream::in
InputRef< T > in(const char *name, T &obj)
Create an object with a name and a reference to the object that should be restored (usually a pointer...
Definition:
InputArchive.h:400
agxStream::out
OutputRef< Serializable > out(const char *name, const Serializable *obj)
Return an object that contain the name and the object that should be serialized to an archive.
Definition:
OutputArchive.h:412
include
agxPowerLine
detail
ActuatorConstraints.h
Generated on Fri Jan 20 2023 10:48:10 for AGX Dynamics by
1.9.1