paysages3d/src/definition/ColorDiff.h

37 lines
745 B
C
Raw Normal View History

2015-12-16 00:32:25 +00:00
#ifndef COLORDIFF_H
#define COLORDIFF_H
#include "definition_global.h"
#include "DefinitionDiff.h"
#include "Color.h"
namespace paysages {
namespace definition {
/**
* Diff for a ColorNode.
*/
class DEFINITIONSHARED_EXPORT ColorDiff : public DefinitionDiff {
public:
ColorDiff(const DefinitionNode *node, const Color &oldvalue, const Color &newvalue);
ColorDiff(const ColorDiff *other, const Color &oldvalue, const Color &newvalue);
inline const Color &getOldValue() const {
return oldvalue;
}
inline const Color &getNewValue() const {
return newvalue;
}
virtual DefinitionDiff *newReversed() const override;
private:
Color oldvalue;
Color newvalue;
};
}
}
#endif // COLORDIFF_H