| 187 | }; |
| 188 | |
| 189 | static NoiseFunction *makeVeinDistribution(t_veinkey vein, MersenneRNG &rng) |
| 190 | { |
| 191 | using namespace df::enums::inclusion_type; |
| 192 | |
| 193 | switch (vein.second) |
| 194 | { |
| 195 | case VEIN: |
| 196 | return new DistributionVein(rng); |
| 197 | case CLUSTER_SMALL: |
| 198 | return new DistributionClusterSmall(rng); |
| 199 | case CLUSTER_ONE: |
| 200 | return new DistributionClusterOne(rng); |
| 201 | case CLUSTER: |
| 202 | default: |
| 203 | return new DistributionCluster(rng); |
| 204 | } |
| 205 | } |
| 206 | |
| 207 | /* |
| 208 | * Data structures. |