AGX Dynamics
2.37.2.0
Deformable1D.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
#ifndef AGXMODEL_DEFORMABLE1D_H
18
#define AGXMODEL_DEFORMABLE1D_H
19
20
#include <
agxModel/Deformable1DNode.h
>
21
#include <
agxModel/Deformable1DRoute.h
>
22
#include <
agxModel/Deformable1DIterator.h
>
23
#include <
agxModel/Deformable1DGeometryFactory.h
>
24
#include <
agxModel/Deformable1DBulkProperties.h
>
25
#include <
agxModel/Deformable1DComponent.h
>
26
27
28
namespace
agxModel
29
{
30
AGX_DECLARE_POINTER_TYPES
(
Deformable1D
);
31
36
class
AGXMODEL_EXPORT
Deformable1D
:
public
agxModel::Tree
37
{
38
public
:
43
Deformable1D
(
agxModel::Deformable1DRoute
* route,
agxModel::Deformable1DGeometryFactory
* geometryFactory );
44
48
agxModel::Deformable1DNode
* getBegin()
const
;
49
53
agxModel::Deformable1DIterator
getBeginIterator()
const
;
54
58
agxModel::Deformable1DIterator
findLastIterator()
const
;
59
66
agxModel::Deformable1DInitializationReport
tryInitialize();
67
71
agxModel::Deformable1DInitializationReport
getInitializationReport()
const
;
72
76
agxModel::Deformable1DRoute
* getRoute()
const
;
77
83
void
setBulkProperties(
agxModel::Deformable1DBulkProperties
* bulkProperties );
84
88
agxModel::Deformable1DBulkProperties
* getBulkProperties()
const
;
89
93
agxModel::Deformable1DGeometryFactory
* getGeometryFactory()
const
;
94
95
100
void
addComponent(
agxModel::Deformable1DComponent
* component);
101
109
bool
removeComponent(
agxModel::Deformable1DComponent
* component);
110
114
agx::UInt
getNumComponents()
const
;
115
120
agxModel::Deformable1DComponent
* getComponent(
agx::UInt
index);
121
const
agxModel::Deformable1DComponent
* getComponent(
agx::UInt
index)
const
;
122
128
agx::UInt
calculateNumberOfNodes()
const
;
129
130
141
bool
rebind()
const
;
142
143
144
virtual
void
clear
()
override
;
145
146
151
static
agxModel::Deformable1DIterator
getIterator(
agxModel::Deformable1DNode
* node );
152
156
static
agx::Bool
isBeginIterator(
agxModel::Deformable1DIterator
it );
157
158
162
static
agxModel::Deformable1D
* getDeformable(
agx::RigidBody
* body);
163
164
public
:
171
virtual
bool
initialize()
override
;
172
173
void
attachmentAdded(
agxModel::Deformable1DNode
* node,
agxModel::NodeAttachment
* attachment);
174
175
AGXSTREAM_DECLARE_SERIALIZABLE
(
agxModel::Deformable1D
);
176
180
virtual
void
storeLightData(
agxStream::StorageStream
& str )
const override
;
181
185
virtual
void
restoreLightData(
agxStream::StorageStream
& str )
override
;
186
187
protected
:
191
Deformable1D
();
192
196
virtual
~
Deformable1D
();
197
201
virtual
agxModel::Tree
* clone()
override
;
202
206
virtual
void
removeNotification(
agxSDK::Simulation
* simulation )
override
;
207
using
agxSDK::Assembly::removeNotification
;
208
209
virtual
void
pre()
override
;
210
virtual
void
post()
override
;
211
212
friend
class
NodeListener;
216
virtual
void
onCreate(
agxModel::Deformable1DNode
* node );
217
218
protected
:
219
void
prepareForSolve(
agxModel::Deformable1DNode
* node )
const
;
220
221
protected
:
222
Deformable1DRouteRef
m_route
;
223
Deformable1DGeometryFactoryRef
m_geometryFactory
;
224
Deformable1DBulkPropertiesRef
m_bulkProperties
;
225
Deformable1DInitializationReport
m_initializationReport
;
226
227
Deformable1DComponentRefVector
m_components
;
228
};
229
}
230
231
#endif // AGXMODEL_DEFORMABLE1D_H
agxTerrain::Profiler::clear
AGXTERRAIN_EXPORT void clear()
agxModel::Deformable1DInitializationReport
Initialization report kept in Deformable1D object for the user to check validity of the initial state...
Definition:
Deformable1DRoute.h:32
Deformable1DRoute.h
Deformable1DGeometryFactory.h
agx::Bool
bool Bool
Definition:
Integer.h:48
agxModel::Deformable1D::m_components
Deformable1DComponentRefVector m_components
Definition:
Deformable1D.h:227
agxSDK::Assembly::removeNotification
virtual void removeNotification(agxSDK::Simulation *)
Called when this assembly is removed from a simulation.
Definition:
Assembly.h:621
agxModel::Deformable1DIterator
Definition:
Deformable1DIterator.h:24
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition:
Referenced.h:254
agxModel::Deformable1DRoute
Base class for routing algorithms holding all nodes and resolution.
Definition:
Deformable1DRoute.h:101
agxModel::Deformable1D::m_route
Deformable1DRouteRef m_route
Definition:
Deformable1D.h:222
Deformable1DBulkProperties.h
agxModel::Deformable1DBulkProperties
Class containing and updating material properties of a Deformable1D object.
Definition:
Deformable1DBulkProperties.h:39
agxModel::Deformable1DComponent
Base class for all classes that add behavior to or inspect a Deformable1D.
Definition:
Deformable1DComponent.h:42
agxModel::NodeAttachment
Base class for attachments to Deformable1D nodes.
Definition:
Deformable1DAttachment.h:36
agxModel
Contain classes for higher level modeling primitives, such as Tree, Terrain etc.
Definition:
FlowUnit.h:36
agx::Vector< Deformable1DComponentRef >
agxModel::Deformable1D
One dimensional deformable construction, i.e., objects attached successively.
Definition:
Deformable1D.h:36
agx::UInt
uint32_t UInt
Definition:
Integer.h:34
agxModel::Deformable1D::m_initializationReport
Deformable1DInitializationReport m_initializationReport
Definition:
Deformable1D.h:225
agxModel::Deformable1D::m_geometryFactory
Deformable1DGeometryFactoryRef m_geometryFactory
Definition:
Deformable1D.h:223
agx::ref_ptr< Deformable1DRoute >
agxModel::Tree
Tree is a structure of Branch objects in a mathematical Tree structure where a Branch can have severa...
Definition:
agxModel/Tree.h:39
Deformable1DNode.h
agx::RigidBody
The rigid body class, combining a geometric model and a frame of reference.
Definition:
RigidBody.h:54
Deformable1DComponent.h
agxStream::StorageStream
Abstract base class for storing/restoring a line/drums with version control.
Definition:
StorageStream.h:48
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
agxSDK::Simulation
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Definition:
Simulation.h:126
Deformable1DIterator.h
AGXMODEL_EXPORT
#define AGXMODEL_EXPORT
Definition:
agxModel/export.h:42
agxModel::Deformable1DGeometryFactory
Geometry factory is an object that spawns geometries for a Deformable1D object.
Definition:
Deformable1DGeometryFactory.h:40
agxModel::Deformable1D::m_bulkProperties
Deformable1DBulkPropertiesRef m_bulkProperties
Definition:
Deformable1D.h:224
agxModel::Deformable1DNode
Special node implementation of segments in e.g., a Deformable1D object.
Definition:
Deformable1DNode.h:36
include
agxModel
Deformable1D.h
Generated on Sun Jan 28 2024 11:19:25 for AGX Dynamics by
1.8.13