AnimatLab  2
Test
MaterialType.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 namespace AnimatSim
10 {
11 
12  namespace Environment
13  {
20  class ANIMAT_PORT MaterialType : public AnimatBase
21  {
22  protected:
23 
24  virtual void SetMaterialProperties() = 0;
25 
36  virtual void RegisterMaterialType() = 0;
37 
38  public:
39  MaterialType();
40  virtual ~MaterialType();
41 
42  static MaterialType *CastToDerived(AnimatBase *lpBase) {return static_cast<MaterialType*>(lpBase);}
43 
56  virtual int GetMaterialID(std::string strName) = 0;
57 
58  virtual void CreateDefaultUnits() = 0;
59  };
60 
61  } // Visualization
62 } //VortexAnimatSim
Root namespace for the base simulation library for AnimatLab.
Animat base class.
Definition: AnimatBase.h:36