AGXDynamics  2.35.0.3
CableSegment.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2022. 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/LinkedSegment.h>
20 
21 #include <agxCable/Attachment.h>
22 #include <agxCable/export.h>
23 
24 
25 namespace agxCollide
26 {
27  class Geometry;
28 }
29 
30 
31 namespace agxCable
32 {
33  class Cable;
34 }
35 
36 
37 namespace agxCable
38 {
41 
46  {
47  public:
54 
62  agx::Real getBendTension();
63 
71  agx::Real getTwistTension();
72 
73 
81  agx::Real getStretchTension();
82 
86  agxCable::Cable* getCable() const;
87 
94  agxCollide::Geometry* getGeometry() const;
95 
107  bool add(agxCable::SegmentAttachment* attachment);
108 
112  const agxCable::SegmentAttachmentRefVector& getAttachments() const;
113 
119  bool giveAttachmentsTo(CableSegment* other);
120 
121 
123  public:
128  CableSegment(agx::RigidBody* body, const agx::Vec3& halfExtents, agx::Constraint* constraint);
131 
132  protected:
133  CableSegment();
134  ~CableSegment();
135 
136  private:
137  friend class Cable;
138  void setHalfExtents(const agx::Vec3& halfExtents);
139  void createGeometry(agx::Real length, agx::Real radius);
140 
141  private:
143  };
144 }
agxCable::SegmentAttachment
Definition: able/Attachment.h:49
agx::Real
double Real
Definition: Real.h:42
export.h
agxData::transform
void AGXCORE_EXPORT transform(void *target, const Format *targetFormat, const void *source, const Format *sourceFormat, size_t numElements)
Transform data between two buffers.
agx::Vector< SegmentAttachmentRef >
agx::RigidBody
The rigid body class, combining a geometric model and a frame of reference.
Definition: RigidBody.h:54
DOXYGEN_END_INTERNAL_BLOCK
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition: macros.h:97
agx::AffineMatrix4x4T< Real >
agxCable
Contain classes for 6 DOF lumped element cables/wires/ropes.
Definition: able/Attachment.h:36
DOXYGEN_START_INTERNAL_BLOCK
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: macros.h:96
agxCable::Cable
A model of a cable using a lumped elements model.
Definition: Cable.h:43
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
AGXCABLE_EXPORT
#define AGXCABLE_EXPORT
Definition: agxCable/export.h:41
AGX_DECLARE_VECTOR_TYPES
#define AGX_DECLARE_VECTOR_TYPES(type)
Definition: Vector.h:34
agxCollide::Geometry
The geometry representation used by the collision detection engine.
Definition: Geometry.h:92
Attachment.h
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:248
agxCollide
This namespace consists of a set of classes for handling geometric intersection tests including boole...
Definition: ContactForceFilterParticipant.h:22
agxCable::CableSegment
A CableSegment represents a single link of a cable.
Definition: CableSegment.h:45
agx::Constraint
The base class for a constraint.
Definition: Constraint.h:88
agxSDK::LinkedSegment
Segment object in a linked structure.
Definition: LinkedSegment.h:38
agx::Vec3T< Real >
LinkedSegment.h