iMSTK
Interactive Medical Simulation Toolkit
imstkAnimationModel.h
1 /*
2 ** This file is part of the Interactive Medical Simulation Toolkit (iMSTK)
3 ** iMSTK is distributed under the Apache License, Version 2.0.
4 ** See accompanying NOTICE for details.
5 */
6 
7 #pragma once
8 
9 #include "imstkGeometry.h"
10 
11 namespace imstk
12 {
19 {
20 public:
21  AnimationModel(std::shared_ptr<Geometry> geometry);
22  AnimationModel() = delete;
23 
27  std::shared_ptr<Geometry> getGeometry();
28  virtual void setGeometry(std::shared_ptr<Geometry> geometry);
30 
34  virtual void update() {};
35 
39  virtual void reset() {};
40 
41 protected:
42  std::shared_ptr<Geometry> m_geometry = nullptr;
43 };
44 } // namespace imstk
Compound Geometry.
virtual void update()
Update animation.
virtual void reset()
Reset animation.
Contains geometric and animation render information.
std::shared_ptr< Geometry > getGeometry()
Get/set geometry.