iMSTK
Interactive Medical Simulation Toolkit
imstkAnimationObject.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 "imstkMacros.h"
10 #include "imstkSceneObject.h"
11 
12 namespace imstk
13 {
14 class Geometry;
15 class AnimationModel;
16 
21 {
22 public:
23  AnimationObject(const std::string& name = "AnimationObject") : SceneObject(name) { }
24  ~AnimationObject() override = default;
25 
26  IMSTK_TYPE_NAME(AnimationObject)
27 
28 
29  std::shared_ptr<AnimationModel> getAnimationModel() const;
32  void setAnimationModel(std::shared_ptr<AnimationModel> model);
34 
38  virtual bool initialize() override
39  {
41  {
42  return true;
43  }
44  else
45  {
46  return false;
47  }
48  }
49 
50 protected:
51  std::shared_ptr<AnimationModel> m_animationModel;
52 };
53 } // namespace imstk
Compound Geometry.
virtual bool initialize() override
Initialize the scene object.
virtual bool initialize()
Initialize the scene object.
Base class for all scene objects. A scene object can optionally be visible and collide with other sce...
std::shared_ptr< AnimationModel > getAnimationModel() const
Set/Get animation model.