mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-07-16 05:05:09 -04:00
--User changes
-Support 4k monitors, and in general, properly scale any monitor that is not HD. -Allow for a spatial filter of radius zero, which means do not use a spatial filter. -Add new variations: concentric, cpow3, helicoid, helix, rand_cubes, sphereblur. -Use a new method for computing elliptic which is more precise. Developed by Discord user Claude. -Remove the 8 variation per xform limitation on the GPU. -Allow for loading the last flame file on startup, rather than randoms. -Use two different default quality values in the interactive renderer, one each for CPU and GPU. -Creating linked xforms was using non-standard behavior. Make it match Apo and also support creating multiple linked xforms at once. --Bug fixes -No variations in an xform used to have the same behavior as a single linear variation with weight 1. While sensible, this breaks backward compatibility. No variations now sets the output point to zeroes. -Prevent crashing the program when adjusting a value on the main window while a final render is in progress. -The xaos table was inverted. --Code changes -Convert projects to Visual Studio 2017. -Change bad vals from +- 1e10 to +-1e20. -Reintroduce the symmetry tag in xforms for legacy support in programs that do not use color_speed. -Compiler will not let us use default values in templated member functions anymore.
This commit is contained in:
@ -38,6 +38,25 @@ bool Fractorium::IsXformSelected(size_t i)
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Return the number of xforms selected, optionally counting the final xform.
|
||||
/// </summary>
|
||||
/// <param name="includeFinal">Whether to include the final in the count if selected.</param>
|
||||
/// <returns>The caption string</returns>
|
||||
int Fractorium::SelectedXformCount(bool includeFinal)
|
||||
{
|
||||
int selCount = 0;
|
||||
ForEachXformCheckbox([&](int index, QCheckBox * cb, bool isFinal)
|
||||
{
|
||||
if (cb->isChecked())
|
||||
{
|
||||
if (!isFinal || includeFinal)
|
||||
selCount++;
|
||||
}
|
||||
});
|
||||
return selCount;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Clear all of the dynamically created xform checkboxes.
|
||||
/// </summary>
|
||||
@ -81,7 +100,7 @@ QString FractoriumEmberController<T>::MakeXformCaption(size_t i)
|
||||
/// <summary>
|
||||
/// Function to perform the specified operation on every dynamically created xform selection checkbox.
|
||||
/// </summary>
|
||||
/// <param name="func">The operation to perform</param>
|
||||
/// <param name="func">The operation to perform which is a function taking the index of the xform, its checkbox, and a bool specifying whether it's final.</param>
|
||||
void Fractorium::ForEachXformCheckbox(std::function<void(int, QCheckBox*, bool)> func)
|
||||
{
|
||||
int i = 0;
|
||||
|
Reference in New Issue
Block a user