AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
InterpolationController.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
19
20#ifndef AGXCONTROL_INTERPOLATION_CONTROLLER_H
21#define AGXCONTROL_INTERPOLATION_CONTROLLER_H
22
23#include <agx/config.h>
24
25#include <agx/Referenced.h>
27
28namespace agxControl
29{
30 AGX_DECLARE_POINTER_TYPES(InterpolationController);
31
32
33 class AGXPHYSICS_EXPORT InterpolationController : public agx::Referenced, public agxStream::Serializable
34 {
35 public:
36 virtual agx::Real interpolate(agx::Real startValue, agx::Real endValue, agx::Real startTime, agx::Real endTime, agx::Real time) = 0;
37
38 AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE( agxControl::InterpolationController );
39
40 protected:
41 virtual ~InterpolationController() {}
42 };
43
44
45 AGX_DECLARE_POINTER_TYPES(LinearInterpolationController);
46 class AGXPHYSICS_EXPORT LinearInterpolationController : public agxControl::InterpolationController
47 {
48 public:
49 virtual agx::Real interpolate(agx::Real startValue, agx::Real endValue, agx::Real startTime, agx::Real endTime, agx::Real time) override;
50 AGXSTREAM_DECLARE_SERIALIZABLE( agxControl::LinearInterpolationController );
51
52 protected:
53 virtual ~LinearInterpolationController() {}
54 };
55
56 AGX_DECLARE_POINTER_TYPES(HermiteInterpolationController);
57 class AGXPHYSICS_EXPORT HermiteInterpolationController : public agxControl::InterpolationController
58 {
59 public:
60 virtual agx::Real interpolate(agx::Real startValue, agx::Real endValue, agx::Real startTime, agx::Real endTime, agx::Real time) override;
61 agx::Real interpolate(agx::Real startValue, agx::Real endValue, agx::Real startTime, agx::Real endTime, agx::Real time, agx::Real startSlope, agx::Real endSlope);
62 AGXSTREAM_DECLARE_SERIALIZABLE( agxControl::HermiteInterpolationController );
63
64 protected:
65 virtual ~HermiteInterpolationController() {}
66 };
67}
68
69// Include guard
70#endif
71
73
#define AGX_DECLARE_POINTER_TYPES(type)
Definition Referenced.h:254
#define AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(T)
Use this in a pure abstract Serializable class to add the required methods Important: Use full namesp...
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
#define AGXPHYSICS_EXPORT
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Base class providing referencing counted objects.
Definition Referenced.h:120
This namespace contains general operation and action classes which can be used to control a agxSDK::S...
double Real
Definition Real.h:42