Add new class to store flame motion parameters

This commit is contained in:
Simon Detheridge
2015-06-24 11:23:17 +01:00
parent d75a15136d
commit 9d5f3e8578
4 changed files with 80 additions and 1 deletions

View File

@ -5,6 +5,7 @@
#include "PaletteList.h"
#include "SpatialFilter.h"
#include "TemporalFilter.h"
#include "FlameMotion.h"
/// <summary>
/// Ember class.
@ -183,6 +184,11 @@ public:
if (ember.m_Edits != nullptr)
m_Edits = xmlCopyDoc(ember.m_Edits, 1);
m_FlameMotionElements.clear();
for(int i = 0; i < ember.m_FlameMotionElements.size(); ++i)
m_FlameMotionElements.push_back(ember.m_FlameMotionElements[i]);
return *this;
}
@ -1683,6 +1689,9 @@ public:
//The 0-based position of this ember in the file it was contained in.
size_t m_Index;
//The list of motion elements for the top-level flame params
vector<FlameMotion<T>> m_FlameMotionElements;
private:
/// <summary>
/// The type of scaling used when resizing.