iMSTK
Interactive Medical Simulation Toolkit
imstkSphObject.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 "imstkDynamicObject.h"
10 #include "imstkMacros.h"
11 
12 namespace imstk
13 {
14 class SphModel;
15 
22 class SphObject : public DynamicObject
23 {
24 public:
25  SphObject(const std::string& name = "SphObject") : DynamicObject(name) { }
26  ~SphObject() override = default;
27 
28  IMSTK_TYPE_NAME(SphObject)
29 
30 
31  std::shared_ptr<SphModel> getSphModel();
34 
38  bool initialize() override;
39 
40 protected:
41  std::shared_ptr<SphModel> m_sphModel = nullptr;
42 };
43 } // namespace imstk
Base class for scene objects that move and/or deform.
Compound Geometry.
Base class for scene objects that move and/or deform under smooth particle hydrodynamics.
bool initialize() override
Initialize the SphObject.
std::shared_ptr< SphModel > getSphModel()
Get the model governing the Sph fluid dynamics of this object.