|
ACF $AcfVersion:0$
|
#include <CSubstractiveColorModelBase.h>
Public Member Functions | |
| CSubstractiveColorModelBase () | |
| const icmm::CTristimulusSpecification & | GetPreviewSpec () 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::IUnitInfo * | GetColorSpaceComponentInfo (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::IColorTransformation * | CreateColorTranformation (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::ISubstractiveColorModel | |
| virtual std::unique_ptr< ISubstractiveColorModel > | CreateSubspaceModel (const QStringList &colorantIds) const =0 |
| Create ColorModel of the subspace. | |
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 istd::TUniqueInterfacePtr< istd::IChangeable > | CloneMe (CompatibilityMode mode=CM_WITHOUT_REFS) const |
| Make a copy of this 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 () |
Public Member Functions inherited from icmm::IColorantList | |
| virtual ColorantIds | GetColorantIds () const =0 |
| Get the list of colorant-IDs. | |
| virtual ColorantUsage | GetColorantUsage (const ColorantId &colorantId) const =0 |
| Get type of the colorant with the given ID. | |
Protected Types | |
| typedef QMap< ColorantId, icmm::CLab > | ColorantPreviewMap |
| Mapping between a colorant and corresponding Lab value for its solid value. | |
Protected Attributes | |
| icmm::CTristimulusSpecification | m_previewSpec |
| Tristimulus specification used for all colorants in the color model. | |
| ColorantPreviewMap | m_colorantPreviewMap |
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 |
Static Public Member Functions inherited from istd::IChangeable | |
| static const ChangeSet & | GetNoChanges () |
| Get empty set of changes. | |
| static const ChangeSet & | GetAnyChange () |
| Get anonymous change set. | |
| static const ChangeSet & | GetAllChanges () |
| Get anonymous change set. | |
| static const ChangeSet & | GetDelegatedChanges () |
| Get delegated change set. | |
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. | |
Definition at line 18 of file CSubstractiveColorModelBase.h.
|
protected |
Mapping between a colorant and corresponding Lab value for its solid value.
Definition at line 54 of file CSubstractiveColorModelBase.h.
| icmm::CSubstractiveColorModelBase::CSubstractiveColorModelBase | ( | ) |
|
overridevirtual |
Copy this object from another one.
Default implementation in istd::IChangeable does nothing.
Reimplemented from istd::IChangeable.
Reimplemented in icmm::CSubstractiveColorModel.
|
overridevirtual |
Creates a color transformation for conversion to another color model.
Constructs and returns a transformation object that can convert colors from this model to the specified target model. The transformation may be direct or may internally use intermediate color spaces (typically XYZ).
| otherColorModel | The target color model to convert to |
| transformationId | Optional identifier for a specific transformation algorithm. Empty (default) uses the standard transformation. |
Implements icmm::IColorModel.
|
overridevirtual |
Get visual information/preview for the given colorant.
Implements icmm::ISubstractiveColorModel.
|
overridevirtual |
Gets the classification of the color space defined by this model.
Indicates the physical basis of color mixing: additive (light-based), subtractive (pigment-based), or perceptual (human perception-based).
Implements icmm::IColorModel.
|
overridevirtual |
Gets mathematical unit information for a color model component.
Returns information about the mathematical unit, range, and properties of the specified component (axis) in the color space.
| componentIndex | Zero-based index of the component (0 to dimensionality-1) |
Implements icmm::IColorModel.
|
overridevirtual |
Gets the human-readable name of a color model component.
Returns the name of the component at the specified index, such as "Red", "Green", "Blue" for RGB, or "Lightness", "a*", "b*" for Lab.
| componentIndex | Zero-based index of the component |
Implements icmm::IColorModel.
|
overridevirtual |
Gets the dimensionality (number of components) of the color space.
Returns the number of values needed to represent a color in this model. Common values are 3 (RGB, HSV, Lab) or 4 (CMYK). Spectral models may have higher dimensionality.
Implements icmm::IColorModel.
|
overridevirtual |
Gets the classification of the color model.
Indicates whether the color model is device-dependent or device-independent. Device-dependent models (RGB, CMYK) produce different colors on different devices, while device-independent models (XYZ, Lab) represent absolute colors.
Implements icmm::IColorModel.
|
overridevirtual |
Gets the type of the color model.
Returns the specific type identifier for this color model (e.g., MT_RGB, MT_CMYK). This identifies the mathematical representation and component structure.
Implements icmm::IColorModel.
| const icmm::CTristimulusSpecification & icmm::CSubstractiveColorModelBase::GetPreviewSpec | ( | ) | const |
|
overridevirtual |
Get set of flags for supported operations.
Reimplemented from istd::IChangeable.
Reimplemented in icmm::CSubstractiveColorModel.
| void icmm::CSubstractiveColorModelBase::SetColorantPreview | ( | const ColorantId & | colorantId, |
| const icmm::CLab & | preview | ||
| ) |
| void icmm::CSubstractiveColorModelBase::SetPreviewSpec | ( | const ITristimulusSpecification & | previewSpec | ) |
|
protected |
Definition at line 55 of file CSubstractiveColorModelBase.h.
|
protected |
Tristimulus specification used for all colorants in the color model.
Definition at line 49 of file CSubstractiveColorModelBase.h.