AGX Dynamics  2.38.0.2
Deformable1DSegment.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_DEFORMABLE1DSEGMENT_H
18 #define AGXMODEL_DEFORMABLE1DSEGMENT_H
19 
20 #include <agxModel/export.h>
21 
22 #include <agx/AffineMatrix4x4.h>
23 
24 namespace agxModel
25 {
26  AGX_DECLARE_POINTER_TYPES( Deformable1DNode );
27 
43  {
44  public:
49  Segment( agxModel::Deformable1DNode* beginNode );
50 
54  ~Segment();
55 
59  agx::Bool isValid() const;
60 
64  agx::Bool isEnd() const;
65 
69  agx::Vec3 getPositionBegin() const;
70 
74  agx::Vec3 getPositionEnd() const;
75 
79  agx::AffineMatrix4x4 getTransformBegin() const;
80 
84  agx::AffineMatrix4x4 getTransformEnd() const;
85 
89  agx::Quat getRotation() const;
90 
91  protected:
92  Segment();
93 
94  protected:
96  };
97 }
98 
99 #endif // AGXMODEL_DEFORMABLE1DSEGMENT_H
agxModel
Contain classes for higher level modeling primitives, such as Tree, Terrain etc.
Definition: FlowUnit.h:36
export.h
agx::AffineMatrix4x4T< Real >
agx::observer_ptr< Deformable1DNode >
AffineMatrix4x4.h
agxModel::Segment::m_node
agxModel::Deformable1DNodeObserver m_node
Definition: Deformable1DSegment.h:95
agx::QuatT< Real >
agxModel::Segment
A Deformable1D segment is the segment between two nodes, or if this is the last segment,...
Definition: Deformable1DSegment.h:42
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:254
agx::Bool
bool Bool
Definition: Integer.h:40
AGXMODEL_EXPORT
#define AGXMODEL_EXPORT
Definition: agxModel/export.h:42
agx::Vec3T< Real >
agxModel::Deformable1DNode
Special node implementation of segments in e.g., a Deformable1D object.
Definition: Deformable1DNode.h:36