ACF $AcfVersion:0$
Public Member Functions | Static Public Member Functions | List of all members
icmm::CCmyColorModel Class Reference

#include <CCmyColorModel.h>

Inheritance diagram for icmm::CCmyColorModel:
icmm::CSubstractiveColorModelBase icmm::ISubstractiveColorModel icmm::IColorModel icmm::IColorantList istd::IChangeable istd::IChangeable istd::IPolymorphic istd::IPolymorphic icmm::CCmykColorModel

Public Member Functions

virtual ColorantIds GetColorantIds () const override
 Get the list of colorant-IDs.
 
virtual ColorantUsage GetColorantUsage (const ColorantId &colorantId) const override
 Get type of the colorant with the given ID.
 
virtual std::unique_ptr< ISubstractiveColorModelCreateSubspaceModel (const QStringList &colorantIds) const override
 Create ColorModel of the subspace.
 
virtual istd::IChangeableUniquePtr CloneMe (CompatibilityMode mode=CM_WITHOUT_REFS) const override
 Make a copy of this object.
 
- Public Member Functions inherited from icmm::CSubstractiveColorModelBase
 CSubstractiveColorModelBase ()
 
const icmm::CTristimulusSpecificationGetPreviewSpec () const
 
void SetPreviewSpec (const ITristimulusSpecification &previewSpec)
 
void SetColorantPreview (const ColorantId &colorantId, const icmm::CLab &preview)
 
virtual ModelType GetModelType () const override
 Gets the type of the color model.
 
virtual ModelClass GetModelClass () const override
 Gets the classification of the color model.
 
virtual ColorSpaceClass GetColorSpaceClass () const override
 Gets the classification of the color space defined by this model.
 
virtual int GetColorSpaceDimensionality () const override
 Gets the dimensionality (number of components) of the color space.
 
virtual const imath::IUnitInfoGetColorSpaceComponentInfo (int componentIndex) const override
 Gets mathematical unit information for a color model component.
 
virtual QString GetColorSpaceComponentName (int componentIndex) const override
 Gets the human-readable name of a color model component.
 
virtual const icmm::IColorTransformationCreateColorTranformation (const IColorModel &otherColorModel, const QByteArray &transformationId=QByteArray()) const override
 Creates a color transformation for conversion to another color model.
 
virtual bool GetColorantVisualInfo (const ColorantId &colorantId, icmm::ICieLabColor &preview) const override
 Get visual information/preview for the given colorant.
 
virtual int GetSupportedOperations () const override
 Get set of flags for supported operations.
 
virtual bool CopyFrom (const istd::IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS) override
 Copy this object from another one.
 
- Public Member Functions inherited from icmm::IColorModel
virtual IColorSpecification::ConstColorSpecPtr GetSpecification () const
 Gets the color specification for this model, if available.
 
- Public Member Functions inherited from istd::IChangeable
virtual bool IsEqual (const IChangeable &object) const
 Compare this object with another object.
 
virtual bool ResetData (CompatibilityMode mode=CM_WITHOUT_REFS)
 Reset data to its default state.
 
virtual void BeginChanges (const ChangeSet &changeSet)
 Starts the change transaction.
 
virtual void EndChanges (const ChangeSet &changeSet)
 Ends the change transaction.
 
virtual void BeginChangeGroup (const ChangeSet &changeSet)
 Starts group of changes.
 
virtual void EndChangeGroup (const ChangeSet &changeSet)
 Ends group of changes.
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 

Static Public Member Functions

static ColorantId GetCyan ()
 
static ColorantId GetMagenta ()
 
static ColorantId GetYellow ()
 
- Static Public Member Functions inherited from istd::IChangeable
static const ChangeSetGetNoChanges ()
 Get empty set of changes.
 
static const ChangeSetGetAnyChange ()
 Get anonymous change set.
 
static const ChangeSetGetAllChanges ()
 Get anonymous change set.
 
static const ChangeSetGetDelegatedChanges ()
 Get delegated change set.
 

Additional Inherited Members

- Public Types inherited from icmm::IColorModel
enum  ModelType {
  MT_HSI , MT_HSV , MT_HSL , MI_YIQ ,
  MI_YUV , MI_YCBCR , MT_RGB , MT_COLORANTS ,
  MT_LUV , MT_LAB , MT_LCH , MT_XYZ ,
  MT_YXY , MI_SPECTRAL , MI_USER = 1024
}
 
enum  ModelClass { MC_DEVICE_DEPENDENT , MC_DEVICE_INDEPENDENT }
 
enum  ColorSpaceClass { CSC_ADDITIVE , CSC_SUBSTRACTIVE , CSC_PERCEPTUAL }
 
- Public Types inherited from istd::IChangeable
enum  ChangeFlags {
  CF_ACF_INTERNAL = 0 , CF_ALL_DATA , CF_ANY , CF_DESTROYING ,
  CF_DELEGATED , CF_NO_UNDO
}
 Data model change notification flags. More...
 
enum  SupportedOperations {
  SO_NONE = 0 , SO_OBSERVE = 1 << 0 , SO_COPY = 1 << 1 , SO_CLONE = 1 << 2 ,
  SO_COMPARE = 1 << 3 , SO_RESET = 1 << 4
}
 Flags for supported operations. More...
 
enum  CompatibilityMode { CM_STRICT , CM_WITHOUT_REFS , CM_WITH_REFS , CM_CONVERT }
 Control how relationship betweeen objects are interpreted. More...
 
typedef QMultiMap< QByteArray, QVariant > ChangeInfoMap
 
- Public Types inherited from icmm::IColorantList
typedef QString ColorantId
 
typedef QStringList ColorantIds
 
- Protected Types inherited from icmm::CSubstractiveColorModelBase
typedef QMap< ColorantId, icmm::CLabColorantPreviewMap
 Mapping between a colorant and corresponding Lab value for its solid value.
 
- Protected Member Functions inherited from istd::IChangeable
virtual void OnBeginChanges ()
 Callback function for begin change event.
 
virtual void OnEndChanges (const ChangeSet &changeSet)
 Callback function for end change event.
 
- Protected Attributes inherited from icmm::CSubstractiveColorModelBase
icmm::CTristimulusSpecification m_previewSpec
 Tristimulus specification used for all colorants in the color model.
 
ColorantPreviewMap m_colorantPreviewMap
 

Detailed Description

Definition at line 13 of file CCmyColorModel.h.

Member Function Documentation

◆ CloneMe()

virtual istd::IChangeableUniquePtr icmm::CCmyColorModel::CloneMe ( CompatibilityMode  mode = CM_WITHOUT_REFS) const
overridevirtual

Make a copy of this object.

Returns
new instance or NULL, if this operation is not supported.

Reimplemented from istd::IChangeable.

Reimplemented in icmm::CCmykColorModel.

◆ CreateSubspaceModel()

virtual std::unique_ptr< ISubstractiveColorModel > icmm::CCmyColorModel::CreateSubspaceModel ( const QStringList &  colorantIds) const
overridevirtual

Create ColorModel of the subspace.

Implements icmm::ISubstractiveColorModel.

Reimplemented in icmm::CCmykColorModel.

◆ GetColorantIds()

virtual ColorantIds icmm::CCmyColorModel::GetColorantIds ( ) const
overridevirtual

Get the list of colorant-IDs.

Implements icmm::IColorantList.

Reimplemented in icmm::CCmykColorModel.

◆ GetColorantUsage()

virtual ColorantUsage icmm::CCmyColorModel::GetColorantUsage ( const ColorantId colorantId) const
overridevirtual

Get type of the colorant with the given ID.

Implements icmm::IColorantList.

Reimplemented in icmm::CCmykColorModel.

◆ GetCyan()

static ColorantId icmm::CCmyColorModel::GetCyan ( )
static

◆ GetMagenta()

static ColorantId icmm::CCmyColorModel::GetMagenta ( )
static

◆ GetYellow()

static ColorantId icmm::CCmyColorModel::GetYellow ( )
static

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