mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-07-16 13:14:51 -04:00
--User changes
-Remove the Type field from the variations tree and instead just put the type indicator icon next to the variation name. -Double clicking to toggle variation parameter spinners now resets the value to the default if there is one, else it uses zero. If it is already using the default, it is toggled to 0. -Add a new button to toggle xaos on and off. -When duplicating a flame, insert it immediately after the one being duplicated instead of at the end of the file. -When switching between flames in a file, keep the same xform index selected rather than resetting it to the first xform each time. -Create a threaded writer for the final render and EmberAnimate so the rendering process does not get delayed by file saving which may take a long time. -Remove warning which said "Frames per rot cannot be greater than one while Rotations is zero" when generating a sequence. -Add the Circle_Rand variation from Chaotica. -Add tool tips to clarify the following items: --Auto Unique Filenames checkbox in the options dialog. --Xaos table headers. --Bug fixes -Generating sequences using the following variations would be done incorrectly: circletrans1, collideoscope, crob, curlsp, glynnsim1, glynnsim2, hypercrop, julian, julian, mobiusn, nblur, waves2, wavesn. -Adding/removing nodes from the color curve had accidentally been disabled. -The applied xaos weight table was not showing normalized weight values. -Changing the size of a flame was not observing the Apply To All checkbox. -Do not clamp the Rotate field to +/-180, because this causes the rotation to switch from CW to CCW during sequence generation. Instead, leave it exactly as the user entered it so the rotations proceed in the same direction.
This commit is contained in:
@ -57,17 +57,21 @@ public:
|
||||
virtual ~FractoriumEmberControllerBase();
|
||||
|
||||
//Embers.
|
||||
virtual void SetEmber(const Ember<float>& ember, bool verbatim, bool updatePointer) { }
|
||||
virtual void SetEmber(const Ember<float>& ember, bool verbatim, bool updatePointer, int xformIndex) { }
|
||||
virtual void CopyEmber(Ember<float>& ember, std::function<void(Ember<float>& ember)> perEmberOperation/* = [&](Ember<float>& ember) { }*/) { }//Uncomment default lambdas once LLVM fixes a crash in their compiler with default lambda parameters.//TODO
|
||||
virtual void SetEmberFile(const EmberFile<float>& emberFile, bool move) { }
|
||||
virtual void CopyEmberFile(EmberFile<float>& emberFile, bool sequence, std::function<void(Ember<float>& ember)> perEmberOperation/* = [&](Ember<float>& ember) { }*/) { }
|
||||
virtual void CopyXaosToggleEmber(Ember<float>& ember) { }
|
||||
virtual void SetXaosToggleEmber(const Ember<float>& ember) { }
|
||||
virtual void SetTempPalette(const Palette<float>& palette) { }
|
||||
virtual void CopyTempPalette(Palette<float>& palette) { }
|
||||
#ifdef DO_DOUBLE
|
||||
virtual void SetEmber(const Ember<double>& ember, bool verbatim, bool updatePointer) { }
|
||||
virtual void SetEmber(const Ember<double>& ember, bool verbatim, bool updatePointer, int xformIndex) { }
|
||||
virtual void CopyEmber(Ember<double>& ember, std::function<void(Ember<double>& ember)> perEmberOperation/* = [&](Ember<double>& ember) { }*/) { }
|
||||
virtual void SetEmberFile(const EmberFile<double>& emberFile, bool move) { }
|
||||
virtual void CopyEmberFile(EmberFile<double>& emberFile, bool sequence, std::function<void(Ember<double>& ember)> perEmberOperation/* = [&](Ember<double>& ember) { }*/) { }
|
||||
virtual void CopyXaosToggleEmber(Ember<double>& ember) { }
|
||||
virtual void SetXaosToggleEmber(const Ember<double>& ember) { }
|
||||
virtual void SetTempPalette(const Palette<double>& palette) { }
|
||||
virtual void CopyTempPalette(Palette<double>& palette) { }
|
||||
#endif
|
||||
@ -252,6 +256,7 @@ public:
|
||||
virtual void RandomXaos() { }
|
||||
virtual void AddLayer(int xforms) { }
|
||||
virtual void TransposeXaos() { }
|
||||
virtual void ToggleXaos() { }
|
||||
|
||||
//Palette.
|
||||
virtual size_t InitPaletteList(const QString& s) { return 0; }
|
||||
@ -352,17 +357,21 @@ public:
|
||||
virtual ~FractoriumEmberController();
|
||||
|
||||
//Embers.
|
||||
void SetEmber(const Ember<float>& ember, bool verbatim, bool updatePointer) override;
|
||||
void SetEmber(const Ember<float>& ember, bool verbatim, bool updatePointer, int xformIndex) override;
|
||||
void CopyEmber(Ember<float>& ember, std::function<void(Ember<float>& ember)> perEmberOperation/* = [&](Ember<float>& ember) { }*/) override;
|
||||
void SetEmberFile(const EmberFile<float>& emberFile, bool move) override;
|
||||
void CopyEmberFile(EmberFile<float>& emberFile, bool sequence, std::function<void(Ember<float>& ember)> perEmberOperation/* = [&](Ember<float>& ember) { }*/) override;
|
||||
void CopyXaosToggleEmber(Ember<float>& ember) override;
|
||||
void SetXaosToggleEmber(const Ember<float>& ember) override;
|
||||
void SetTempPalette(const Palette<float>& palette) override;
|
||||
void CopyTempPalette(Palette<float>& palette) override;
|
||||
#ifdef DO_DOUBLE
|
||||
void SetEmber(const Ember<double>& ember, bool verbatim, bool updatePointer) override;
|
||||
void SetEmber(const Ember<double>& ember, bool verbatim, bool updatePointer, int xformIndex) override;
|
||||
void CopyEmber(Ember<double>& ember, std::function<void(Ember<double>& ember)> perEmberOperation/* = [&](Ember<double>& ember) { }*/) override;
|
||||
void SetEmberFile(const EmberFile<double>& emberFile, bool move) override;
|
||||
void CopyEmberFile(EmberFile<double>& emberFile, bool sequence, std::function<void(Ember<double>& ember)> perEmberOperation/* = [&](Ember<double>& ember) { }*/) override;
|
||||
void CopyXaosToggleEmber(Ember<double>& ember) override;
|
||||
void SetXaosToggleEmber(const Ember<double>& ember) override;
|
||||
void SetTempPalette(const Palette<double>& palette) override;
|
||||
void CopyTempPalette(Palette<double>& palette) override;
|
||||
#endif
|
||||
@ -542,6 +551,7 @@ public:
|
||||
void FilteredVariations() override;
|
||||
void FillVariationTreeWithCurrentXform() override;
|
||||
void FillVariationTreeWithXform(Xform<T>* xform);
|
||||
QIcon MakeVariationIcon(const Variation<T>* var);
|
||||
|
||||
//Xforms Xaos.
|
||||
void FillXaos() override;
|
||||
@ -551,6 +561,7 @@ public:
|
||||
void RandomXaos() override;
|
||||
void AddLayer(int xforms) override;
|
||||
void TransposeXaos() override;
|
||||
void ToggleXaos() override;
|
||||
|
||||
//Xforms Selection.
|
||||
virtual QString MakeXformCaption(size_t i) override;
|
||||
@ -584,7 +595,7 @@ public:
|
||||
private:
|
||||
//Embers.
|
||||
void ApplyXmlSavingTemplate(Ember<T>& ember);
|
||||
template <typename U> void SetEmberPrivate(const Ember<U>& ember, bool verbatim, bool updatePointer);
|
||||
template <typename U> void SetEmberPrivate(const Ember<U>& ember, bool verbatim, bool updatePointer, int xformIndex);
|
||||
|
||||
//Params.
|
||||
template <typename U> void ParamsToEmberPrivate(Ember<U>& ember, bool imageParamsOnly);
|
||||
@ -609,6 +620,7 @@ private:
|
||||
vector<T> m_TempOpacities;
|
||||
vector<T> m_NormalizedWeights;
|
||||
Ember<T> m_Ember;
|
||||
Ember<T> m_XaosToggleEmber;
|
||||
Ember<T>* m_EmberFilePointer = nullptr;
|
||||
EmberFile<T> m_EmberFile;
|
||||
EmberFile<T> m_SequenceFile;
|
||||
|
Reference in New Issue
Block a user