AGX Dynamics  2.37.2.0
SurfaceVelocityConveyorBelt.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 #pragma once
18 
19 #include <agxModel/export.h>
20 #include <agxCollide/Geometry.h>
21 #include <agxCollide/Contacts.h>
23 #include <agx/Plane.h>
24 
25 #include <agx/debug.h>
26 #include <agx/Vector.h>
27 #include <agx/Vec3.h>
28 
29 namespace agxCollide
30 {
31  class Trimesh;
32 }
33 
34 
35 namespace agxSDK
36 {
37  class Simulation;
38 }
39 
40 namespace agxModel
41 {
43 
59  {
60  public:
61 
63 
69 
78  virtual agx::Vec3f calculateSurfaceVelocity( const agxCollide::LocalContactPoint& point, size_t index ) const override;
79 
84  const agx::Vec3Vector& getPoints() const;
85 
92  const agx::Vec3Vector& getUnitDirs() const;
93 
95  void setSpeed(agx::Real speed);
96 
98  agx::Real getSpeed() const;
99 
108  bool enableDebugRendering(agxSDK::Simulation* sim);
109 
114  bool disableDebugRendering();
115 
117  bool getEnableDebugRendering() const;
118 
125  static SurfaceVelocityConveyorBelt* find(agxSDK::Simulation* simulation, const agx::Name& name );
126 
133  static SurfaceVelocityConveyorBelt* find(agxSDK::Simulation* simulation, const agx::Uuid& uuid);
134 
141  static SurfaceVelocityConveyorBeltPtrVector findAll(agxSDK::Simulation* simulation, const agx::Name& name);
142 
143 
145 
146  protected:
147  virtual ~SurfaceVelocityConveyorBelt();
149 
150  private:
151  agx::Vec3Vector m_points;
152  agx::Vec3Vector m_unitDirs;
153  agx::Real m_speed;
154  bool m_enableDebugRendering;
155  agxSDK::StepEventListenerRef m_debugRenderListener;
156  };
157 }
This namespace consists of a set of classes for handling geometric intersection tests including boole...
Representation of a name string.
Definition: Name.h:32
Contain classes for higher level modeling primitives, such as Tree, Terrain etc.
Definition: FlowUnit.h:36
The geometry representation used by the collision detection engine.
Definition: Geometry.h:92
Templated vector class.
Definition: Vector.h:52
This class models a conveyor belt using surface velocity.
#define CALLABLE
Definition: Object.h:73
A UUID, or Universally unique identifier, is intended to uniquely identify information in a distribut...
Definition: Uuid.h:41
#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
agx::Vector< SurfaceVelocityConveyorBelt * > SurfaceVelocityConveyorBeltPtrVector
#define AGXMODEL_EXPORT
double Real
Definition: Real.h:42
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
Definition: Constraint.h:30
AGX_DECLARE_POINTER_TYPES(SpaceListener)