Go to the documentation of this file.
20 #include <boost/limits.hpp>
26 template <
typename TmplParticle>
28 : m_particlePoolPtr(),
34 template <
typename TmplParticle>
38 : m_particlePoolPtr(particlePoolPtr),
43 template <
typename TmplParticle>
45 : m_particlePoolPtr(p.m_particlePoolPtr),
46 m_particleVector(p.m_particleVector)
50 template <
typename TmplParticle>
58 template <
typename TmplParticle>
62 m_particleVector.push_back(&p);
65 template <
typename TmplParticle>
69 if (m_particlePoolPtr->is_from(&p))
77 "ParticleCollection<TmplParticle>::insertRef: Tried to insert"
78 " reference to non-created particle."
83 template <
typename TmplParticle>
87 Particle *newP = m_particlePoolPtr->construct(p);
88 noCheckInsertRef(*newP);
92 template <
typename TmplParticle>
97 template <
typename TmplParticle>
100 return m_particleVector.size();
103 template <
typename TmplParticle>
113 template <
typename TmplParticle>
115 const Vec3 &rotation,
122 it.
next().rotate(rotation, posn);
126 template <
typename TmplParticle>
128 typename Particle::Id idIncr
139 template <
typename TmplParticle>
142 Vec3 minPt =
Vec3(std::numeric_limits<double>::max());
144 ParticleConstIterator it = getParticleIterator();
double getRad() const
Definition: SimpleParticle.hpp:70
void rotate(const Vec3 &rotation, const Vec3 &posn)
Definition: ParticleCollection.hpp:114
void setId(const Id &id)
Definition: SimpleParticleData.hpp:99
void translateBy(const Vec3 &v)
Definition: SimpleParticle.hpp:45
virtual ~ParticleCollection()
Definition: ParticleCollection.hpp:93
void noCheckInsertRef(Particle &p)
Definition: ParticleCollection.hpp:60
boost::object_pool< Particle > ParticlePool
Definition: ParticleCollection.h:38
Particle & createParticle(const Particle &p)
Definition: ParticleCollection.hpp:85
void translateBy(const Vec3 &vec)
Definition: ParticleCollection.hpp:104
Definition: SimpleSpherePy.h:25
const Vec3 & getPos() const
Definition: SimpleParticle.hpp:30
void incrementIdBy(typename Particle::Id idIncr)
Definition: ParticleCollection.hpp:127
bool hasNext() const
Definition: StlIterator.h:48
Definition: ParticleCollection.h:49
Id getId() const
Definition: SimpleParticleData.hpp:94
void insertRef(Particle &p)
Definition: ParticleCollection.hpp:67
VEC3_INLINE Vec3 cmax(const Vec3 &v1, const Vec3 &v2)
Definition: vec3.hpp:231
const SimpleParticle & next()
Definition: VtkXmlWriter.cpp:129
3D bounding box
Definition: BoundingBox.h:28
Definition: CheckPointable.cpp:17
boost::shared_ptr< ParticlePool > ParticlePoolPtr
Definition: ParticleCollection.h:39
ParticleVector m_particleVector
Definition: ParticleCollection.h:162
int getNumParticles() const
Definition: ParticleCollection.hpp:98
ParticleCollection & operator=(const ParticleCollection &p)
Definition: ParticleCollection.hpp:52
value_type next()
Definition: ParticleCollection.h:57
BoundingBox getParticleBBox() const
Definition: ParticleCollection.hpp:140
VEC3_INLINE Vec3 cmin(const Vec3 &v1, const Vec3 &v2)
Definition: vec3.hpp:240
ParticlePoolPtr m_particlePoolPtr
Definition: ParticleCollection.h:161
TmplParticle Particle
Definition: ParticleCollection.h:37
Definition: GeometryReader.h:41
Definition: ParticleCollection.h:35
ParticleCollection()
Definition: ParticleCollection.hpp:27
bool hasNext() const
Definition: VtkXmlWriter.cpp:124