12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
-
-
-
-
-
-
- #ifndef DEMPARTICLE_INC
- #define DEMPARTICLE_INC
-
- #include "LemmaObject.h"
-
- namespace Lemma {
-
-
-
- class DEMParticle : public LemmaObject {
-
- friend std::ostream &operator<<(std::ostream &stream,
- const DEMParticle &ob);
-
- public:
-
-
-
-
-
- static std::shared_ptr< DEMParticle > NewSP();
-
-
-
-
-
-
-
- void SetCentreMass( const Vector3r& pos );
-
- Vector3r GetCentreMass( );
-
-
-
- #ifdef HAVE_YAMLCPP
-
-
- YAML::Node Serialize() const;
-
-
-
- static std::shared_ptr< DEMParticle > DeSerialize(const YAML::Node& node);
- #endif
-
- protected:
-
-
-
-
- DEMParticle (const std::string& name);
-
- #ifdef HAVE_YAMLCPP
-
- DEMParticle (const YAML::Node& node);
- #endif
-
-
- ~DEMParticle ();
-
- private:
-
-
-
- Vector3r centreMass;
-
- };
-
- }
-
- #endif
|