@@ -225,7 +225,7 @@ void QtSLiMChromosomeWidget::glDrawMutations(QRect &interiorRect, Chromosome *ch
225225 // FIXME MULTITRAIT: should be a way to choose which trait is being used for colors in the chromosome view!
226226 MutationTraitInfo *mut_trait_info = mutation_block->TraitInfoForMutation (mutation);
227227
228- RGBForSelectionCoeff (static_cast <double >(mut_trait_info[0 ].effect_size_ ), &colorRed, &colorGreen, &colorBlue, scalingFactor);
228+ RGBForEffectSize (static_cast <double >(mut_trait_info[0 ].effect_size_ ), &colorRed, &colorGreen, &colorBlue, scalingFactor);
229229 }
230230
231231 int height_adjust = mutationTickRect.height () - static_cast <int >(ceil ((mutationRefCount / totalHaplosomeCount) * interiorRect.height ()));
@@ -241,9 +241,9 @@ void QtSLiMChromosomeWidget::glDrawMutations(QRect &interiorRect, Chromosome *ch
241241 {
242242 // We have a lot of mutations, so let's try to be smarter. It's hard to be smarter. The overhead from allocating the NSColors and such
243243 // is pretty negligible; practially all the time is spent in NSRectFill(). Unfortunately, NSRectFillListWithColors() provides basically
244- // no speedup; Apple doesn't appear to have optimized it. So, here's what I came up with. For each mutation type that uses a fixed DFE ,
244+ // no speedup; Apple doesn't appear to have optimized it. So, here's what I came up with. For each mutation type that uses a fixed DES ,
245245 // and thus a fixed color, we can do a radix sort of mutations into bins corresponding to each pixel in our displayed image. Then we
246- // can draw each bin just once, making one bar for the highest bar in that bin. Mutations from non-fixed DFEs , and mutations which have
246+ // can draw each bin just once, making one bar for the highest bar in that bin. Mutations from non-fixed DESs , and mutations which have
247247 // had their selection coefficient changed, will be drawn at the end in the usual (slow) way.
248248 int displayPixelWidth = interiorRect.width ();
249249 int16_t *heightBuffer = static_cast <int16_t *>(malloc (static_cast <size_t >(displayPixelWidth) * sizeof (int16_t )));
@@ -261,22 +261,22 @@ void QtSLiMChromosomeWidget::glDrawMutations(QRect &interiorRect, Chromosome *ch
261261 for (auto mutationTypeIter : mut_types)
262262 {
263263 MutationType *mut_type = mutationTypeIter.second ;
264- EffectDistributionInfo &ed_info = mut_type->effect_distributions_ [0 ]; // FIXME MULTITRAIT
264+ EffectDistributionInfo &DES_info = mut_type->effect_distributions_ [0 ]; // FIXME MULTITRAIT
265265
266266 if (mut_type->mutation_type_displayed_ )
267267 {
268268 if (draw_muttypes_sequentially)
269269 {
270270 bool mut_type_fixed_color = !mut_type->color_ .empty ();
271271
272- // We optimize fixed-DFE mutation types only, and those using a fixed color set by the user
273- if ((ed_info. dfe_type_ == DFEType ::kFixed ) || mut_type_fixed_color)
272+ // We optimize fixed-DES mutation types only, and those using a fixed color set by the user
273+ if ((DES_info. DES_type_ == DESType ::kFixed ) || mut_type_fixed_color)
274274 {
275- slim_effect_t mut_type_selcoeff = (mut_type_fixed_color ? 0.0 : static_cast <slim_effect_t >(ed_info. dfe_parameters_ [0 ]));
275+ slim_effect_t mut_type_effect = (mut_type_fixed_color ? 0.0 : static_cast <slim_effect_t >(DES_info. DES_parameters_ [0 ]));
276276
277277 EIDOS_BZERO (heightBuffer, static_cast <size_t >(displayPixelWidth) * sizeof (int16_t ));
278278
279- // Scan through the mutation list for mutations of this type with the right selcoeff
279+ // Scan through the mutation list for mutations of this type with the right effect
280280 for (int mutation_index = 0 ; mutation_index < (int )mutations.size (); ++mutation_index)
281281 {
282282 const Mutation *mutation = mutations[mutation_index];
@@ -285,11 +285,11 @@ void QtSLiMChromosomeWidget::glDrawMutations(QRect &interiorRect, Chromosome *ch
285285#pragma GCC diagnostic ignored "-Wfloat-equal"
286286#pragma clang diagnostic push
287287#pragma clang diagnostic ignored "-Wfloat-equal"
288- // We do want to do an exact floating-point equality compare here; we want to see whether the mutation's selcoeff is unmodified from the fixed DFE
288+ // We do want to do an exact floating-point equality compare here; we want to see whether the mutation's effect is unmodified from the fixed DES
289289 // FIXME MULTITRAIT: should be a way to choose which trait is being used for colors in the chromosome view!
290290 MutationTraitInfo *mut_trait_info = mutation_block->TraitInfoForMutation (mutation);
291291
292- if ((mutation->mutation_type_ptr_ == mut_type) && (mut_type_fixed_color || (mut_trait_info[0 ].effect_size_ == mut_type_selcoeff )))
292+ if ((mutation->mutation_type_ptr_ == mut_type) && (mut_type_fixed_color || (mut_trait_info[0 ].effect_size_ == mut_type_effect )))
293293#pragma clang diagnostic pop
294294#pragma GCC diagnostic pop
295295 {
@@ -320,7 +320,7 @@ void QtSLiMChromosomeWidget::glDrawMutations(QRect &interiorRect, Chromosome *ch
320320 }
321321 else
322322 {
323- RGBForSelectionCoeff (static_cast <double >(mut_type_selcoeff ), &colorRed, &colorGreen, &colorBlue, scalingFactor);
323+ RGBForEffectSize (static_cast <double >(mut_type_effect ), &colorRed, &colorGreen, &colorBlue, scalingFactor);
324324 }
325325
326326 for (int binIndex = 0 ; binIndex < displayPixelWidth; ++binIndex)
@@ -381,7 +381,7 @@ void QtSLiMChromosomeWidget::glDrawMutations(QRect &interiorRect, Chromosome *ch
381381 // FIXME MULTITRAIT: should be a way to choose which trait is being used for colors in the chromosome view!
382382 MutationTraitInfo *mut_trait_info = mutation_block->TraitInfoForMutation (mutation);
383383
384- RGBForSelectionCoeff (static_cast <double >(mut_trait_info[0 ].effect_size_ ), &colorRed, &colorGreen, &colorBlue, scalingFactor);
384+ RGBForEffectSize (static_cast <double >(mut_trait_info[0 ].effect_size_ ), &colorRed, &colorGreen, &colorBlue, scalingFactor);
385385
386386 SLIM_GL_DEFCOORDS (mutationTickRect);
387387 SLIM_GL_PUSHRECT ();
@@ -437,7 +437,7 @@ void QtSLiMChromosomeWidget::glDrawMutations(QRect &interiorRect, Chromosome *ch
437437 // FIXME MULTITRAIT: should be a way to choose which trait is being used for colors in the chromosome view!
438438 MutationTraitInfo *mut_trait_info = mutation_block->TraitInfoForMutation (mutation);
439439
440- RGBForSelectionCoeff (static_cast <double >(mut_trait_info[0 ].effect_size_ ), &colorRed, &colorGreen, &colorBlue, scalingFactor);
440+ RGBForEffectSize (static_cast <double >(mut_trait_info[0 ].effect_size_ ), &colorRed, &colorGreen, &colorBlue, scalingFactor);
441441
442442 SLIM_GL_DEFCOORDS (mutationTickRect);
443443 SLIM_GL_PUSHRECT ();
@@ -505,7 +505,7 @@ void QtSLiMChromosomeWidget::glDrawFixedSubstitutions(QRect &interiorRect, Chrom
505505 else
506506 {
507507 // FIXME MULTITRAIT: should be a way to choose which trait is being used for colors in the chromosome view!
508- RGBForSelectionCoeff (static_cast <double >(substitution->trait_info_ [0 ].effect_size_ ), &colorRed, &colorGreen, &colorBlue, scalingFactor);
508+ RGBForEffectSize (static_cast <double >(substitution->trait_info_ [0 ].effect_size_ ), &colorRed, &colorGreen, &colorBlue, scalingFactor);
509509 }
510510 }
511511
@@ -585,7 +585,7 @@ void QtSLiMChromosomeWidget::glDrawFixedSubstitutions(QRect &interiorRect, Chrom
585585 else
586586 {
587587 // FIXME MULTITRAIT: should be a way to choose which trait is being used for colors in the chromosome view!
588- RGBForSelectionCoeff (static_cast <double >(substitution->trait_info_ [0 ].effect_size_ ), &colorRed, &colorGreen, &colorBlue, scalingFactor);
588+ RGBForEffectSize (static_cast <double >(substitution->trait_info_ [0 ].effect_size_ ), &colorRed, &colorGreen, &colorBlue, scalingFactor);
589589 }
590590
591591 mutationTickRect.setX (interiorRect.x () + binIndex);
0 commit comments