AGX Dynamics  2.35.0.1
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 
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:
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 }
#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 AGXPHYSICS_EXPORT
Object containing merge-split actions to be processed by the agxSDK::MergeSplitHandler.
Stateless base class for merge and split of interactions.
virtual void onPostSolveActions(const MergeSplitPostSolveData &postSolveData, MergeSplitActionContainer &actions) override
Push merge and/or split actions in simulation postSolve.
virtual void onPreStepActions(MergeSplitActionContainer &actions) override
Push merge and/or split actions in simulation preStep.
static void onAttach(agxWire::Wire *wire, agxWire::Node *node, agx::Bool begin)
Callback when wires recives calls to attach.
static void onDetach(agxWire::Wire *wire, agx::Bool begin)
Callback when wires recives calls to detach.
virtual void onPostSolveComputeEx(const MergeSplitPostSolveData &postSolveData, const MergedBodyMergeSplitAlgorithm &mergedBodyAlgorithm) override
Extended compute callback in postSolve.
static void onAttach(agxWire::Wire *wire, agxWire::WireWinchController *winch, agx::Bool begin)
Callback when wires recives calls to attach (given winch).
Class defining a node that is part of a wire.
Definition: agxWire/Node.h:512
Winch class for handling in and out hauling of wires.
Interface and placeholder of controllers/helpers for wires.
Definition: Wire.h:62
Templated vector class.
Definition: agx/Vector.h:53
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
Definition: Constraint.h:31
Implements a Wire model with adaptive resolution.
Definition: MergedBody.h:40
bool Bool
Definition: Integer.h:48
LinearProbingHashSetImplementation< KeyT, HashT >::iterator begin(LinearProbingHashSetImplementation< KeyT, HashT > &set)