AGXDynamics  2.35.0.3
WireMergeSplitAlgorithm.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 #pragma once
18 
20 
21 #include <agx/Kernel.h>
22 
23 namespace agxWire
24 {
25  class Wire;
26  class Node;
27  class WireWinchController;
28 }
29 
30 namespace agxSDK
31 {
33  {
34  public:
42  static void onAttach( agxWire::Wire* wire, agxWire::Node* node, agx::Bool begin );
43 
51  static void onAttach( agxWire::Wire* wire, agxWire::WireWinchController* winch, agx::Bool begin );
52 
59  static void onDetach( agxWire::Wire* wire, agx::Bool begin );
60 
61  public:
63  {
65  : actions( 32u )
66  {
67  }
68 
70  };
72 
73  public:
75 
77 
78  protected:
79  virtual ~WireMergeSplitAlgorithm();
80 
81  virtual void onPreStepActions( MergeSplitActionContainer& actions ) override;
82  virtual void onPostSolveComputeEx( const MergeSplitPostSolveData& postSolveData,
83  const MergedBodyMergeSplitAlgorithm& mergedBodyAlgorithm ) override;
84  virtual void onPostSolveActions( const MergeSplitPostSolveData& postSolveData, MergeSplitActionContainer& actions ) override;
85 
86  private:
87  agx::LambdaKernelRef m_postSolveKernel;
88  };
89 }
agxSDK::MergedBodyMergeSplitAlgorithm
Definition: MergedBodyMergeSplitAlgorithm.h:26
agxSDK::WireMergeSplitAlgorithm
Definition: WireMergeSplitAlgorithm.h:32
Kernel.h
agxSDK::MergeSplitPostSolveData
Definition: MergeSplitPostSolveData.h:37
agx::Vector
Templated vector class.
Definition: Vector.h:52
agxSDK::MergeSplitAlgorithm
Stateless base class for merge and split of interactions.
Definition: MergeSplitAlgorithm.h:32
agxWire::Wire
Interface and placeholder of controllers/helpers for wires.
Definition: Wire.h:61
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
AGXPHYSICS_EXPORT
#define AGXPHYSICS_EXPORT
agx::begin
LinearProbingHashSetImplementation< KeyT, HashT >::iterator begin(LinearProbingHashSetImplementation< KeyT, HashT > &set)
Definition: LinearProbingHashSet.h:606
agx::ref_ptr< LambdaKernel >
agxWire
Implements a Wire model with adaptive resolution.
Definition: MergedBody.h:39
agxSDK::WireMergeSplitAlgorithm::PostSolveData::actions
MergeSplitActionContainer actions
Definition: WireMergeSplitAlgorithm.h:69
agxSDK::WireMergeSplitAlgorithm::PostSolveData::PostSolveData
PostSolveData()
Definition: WireMergeSplitAlgorithm.h:64
agxSDK::WireMergeSplitAlgorithm::PostSolveData
Definition: WireMergeSplitAlgorithm.h:62
agx::Bool
bool Bool
Definition: Integer.h:48
agxSDK
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
Definition: Constraint.h:30
MergeSplitAlgorithm.h
agxSDK::MergeSplitActionContainer
Object containing merge-split actions to be processed by the agxSDK::MergeSplitHandler.
Definition: MergeSplitAction.h:115
agxWire::Node
Class defining a node that is part of a wire.
Definition: agxWire/Node.h:511
agxWire::WireWinchController
Winch class for handling in and out hauling of wires.
Definition: WireWinchController.h:41