digiKam
|
Public Member Functions | |
CurvesContainer () | |
CurvesContainer (int type, bool sixteenBit) | |
void | initialize () |
bool | isEmpty () const |
bool | isStoredLosslessly () const |
bool | operator== (const CurvesContainer &other) const |
void | writeToFilterAction (FilterAction &action, const QString &prefix=QString()) const |
Static Public Member Functions | |
static CurvesContainer | fromFilterAction (const FilterAction &action, const QString &prefix=QString()) |
Public Attributes | |
int | curvesType |
bool | sixteenBit |
QPolygon | values [ColorChannels] |
Digikam::CurvesContainer::CurvesContainer | ( | ) |
Provides a convenient storage for a curve. Initially, the values are empty. Call initialize() before adjusting values manually.
Referenced by fromFilterAction().
Digikam::CurvesContainer::CurvesContainer | ( | int | type, |
bool | sixteenBit | ||
) |
|
static |
References Digikam::ColorChannels, CurvesContainer(), Digikam::ImageCurves::getContainer(), Digikam::FilterAction::hasParameter(), Digikam::FilterAction::parameter(), prefix, and Digikam::ImageCurves::setChannelFromBinary().
Referenced by Digikam::DRawDecoding::fromFilterAction(), Digikam::BWSepiaFilter::readParameters(), and Digikam::CurvesFilter::readParameters().
void Digikam::CurvesContainer::initialize | ( | ) |
Fills the values with a linear curve suitable for type and sixteenBit parameters.
References Digikam::ColorChannels, Digikam::ImageCurves::CURVE_FREE, curvesType, Digikam::ImageCurves::NUM_POINTS, sixteenBit, and values.
Referenced by Digikam::ImageCurves::getContainer().
bool Digikam::CurvesContainer::isEmpty | ( | ) | const |
An empty container is interpreted as a linear curve. A non-empty container can also be linear; test for isLinear() of the resulting ImageCurves. Note: If an ImageCurves is linear, it will return an empty container.
References Digikam::ColorChannels, and values.
Referenced by Digikam::RawProcessingFilter::filterImage(), operator==(), Digikam::DRawDecoding::postProcessingSettingsIsDirty(), writeToFilterAction(), and Digikam::DRawDecoding::writeToFilterAction().
bool Digikam::CurvesContainer::isStoredLosslessly | ( | ) | const |
Serialize from and to FilterAction. isStoredLosslessly returns false if the curve cannot be losslessly stored in XML because it would be too large (free 16 bit). It is then lossily compressed.
References Digikam::ImageCurves::CURVE_FREE, curvesType, and sixteenBit.
Referenced by Digikam::CurvesFilter::filterAction().
bool Digikam::CurvesContainer::operator== | ( | const CurvesContainer & | other | ) | const |
References Digikam::ColorChannels, curvesType, isEmpty(), sixteenBit, and values.
void Digikam::CurvesContainer::writeToFilterAction | ( | FilterAction & | action, |
const QString & | prefix = QString() |
||
) | const |
References Digikam::FilterAction::addParameter(), Digikam::ImageCurves::channelToBinary(), Digikam::ColorChannels, Digikam::ImageCurves::fillFromOtherCurves(), isEmpty(), Digikam::ImageCurves::isLinear(), Digikam::ImageCurves::isSixteenBits(), and prefix.
Referenced by Digikam::CurvesFilter::filterAction(), and Digikam::DRawDecoding::writeToFilterAction().
int Digikam::CurvesContainer::curvesType |
Smooth : QPolygon have size of 18 points. Free : QPolygon have size of 255 or 65535 values.
Referenced by DigikamBqmBWConvertPlugin::BWConvert::defaultSettings(), DigikamBqmCurvesAdjustPlugin::CurvesAdjust::defaultSettings(), initialize(), isStoredLosslessly(), operator==(), and Digikam::ImageCurves::setContainer().
bool Digikam::CurvesContainer::sixteenBit |
QPolygon Digikam::CurvesContainer::values[ColorChannels] |