AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
CableSegment.h
Go to the documentation of this file.
1/*
2Copyright 2007-2024. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16
17#pragma once
18
20
21#include <agxCable/Attachment.h>
22#include <agxCable/export.h>
23
24
25namespace agxCollide
26{
27 class Geometry;
28}
29
30
31namespace agxCable
32{
33 class Cable;
34}
35
36
37namespace agxCable
38{
41
46 {
47 public:
54
63
72
73
82
87
95
108
113
120
121
123 public:
128 CableSegment(agx::RigidBody* body, const agx::Vec3& halfExtents, agx::Constraint* constraint);
131
132 protected:
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}
#define AGX_DECLARE_POINTER_TYPES(type)
Definition Referenced.h:254
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
#define AGXCABLE_EXPORT
#define AGX_DECLARE_VECTOR_TYPES(type)
Definition agx/Vector.h:34
A CableSegment represents a single link of a cable.
const agxCable::SegmentAttachmentRefVector & getAttachments() const
bool add(agxCable::SegmentAttachment *attachment)
Attach this cable segment to a RigidBody using the given attachment.
bool giveAttachmentsTo(CableSegment *other)
Transfer all attachments added to this cable segment to the given segment.
agx::Real getStretchTension()
The translational force of the constraint linking this segment to the previous one.
agxCable::Cable * getCable() const
CableSegment(const agx::AffineMatrix4x4 &transform)
Create a cable segment with its begin position at the given placement.
agx::Real getBendTension()
The bend rotational force of the constraint linking this segment to the previous one.
agxCollide::Geometry * getGeometry() const
Get the collision geometry for this segment.
agx::Real getTwistTension()
The twist rotational force of the constraint linking this segment to the previous one.
A model of a cable using a lumped elements model.
Definition Cable.h:44
The geometry representation used by the collision detection engine.
Definition Geometry.h:92
Segment object in a linked structure.
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition macros.h:97
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition macros.h:96
Contain classes for 6 DOF lumped element cables/wires/ropes.
This namespace consists of a set of classes for handling geometric intersection tests including boole...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
double Real
Definition Real.h:42