Clipboard for tone curve, on behalf of Wolfgang; see issue #631

This commit is contained in:
Oliver Duis
2011-04-17 09:39:42 +02:00
parent 41b3987cb4
commit 9320f1ce4a
5 changed files with 59 additions and 0 deletions

View File

@@ -28,6 +28,9 @@ class Clipboard {
std::vector<rtengine::procparams::IPTCPair> iptc;
bool _hasProcParams;
rtengine::procparams::ProcParams procParams;
bool _hasCurveData;
std::vector<double> curve;
public:
void setIPTC (const std::vector<rtengine::procparams::IPTCPair>& iptcc) { iptc = iptcc; _hasIPTC = true;}
@@ -37,6 +40,12 @@ class Clipboard {
void setProcParams (const rtengine::procparams::ProcParams& pparams) { procParams = pparams; _hasProcParams = true; }
const rtengine::procparams::ProcParams& getProcParams () { return procParams; }
bool hasProcParams () { return _hasProcParams; }
void setCurveData (std::vector<double>& p ) { curve = p; _hasCurveData = true; return; }
const std::vector<double> & getCurveData () { return curve; }
bool hasCurveData () { return _hasCurveData; }
};
extern Clipboard clipboard;