AGX Dynamics 2.42.3.1
Loading...
Searching...
No Matches
SlotMapper.h
Go to the documentation of this file.
1/*
2Copyright 2007-2025. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16
17#pragma once
18
19#include <agxModel/export.h>
20#include <agx/Vector.h>
21#include <agx/Referenced.h>
24
25
26
27namespace agxPowerLine
28{
29 class PowerLine;
30
31 namespace detail
32 {
33 class SlotMapperUnitTestEntryPoint;
34 }
35}
36
37
38namespace agxPowerLine
39{
51 {
52 public:
54
61
62
70
80
87
88 /*
89 Move the given dimension state from its current body and slot to the given
90 slot in the given body.
91 */
94
95
97
98 private:
99 SlotMapper(); // For serialization only.
100 void assertValid() const;
101
102 private:
109
110 private:
112 agxPowerLine::detail::PackingInfos m_nonfullPackings;
113 agxPowerLine::PowerLine* m_powerLine;
114 };
115
117}
118
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:254
#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
#define AGXMODEL_EXPORT
PowerLine is the base class for a system of power transfer integrated into the rigid body simulation.
Definition: PowerLine.h:66
The SlotMapper is reponsible for mapping one dimensional dimension states to slots in the RigidBodies...
Definition: SlotMapper.h:51
void pack(agxPowerLine::detail::Translational1DofState *dimension)
void split(agxPowerLine::detail::Translational1DofState *dimension)
void unpack(agxPowerLine::detail::Rotational1DofState *dimension)
After a call to unpack the given dimension will not share a body with any other dimension and will be...
void split(agxPowerLine::detail::Rotational1DofState *dimension)
Move the dimension state from the dimensions' current body to a new one.
void reserve(agxPowerLine::detail::Translational1DofState *dimension)
SlotMapper(agxPowerLine::PowerLine *powerLine)
void pack(agxPowerLine::detail::Rotational1DofState *dimension)
Pack means move the state to a body that SlotMapper knows about.
void unpack(agxPowerLine::detail::Translational1DofState *dimension)
void move(agxPowerLine::detail::Translational1DofState *dimension, agx::RigidBody *body, agx::UInt8 slot)
void move(agxPowerLine::detail::Rotational1DofState *dimension, agx::RigidBody *body, agx::UInt8 slot)
void reserve(agxPowerLine::detail::Rotational1DofState *dimension)
Move the dimension state from the dimensions' current body to a new body and mark the dimension as no...
Templated one dimensional dimension state.
The UnitTestEntryPoint is a backdoor into the SlotMapper's internal state used by the unit tests to e...
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Definition: Serializable.h:44
Base class providing referencing counted objects.
Definition: Referenced.h:120
The rigid body class, combining a geometric model and a frame of reference.
Definition: RigidBody.h:49
agxPowerLine contains a collection of connected components that transport power across a system.
Definition: MotorUnit.h:24
uint8_t UInt8
Definition: Integer.h:30