AGXDynamics
2.31.1.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
WireMergeSplitAlgorithm.h
Go to the documentation of this file.
1
/*
2
Copyright 2007-2021. 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
19
#include <
agxSDK/MergeSplitAlgorithm.h
>
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
{
32
class
AGXPHYSICS_EXPORT
WireMergeSplitAlgorithm
:
public
agxSDK::MergeSplitAlgorithm
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
:
62
struct
PostSolveData
63
{
64
PostSolveData
()
65
: actions( 32u )
66
{
67
}
68
69
MergeSplitActionContainer
actions
;
70
};
71
using
PostSolveComputeDataContainer
=
agx::Vector<PostSolveData>
;
72
73
public
:
74
WireMergeSplitAlgorithm
();
75
76
AGXSTREAM_DECLARE_SERIALIZABLE
(
agxSDK::WireMergeSplitAlgorithm
);
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
}
agx::Bool
bool Bool
Definition:
Integer.h:48
Kernel.h
agxSDK::MergedBodyMergeSplitAlgorithm
Definition:
MergedBodyMergeSplitAlgorithm.h:26
agxSDK::WireMergeSplitAlgorithm::PostSolveData::actions
MergeSplitActionContainer actions
Definition:
WireMergeSplitAlgorithm.h:69
AGXPHYSICS_EXPORT
#define AGXPHYSICS_EXPORT
agxSDK::MergeSplitPostSolveData
Definition:
MergeSplitPostSolveData.h:37
agxSDK::WireMergeSplitAlgorithm::PostSolveData::PostSolveData
PostSolveData()
Definition:
WireMergeSplitAlgorithm.h:64
agx::Vector
Templated vector class.
Definition:
Vector.h:52
agxSDK::MergeSplitActionContainer
Object containing merge-split actions to be processed by the agxSDK::MergeSplitHandler.
Definition:
MergeSplitAction.h:115
agxWire::Wire
Interface and placeholder of controllers/helpers for wires.
Definition:
Wire.h:61
MergeSplitAlgorithm.h
agx::ref_ptr< LambdaKernel >
agx::begin
LinearProbingHashSetImplementation< KeyT, HashT >::iterator begin(LinearProbingHashSetImplementation< KeyT, HashT > &set)
Definition:
LinearProbingHashSet.h:606
agxSDK::MergeSplitAlgorithm
Stateless base class for merge and split of interactions.
Definition:
MergeSplitAlgorithm.h:32
agxSDK::WireMergeSplitAlgorithm::PostSolveData
Definition:
WireMergeSplitAlgorithm.h:62
agxSDK::WireMergeSplitAlgorithm
Definition:
WireMergeSplitAlgorithm.h:32
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:206
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
include
agxSDK
WireMergeSplitAlgorithm.h
Generated on Mon Mar 21 2022 11:53:06 for AGXDynamics by
1.8.5