ESyS-Particle
2.2
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
SimpleSpherePy.h
Go to the documentation of this file.
1
2
// //
3
// Copyright (c) 2003-2013 by The University of Queensland //
4
// Earth Systems Science Computational Centre (ESSCC) //
5
// http://www.uq.edu.au/esscc //
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
17
#include <
Geometry/SimpleParticle.h
>
18
#include "
Python/esys/lsm/util/Vec3Py.h
"
19
20
namespace
esys
21
{
22
namespace
lsm
23
{
24
class
SimpleSpherePy
:
public
SimpleParticle
25
{
26
public
:
27
SimpleSpherePy
(
28
const
Vec3Py
¢re,
29
double
radius,
30
int
id
= 0,
31
int
tag = 0,
32
double
mass = -1.0
// indicates use of default mass
33
);
34
35
SimpleSpherePy
(
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
54
static
SimpleSpherePy
INVALID
;
55
};
56
57
void
exportSimpleSphere
();
58
}
59
}
60
61
#endif
Python
esys
lsm
geometry
SimpleSpherePy.h
Generated on Mon May 6 2013 23:26:31 for ESyS-Particle by
1.8.3.1