Computer Assited Medical Intervention Tool Kit  version 4.0
AnimationMotorAddon.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * $CAMITK_LICENCE_BEGIN$
3  *
4  * CamiTK - Computer Assisted Medical Intervention ToolKit
5  * (c) 2001-2016 Univ. Grenoble Alpes, CNRS, TIMC-IMAG UMR 5525 (GMCAO)
6  *
7  * Visit http://camitk.imag.fr for more information
8  *
9  * This file is part of CamiTK.
10  *
11  * CamiTK is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * CamiTK is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU Lesser General Public License version 3 for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public License
21  * version 3 along with CamiTK. If not, see <http://www.gnu.org/licenses/>.
22  *
23  * $CAMITK_LICENCE_END$
24  ****************************************************************************/
25 
26 #ifndef LOADSANIMATIONMOTORADDON_H
27 #define LOADSANIMATIONMOTORADDON_H
28 
29 #include "PMComponentAPI.h"
30 
31 class Loads;
32 class LoadsManager;
33 class QWidget;
34 class QString;
36 
38 typedef AnimationMotorAddon * (*PtrToAnimationMotorAddon)(LoadsManager *);
39 
40 
53 public:
54 
57 
59  virtual ~AnimationMotorAddon() {};
60 
61 // virtual void clear()=0;
62 
67  virtual QWidget * getMotorWidget();
68 
70  virtual void restart() = 0;
71 
106  virtual Loads * doMove(double dt, double forcedTime=0.0) = 0;
107 
109  virtual double getTime() const = 0;
110 
112  virtual QString getDescription() = 0;
113 
115  virtual void setBoundaryConditions(Loads *);
116 
117 protected:
118  // the load manager
120 
121  // the boundary conditions
123 };
124 
125 
126 #endif
#define PHYSICALMODEL_COMPONENT_API
Definition: PMComponentAPI.h:54
This class makes it possible to manage a list of "Load".
Definition: Loads.h:71
Loads * boundaryConditions
Definition: AnimationMotorAddon.h:122
This class manages the applied all loads (see LML), deformation add-on, atom data monitoring and atom...
Definition: LoadsManager.h:69
LoadsManager * myLM
Definition: AnimationMotorAddon.h:119
virtual ~AnimationMotorAddon()
default virtual destructor
Definition: AnimationMotorAddon.h:59
The Animation Motor addon class.
Definition: AnimationMotorAddon.h:52