Generates the particles.
More...
#include <ParticleFactory.h>
List of all members.
Detailed Description
Constructor & Destructor Documentation
ParticleFactory::ParticleFactory |
( |
vl::ref< vl::Image > |
volume, |
|
|
vl::ref< vl::Image > |
gradient, |
|
|
vl::ref< vl::Image > |
curvature, |
|
|
float |
depth, |
|
|
float |
magThresh, |
|
|
int |
radius, |
|
|
int |
maxParticles |
|
) |
| |
Initializes the factory
- Parameters:
-
volume | is the volume-image |
gradient | is the gradient image |
curvature | is the curvature image |
depth | is the depth level on which the particles should be spawned |
magThresh | is a threshold on the gradient magnitude. Only if the gradient is above this threshold particles will be spawned. |
radius | is the neighbor-radius in which no other particle should be initialized |
maxParticles | is the maximum number of particles which should be generated |
ParticleFactory::~ParticleFactory |
( |
void |
| ) |
|
Member Function Documentation
void ParticleFactory::build |
( |
| ) |
|
bool ParticleFactory::containsParticle |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
z |
|
) |
| const |
|
private |
float ParticleFactory::getDepth |
( |
| ) |
const |
|
inline |
float ParticleFactory::getMagnitudeThreshold |
( |
| ) |
const |
|
inline |
int ParticleFactory::getMaxParticles |
( |
| ) |
const |
|
inline |
std::vector<std::shared_ptr<Particle> > ParticleFactory::getParticleList |
( |
| ) |
const |
|
inline |
Getters for the particles.
int ParticleFactory::getRadius |
( |
| ) |
const |
|
inline |
void ParticleFactory::setDepth |
( |
float |
d | ) |
|
|
inline |
void ParticleFactory::setMagnitudeThreshold |
( |
float |
t | ) |
|
|
inline |
void ParticleFactory::setMaxParticles |
( |
int |
p | ) |
|
|
inline |
void ParticleFactory::setRadius |
( |
int |
r | ) |
|
|
inline |
Member Data Documentation
vl::ref<vl::Image> ParticleFactory::_curvature |
|
private |
float ParticleFactory::_depth |
|
private |
vl::ref<vl::Image> ParticleFactory::_gradient |
|
private |
float ParticleFactory::_magnitudeThreshold |
|
private |
Stores the magnitude threshold.
int ParticleFactory::_maxParticles |
|
private |
Stores the maximum number of particles.
vl::ref<vl::Image> ParticleFactory::_particleImage |
|
private |
std::vector<std::shared_ptr<Particle> > ParticleFactory::_particles |
|
private |
Stores the list of particles generated.
int ParticleFactory::_radius |
|
private |
Stores the radius.
- See also:
- ParticleFactory::PraticleFactory
vl::ref<vl::Image> ParticleFactory::_volume |
|
private |
The documentation for this class was generated from the following files: