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 
26 
27 
28 namespace agxModel
29 {
31 
37  {
38  public:
44 
48  agxModel::Deformable1DNode* getBegin() const;
49 
53  agxModel::Deformable1DIterator getBeginIterator() const;
54 
58  agxModel::Deformable1DIterator findLastIterator() const;
59 
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 
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 
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;
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:
226 
228  };
229 }
230 
231 #endif // AGXMODEL_DEFORMABLE1D_H
AGXTERRAIN_EXPORT void clear()
Initialization report kept in Deformable1D object for the user to check validity of the initial state...
bool Bool
Definition: Integer.h:48
Deformable1DComponentRefVector m_components
Definition: Deformable1D.h:227
virtual void removeNotification(agxSDK::Simulation *)
Called when this assembly is removed from a simulation.
Definition: Assembly.h:621
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:254
Base class for routing algorithms holding all nodes and resolution.
Deformable1DRouteRef m_route
Definition: Deformable1D.h:222
Class containing and updating material properties of a Deformable1D object.
Base class for all classes that add behavior to or inspect a Deformable1D.
Base class for attachments to Deformable1D nodes.
Contain classes for higher level modeling primitives, such as Tree, Terrain etc.
Definition: FlowUnit.h:36
One dimensional deformable construction, i.e., objects attached successively.
Definition: Deformable1D.h:36
uint32_t UInt
Definition: Integer.h:34
Deformable1DInitializationReport m_initializationReport
Definition: Deformable1D.h:225
Deformable1DGeometryFactoryRef m_geometryFactory
Definition: Deformable1D.h:223
Tree is a structure of Branch objects in a mathematical Tree structure where a Branch can have severa...
Definition: agxModel/Tree.h:39
The rigid body class, combining a geometric model and a frame of reference.
Definition: RigidBody.h:54
Abstract base class for storing/restoring a line/drums with version control.
Definition: StorageStream.h:48
#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
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Definition: Simulation.h:126
#define AGXMODEL_EXPORT
Geometry factory is an object that spawns geometries for a Deformable1D object.
Deformable1DBulkPropertiesRef m_bulkProperties
Definition: Deformable1D.h:224
Special node implementation of segments in e.g., a Deformable1D object.