AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SurfaceVelocityConveyorBelt.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2021. 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_SURFACEVELOCITYCONVEYORBELT_H
18 #define AGXMODEL_SURFACEVELOCITYCONVEYORBELT_H
19 
20 #include <agxModel/export.h>
21 #include <agxCollide/Geometry.h>
22 #include <agxCollide/Contacts.h>
24 #include <agx/Plane.h>
25 
26 #include <agx/debug.h>
27 #include <agx/Vector.h>
28 #include <agx/Vec3.h>
29 
30 namespace agxCollide
31 {
32  class Trimesh;
33 }
34 
35 
36 namespace agxSDK
37 {
38  class Simulation;
39 }
40 
41 namespace agxModel
42 {
44 
60  {
61  public:
62 
64 
70 
79  virtual agx::Vec3f calculateSurfaceVelocity( const agxCollide::LocalContactPoint& point, size_t index ) const override;
80 
85  const agx::Vec3Vector& getPoints() const;
86 
93  const agx::Vec3Vector& getUnitDirs() const;
94 
96  void setSpeed(agx::Real speed);
97 
99  agx::Real getSpeed() const;
100 
109  bool enableDebugRendering(agxSDK::Simulation* sim);
110 
115  bool disableDebugRendering();
116 
118  bool getEnableDebugRendering() const;
119 
126  static SurfaceVelocityConveyorBelt* find(agxSDK::Simulation* simulation, const agx::Name& name );
127 
134  static SurfaceVelocityConveyorBelt* find(agxSDK::Simulation* simulation, const agx::Uuid& uuid);
135 
142  static SurfaceVelocityConveyorBeltPtrVector findAll(agxSDK::Simulation* simulation, const agx::Name& name);
143 
144 
146 
147  protected:
148  virtual ~SurfaceVelocityConveyorBelt();
150 
151  private:
152  agx::Vec3Vector m_points;
153  agx::Vec3Vector m_unitDirs;
154  agx::Real m_speed;
155  bool m_enableDebugRendering;
156  agxSDK::StepEventListenerRef m_debugRenderListener;
157  };
158 }
159 
160 #endif
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:248
Representation of a name string.
Definition: Name.h:32
The geometry representation used by the collision detection engine.
Definition: Geometry.h:88
Templated vector class.
Definition: Vector.h:52
This class models a conveyor belt using surface velocity.
#define CALLABLE
Definition: Object.h:76
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:206
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Definition: Simulation.h:121
agx::Vector< SurfaceVelocityConveyorBelt * > SurfaceVelocityConveyorBeltPtrVector
#define AGXMODEL_EXPORT
double Real
Definition: Real.h:42