Krita Source Code Documentation
Loading...
Searching...
No Matches
HdrMetaDataCheck Class Reference

#include <HdrMetaDataCheck.h>

+ Inheritance diagram for HdrMetaDataCheck:

Public Member Functions

Level check (KisImageSP) const override
 
bool checkNeeded (KisImageSP image) const override
 
 HdrMetaDataCheck (const QString &id, Level level, const QString &customWarning=QString())
 
- Public Member Functions inherited from KisExportCheckBase
virtual QString id () const
 
 KisExportCheckBase (const QString &id, Level level, const QString &customWarning=QString(), bool perLayerCheck=false)
 KisExportCheckBase.
 
virtual bool perLayerCheck () const
 
QString warning () const
 
virtual ~KisExportCheckBase ()
 

Additional Inherited Members

- Public Types inherited from KisExportCheckBase
enum  Level { SUPPORTED , PARTIALLY , UNSUPPORTED }
 
- Protected Attributes inherited from KisExportCheckBase
QString m_id
 
Level m_level {UNSUPPORTED}
 
bool m_perLayerCheck {false}
 
QString m_warning
 

Detailed Description

Definition at line 15 of file HdrMetaDataCheck.h.

Constructor & Destructor Documentation

◆ HdrMetaDataCheck()

HdrMetaDataCheck::HdrMetaDataCheck ( const QString & id,
Level level,
const QString & customWarning = QString() )
inline

Definition at line 18 of file HdrMetaDataCheck.h.

19 : KisExportCheckBase(id, level, customWarning, true)
20 {
21 if (customWarning.isEmpty()) {
22 m_warning = i18nc("image conversion warning", "This image has <b>HDR metadata</b>. HDR metadata cannot be saved to this format.");
23 }
24 }
KisExportCheckBase(const QString &id, Level level, const QString &customWarning=QString(), bool perLayerCheck=false)
KisExportCheckBase.

References KisExportCheckBase::m_warning.

Member Function Documentation

◆ check()

Level HdrMetaDataCheck::check ( KisImageSP image) const
inlineoverridevirtual
Returns
the level of support for this feature

Implements KisExportCheckBase.

Definition at line 31 of file HdrMetaDataCheck.h.

32 {
33 return m_level;
34 }

References KisExportCheckBase::m_level.

◆ checkNeeded()

bool HdrMetaDataCheck::checkNeeded ( KisImageSP image) const
inlineoverridevirtual
Returns
whether the image uses this feature

Implements KisExportCheckBase.

Definition at line 26 of file HdrMetaDataCheck.h.

27 {
29 }
std::optional< KisRelativeContentLightLevelInformation > relativeContentLightLevelInformation() const
relativeContentLightLevelInformation This returns (optionally) a KisRelativeContentLightLevelInformat...
std::optional< double > hdrReferenceWhiteLightLevel() const
HDR Reference White livel.
std::optional< KisColorVolumeInformation > colorVolumeInformation() const
colorVolumeInformation

References KisImage::colorVolumeInformation(), KisImage::hdrReferenceWhiteLightLevel(), and KisImage::relativeContentLightLevelInformation().


The documentation for this class was generated from the following file: