ESyS-Particle  2.3
SimpleSpherePy.h
Go to the documentation of this file.
1 // //
3 // Copyright (c) 2003-2014 by The University of Queensland //
4 // Centre for Geoscience Computing //
5 // http://earth.uq.edu.au/centre-geoscience-computing //
6 // //
7 // Primary Business: Brisbane, Queensland, Australia //
8 // Licensed under the Open Software License version 3.0 //
9 // http://www.opensource.org/licenses/osl-3.0.php //
10 // //
12 
13 
14 #ifndef ESYS_LSM_SIMPLEPARTICLEPY_H
15 #define ESYS_LSM_SIMPLEPARTICLEPY_H
16 
19 
20 namespace esys
21 {
22  namespace lsm
23  {
25  {
26  public:
28  const Vec3Py &centre,
29  double radius,
30  int id = 0,
31  int tag = 0,
32  double mass = -1.0 // indicates use of default mass
33  );
34 
36  int id,
37  const Vec3Py &posn,
38  double radius,
39  double mass
40  );
41 
42  SimpleSpherePy(const SimpleSpherePy &particle);
43 
44  bool operator==(const SimpleSpherePy &p) const;
45 
46  Vec3Py getPosnPy() const;
47 
48  void setPosnPy(const Vec3Py posn);
49 
50  void translateByPy(const Vec3Py &translation);
51 
52  void rigidRotatePy(const Vec3Py &axis, const Vec3Py &pt);
53 
55  };
56 
57  void exportSimpleSphere();
58  }
59 }
60 
61 #endif
void translateByPy(const Vec3Py &translation)
Definition: SimpleSpherePy.cpp:71
Vec3Py getPosnPy() const
Definition: SimpleSpherePy.cpp:66
void exportSimpleSphere()
Definition: SimpleSpherePy.cpp:100
Definition: SimpleSpherePy.h:24
Definition: CheckPointable.cpp:16
static SimpleSpherePy INVALID
Definition: SimpleSpherePy.h:54
bool operator==(const SimpleSpherePy &p) const
Definition: SimpleSpherePy.cpp:61
SimpleSpherePy(const Vec3Py &centre, double radius, int id=0, int tag=0, double mass=-1.0)
Definition: SimpleSpherePy.cpp:23
Definition: Vec3Py.h:28
void setPosnPy(const Vec3Py posn)
Definition: SimpleSpherePy.cpp:56
void rigidRotatePy(const Vec3Py &axis, const Vec3Py &pt)
Definition: SimpleSpherePy.cpp:76
Definition: SimpleParticle.h:24