AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
WireMergeSplitAlgorithm.h
Go to the documentation of this file.
1/*
2Copyright 2007-2024. 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
20
21#include <agx/Kernel.h>
22
23namespace agxWire
24{
25 class Wire;
26 class Node;
27 class WireWinchController;
28}
29
30namespace 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:
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...
#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.
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:40