AGX Dynamics  2.37.2.0
WireMergeSplitAlgorithm.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 
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 }
bool Bool
Definition: Integer.h:48
#define AGXPHYSICS_EXPORT
Templated vector class.
Definition: Vector.h:52
Object containing merge-split actions to be processed by the agxSDK::MergeSplitHandler.
Interface and placeholder of controllers/helpers for wires.
Definition: Wire.h:61
Implements a Wire model with adaptive resolution.
Definition: MergedBody.h:39
LinearProbingHashSetImplementation< KeyT, HashT >::iterator begin(LinearProbingHashSetImplementation< KeyT, HashT > &set)
Stateless base class for merge and split of interactions.
#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
Class defining a node that is part of a wire.
Definition: agxWire/Node.h:511
Winch class for handling in and out hauling of wires.
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
Definition: Constraint.h:30