AGXDynamics  2.35.0.3
SlotMapperUtilities.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 
18 #ifndef AGXPOWERLINE_DETAIL_SLOT_MAPPTER_UTILITIES_H
19 #define AGXPOWERLINE_DETAIL_SLOT_MAPPTER_UTILITIES_H
20 
23 
24 
25 namespace agx
26 {
27  class RigidBody;
28 }
29 
30 
31 
32 namespace agxSDK
33 {
34  class Simulation;
35 }
36 
37 
38 
39 namespace agxPowerLine
40 {
41  namespace detail
42  {
43 
44  /*
45  This is a collection of helper functions used by the slot mapper and its
46  tests.
47  */
48 
50  const agx::RigidBody* body,
51  PackingInfos& packingInfos);
52 
53 
55  const Rotational1DofState* dimension,
56  PackingInfos& packingInfos);
57 
58 
59  std::tuple<PackingInfos::iterator, PackingInfos::iterator> searchPackingInfos(
60  Rotational1DofState* dimension,
61  PackingInfos& fullPackings,
62  PackingInfos& nonfullPackings);
63 
64 
65  std::tuple<PackingInfos::iterator, PackingInfos::iterator> searchPackingInfos(
66  agx::RigidBody* body,
67  PackingInfos& fullPackings,
68  PackingInfos& nonfullPackings);
69 
70 
71 
72  std::tuple<PackingInfos::iterator, PackingInfos::iterator> findPackingInfos(
73  Rotational1DofState* dimension,
74  PackingInfos& fullPackings,
75  PackingInfos& nonfullPackings);
76 
77 
78  std::tuple<PackingInfos::iterator, PackingInfos::iterator> findPackingInfos(
79  agx::RigidBody* body,
80  PackingInfos& fullPackings,
81  PackingInfos& nonfullPackings);
82 
83 
84  void addTo(
85  agxSDK::Simulation* simulation,
86  agx::RigidBody* body);
87 
88 
89  void removeFrom(agxSDK::Simulation* simulation, agx::RigidBody* body);
90 
91 
92  void removeFromFull(
93  PackingInfos& fullPackings,
95  Rotational1DofState* dimension,
96  PackingInfos& nonfullPackings);
97 
98 
99  void removeFromNonfull(
100  PackingInfos& nonfullPackings,
101  PackingInfos::iterator nonfullIt,
102  Rotational1DofState* dimension,
103  agx::RigidBody* oldBody,
104  agxSDK::Simulation* simulation);
105  }
106 }
107 
108 #endif
DimensionState.h
agx::RigidBody
The rigid body class, combining a geometric model and a frame of reference.
Definition: RigidBody.h:54
PackingInfo.h
agxPowerLine::detail::removeFromFull
void removeFromFull(PackingInfos &fullPackings, PackingInfos::iterator fullIt, Rotational1DofState *dimension, PackingInfos &nonfullPackings)
agxPowerLine::detail::findPackingInfos
std::tuple< PackingInfos::iterator, PackingInfos::iterator > findPackingInfos(Rotational1DofState *dimension, PackingInfos &fullPackings, PackingInfos &nonfullPackings)
agx::Vector< agxPowerLine::detail::PackingInfo >::iterator
agxPowerLine::detail::PackingInfo * iterator
Definition: Vector.h:62
agxPowerLine::detail::PackingInfos
agx::Vector< agxPowerLine::detail::PackingInfo > PackingInfos
Definition: PackingInfo.h:108
agx
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Definition: AddedMassInteraction.h:22
agxSDK::Simulation
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Definition: Simulation.h:126
agxPowerLine::detail::Rotational1DofState
DimensionState1Dof< Rotational > Rotational1DofState
Definition: DimensionState.h:453
agxPowerLine::detail::removeFromNonfull
void removeFromNonfull(PackingInfos &nonfullPackings, PackingInfos::iterator nonfullIt, Rotational1DofState *dimension, agx::RigidBody *oldBody, agxSDK::Simulation *simulation)
agxPowerLine::detail::findPackingInfo
PackingInfos::iterator findPackingInfo(const agx::RigidBody *body, PackingInfos &packingInfos)
agxPowerLine
agxPowerLine contains a collection of connected components that transport power across a system.
Definition: MotorUnit.h:23
agxPowerLine::detail::searchPackingInfos
std::tuple< PackingInfos::iterator, PackingInfos::iterator > searchPackingInfos(Rotational1DofState *dimension, PackingInfos &fullPackings, PackingInfos &nonfullPackings)
agxSDK
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
Definition: Constraint.h:30
agxPowerLine::detail::removeFrom
void removeFrom(agxSDK::Simulation *simulation, agx::RigidBody *body)
agxPowerLine::detail::addTo
void addTo(agxSDK::Simulation *simulation, agx::RigidBody *body)