AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
SurfaceVelocityConveyorBelt.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
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
29namespace agxCollide
30{
31 class Trimesh;
32}
33
34
35namespace agxSDK
36{
37 class Simulation;
38}
39
40namespace agxModel
41{
43
157}
#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 AGXMODEL_EXPORT
The geometry representation used by the collision detection engine.
Definition Geometry.h:92
This class models a conveyor belt using surface velocity.
bool getEnableDebugRendering() const
Is debug rendering enabled?
static SurfaceVelocityConveyorBelt * find(agxSDK::Simulation *simulation, const agx::Name &name)
This method will do a linear search in Simulation and return a pointer to the specified SurfaceVeloci...
bool enableDebugRendering(agxSDK::Simulation *sim)
Enables debug rendering of conveyor belt.
static SurfaceVelocityConveyorBeltPtrVector findAll(agxSDK::Simulation *simulation, const agx::Name &name)
This method will do a linear search in Simulation and return a vector with pointers to all matching S...
static SurfaceVelocityConveyorBelt * find(agxSDK::Simulation *simulation, const agx::Uuid &uuid)
This method will do a linear search in Simulation and return a pointer to the specified SurfaceVeloci...
bool disableDebugRendering()
Disables the debug rendering.
agx::Real getSpeed() const
Gets the speed of the conveyor belt. Negative speed is allowed and understood as the opposite directi...
virtual agx::Vec3f calculateSurfaceVelocity(const agxCollide::LocalContactPoint &point, size_t index) const override
Calculates the surface velocity based on the location of the contact point.
const agx::Vec3Vector & getUnitDirs() const
Returns the vector of unit-length directions from point to point.
const agx::Vec3Vector & getPoints() const
Returns the vector of points.
void setSpeed(agx::Real speed)
Sets the speed of the conveyor belt. Negative speed is allowed and understood as the opposite directi...
SurfaceVelocityConveyorBelt(const agx::Vec3Vector &points)
Constructor, based on list of points.
agx::Vector< SurfaceVelocityConveyorBelt * > SurfaceVelocityConveyorBeltPtrVector
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Definition Simulation.h:126
Representation of a name string.
Definition Name.h:33
A UUID, or Universally unique identifier, is intended to uniquely identify information in a distribut...
Definition Uuid.h:42
Templated vector class.
Definition agx/Vector.h:53
#define CALLABLE
Definition macros.h:72
This namespace consists of a set of classes for handling geometric intersection tests including boole...
Contain classes for higher level modeling primitives, such as Tree, Terrain etc.
Definition FlowUnit.h:37
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
Definition Constraint.h:31
double Real
Definition Real.h:42