Clipboard, save/load for curves, on behalf of Wolfgang; see issue #642

This commit is contained in:
Oliver Duis
2011-04-24 12:17:05 +02:00
parent 62aa6c3707
commit f11ccfc75e
3 changed files with 171 additions and 23 deletions

View File

@@ -21,6 +21,7 @@
#include <vector>
#include <rtengine.h>
#include <mydiagonalcurve.h>
class Clipboard {
@@ -28,7 +29,7 @@ class Clipboard {
std::vector<rtengine::procparams::IPTCPair> iptc;
bool _hasProcParams;
rtengine::procparams::ProcParams procParams;
bool _hasCurveData;
DiagonalCurveType hasCurveDataType;
std::vector<double> curve;
@@ -41,9 +42,9 @@ class Clipboard {
const rtengine::procparams::ProcParams& getProcParams () { return procParams; }
bool hasProcParams () { return _hasProcParams; }
void setCurveData (std::vector<double>& p ) { curve = p; _hasCurveData = true; return; }
void setCurveData (std::vector<double>& p, DiagonalCurveType type ) { curve = p; hasCurveDataType = type; return; }
const std::vector<double> & getCurveData () { return curve; }
bool hasCurveData () { return _hasCurveData; }
DiagonalCurveType hasCurveData () { return hasCurveDataType; }
};