|
| Dla2 (const double &) |
| Create the diffuse limited aggregation structure.
|
|
| Dla2 (const Circle2 &, const double &) |
| Create a diffuse limited aggregation structure.
|
|
| Dla2 (const Circle2 &, const QVector< Vector2 > &, const double &) |
| Create a diffuse limited aggregation structure.
|
|
| ~Dla2 () |
| Empty.
|
|
void | Add () |
| Add a new particle to the cluster.
|
|
void | AddBorder () |
| Add a new particle to the cluster.
|
|
void | Step (int) |
| Add several particles to the cluster.
|
|
void | Extend (const double &) |
| Extend the radius of the simulation.
|
|
void | Agregate (const Vector2 &) |
| Perform a random walk from an initial position, and aggregate particle if it hits the cluster.
|
|
QVector< int > | GetIndices () const |
| Return the indices.
|
|
Box2 | GetBox () const |
| Return the bounding box of the cluster.
|
|
void | Draw (QGraphicsScene &) const |
| Draw the cluster.
|
|
bool | Hit (const Vector2 &, int &) const |
| Detect the intersection between a disc and the cluster.
|
|
bool | Hit (const Vector2 &) const |
| Detect the intersection between a disc and the cluster.
|
|
Public Member Functions inherited from ParticleSet2 |
| ParticleSet2 () |
| Empty constructor.
|
|
| ParticleSet2 (const double &) |
| Create an empty set of particles.
|
|
| ParticleSet2 (const Vector2 &, const double &) |
| Create a set of particles.
|
|
| ParticleSet2 (const QVector< Vector2 > &, const double &) |
| Create a set of particles.
|
|
int | Size () const |
| Return the number of particles.
|
|
Circle2 | At (int) const |
| Get the k-th particle.
|
|
double | Radius () const |
| Return the radius of the particles.
|
|
QVector< Vector2 > | GetCenters () const |
| Return the centers of the particles.
|
|
Circle2 | GetCircle () const |
| Computes the bounding circle of the centers of the particles.
|
|
Box2 | GetBox () const |
| Computes the bounding box of the centers of the particles.
|
|
void | Append (const Vector2 &) |
| Add a new particle to the set.
|
|
bool | Intersect (const Circle2 &) const |
| Check the intersection between the cluster and a circle.
|
|
bool | Intersect (const Box2 &) const |
| Check the intersection between the cluster and a box.
|
|
void | Draw (QGraphicsScene &, const QPen &=QPen(QColor(150, 150, 200), 0.025), const QBrush &=QBrush(QColor(200, 200, 250))) const |
| Draw the set of particles.
|
|
A diffusion limited aggregation class.