|
ACF $AcfVersion:0$
|
Common implementation of the general device-based, substractive color model based on the list of colorants. More...
#include <CSubstractiveColorModel.h>
Classes | |
| struct | ColorantInfo |
Public Member Functions | |
| CSubstractiveColorModel () | |
| CSubstractiveColorModel (const ColorantIds &colorantIds) | |
| CSubstractiveColorModel (const CSubstractiveColorModel &other) | |
| CSubstractiveColorModel (const ISubstractiveColorModel &other) | |
| CSubstractiveColorModel & | operator= (const CSubstractiveColorModel &other) |
| bool | operator== (const CSubstractiveColorModel &ref) const |
| bool | operator!= (const CSubstractiveColorModel &ref) const |
| bool | ContainsColorant (const ColorantId &colorantId) const |
Returns true if the colorant with the given ID exists in the color model. | |
| bool | InsertColorant (const ColorantId &colorantId, ColorantUsage usage, int index=-1) |
| Insert a new colorant at the given position. | |
| bool | RemoveColorant (const ColorantId &colorantId) |
| Remove a colorant with the given ID. | |
| bool | SetColorantUsage (const ColorantId &colorantId, ColorantUsage usage) |
| Set a colorant usage for an existing colorant. | |
| bool | SetColorantId (const ColorantId &colorantId, const ColorantId &newColorantId) |
| Set a new ID for an existing colorant. | |
| bool | AppendColorModel (const ISubstractiveColorModel &other) |
| Append colorants from from another model to this one. | |
| bool | HasProcessColorants () const |
| Check if the color model contains process colorants. | |
| bool | HasEcg () const |
| Check if the color model contains ECG colorants. | |
| bool | HasSpot () const |
| Check if the color model contains any spot colors. | |
| ColorantIds | GetProcessColorants () const |
| Get the list of process colors in this color model. | |
| ColorantIds | GetEcgColorants () const |
| Get the list of ECG colorants in this color model. | |
| ColorantIds | GetSpotColorants () const |
| Get the list of spot colors in this color model. | |
| virtual std::unique_ptr< ISubstractiveColorModel > | CreateSubspaceModel (const QStringList &colorantIds) const override |
| Create ColorModel of the subspace. | |
| 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 bool | Serialize (iser::IArchive &archive) override |
| Load or store state of this object as a archive stream. | |
| 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. | |
| virtual istd::TUniqueInterfacePtr< istd::IChangeable > | CloneMe (CompatibilityMode mode=CM_WITHOUT_REFS) const override |
| Make a copy of this object. | |
Public Member Functions inherited from icmm::CSubstractiveColorModelBase | |
| 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. | |
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 () |
Public Member Functions inherited from iser::ISerializable | |
| virtual quint32 | GetMinimalVersion (int versionId) const |
| Get minimal needed version to correct storing of this data. | |
Static Public Member Functions | |
| static std::unique_ptr< ISubstractiveColorModel > | CreateSubspaceModelFrom (const CSubstractiveColorModelBase &model, const 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 Types | |
| typedef ibase::TContainer< ColorantInfo > | ColorantInfoList |
Protected Types inherited from icmm::CSubstractiveColorModelBase | |
| typedef QMap< ColorantId, icmm::CLab > | ColorantPreviewMap |
| Mapping between a colorant and corresponding Lab value for its solid value. | |
Protected Member Functions | |
| int | FindColorantIndex (const ColorantId &colorantId) const |
| bool | SerializeColorantInfo (iser::IArchive &archive, ColorantInfo &colorantInfo, const iser::CArchiveTag *parentTagPtr) const |
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. | |
Static Protected Member Functions | |
| static icmm::ColorantUsage | GetDefaultUsageFromColorantName (const ColorantId &colorantId) |
| static ColorantId | GetEcgGreen () |
| static ColorantId | GetEcgOrange () |
| static ColorantId | GetEcgViolet () |
| static ColorantId | GetEcgRed () |
| static ColorantId | GetEcgBlue () |
Static Protected Member Functions inherited from ibase::CObservableListBase | |
| static istd::IChangeable::ChangeSet | ElementAddChanges (qsizetype index) |
| static istd::IChangeable::ChangeSet | ElementRemoveChanges (qsizetype index) |
| static istd::IChangeable::ChangeSet | ElementUpdatedChanges (qsizetype index) |
Additional Inherited Members | |
Static Public Attributes inherited from ibase::CObservableListBase | |
| static const QByteArray | CN_INDEX_ID = QByteArrayLiteral("INDEX") |
Protected Attributes inherited from icmm::CSubstractiveColorModelBase | |
| icmm::CTristimulusSpecification | m_previewSpec |
| Tristimulus specification used for all colorants in the color model. | |
| ColorantPreviewMap | m_colorantPreviewMap |
Common implementation of the general device-based, substractive color model based on the list of colorants.
All kinds of colorants (Process, ECG and Spot) can be combined in this color model.
Definition at line 22 of file CSubstractiveColorModel.h.
Definition at line 28 of file CSubstractiveColorModel.h.
| typedef CObservableListBase icmm::CSubstractiveColorModel::BaseClass2 |
Definition at line 29 of file CSubstractiveColorModel.h.
|
protected |
Definition at line 140 of file CSubstractiveColorModel.h.
| icmm::CSubstractiveColorModel::CSubstractiveColorModel | ( | ) |
| icmm::CSubstractiveColorModel::CSubstractiveColorModel | ( | const ColorantIds & | colorantIds | ) |
| icmm::CSubstractiveColorModel::CSubstractiveColorModel | ( | const CSubstractiveColorModel & | other | ) |
| icmm::CSubstractiveColorModel::CSubstractiveColorModel | ( | const ISubstractiveColorModel & | other | ) |
| bool icmm::CSubstractiveColorModel::AppendColorModel | ( | const ISubstractiveColorModel & | other | ) |
Append colorants from from another model to this one.
true, if the operation was succesful or false otherwise.
|
overridevirtual |
Make a copy of this object.
Reimplemented from istd::IChangeable.
| bool icmm::CSubstractiveColorModel::ContainsColorant | ( | const ColorantId & | colorantId | ) | const |
Returns true if the colorant with the given ID exists in the color model.
|
overridevirtual |
Copy this object from another one.
Default implementation in istd::IChangeable does nothing.
Reimplemented from icmm::CSubstractiveColorModelBase.
|
overridevirtual |
Create ColorModel of the subspace.
Implements icmm::ISubstractiveColorModel.
|
static |
|
protected |
|
overridevirtual |
Get the list of colorant-IDs.
Implements icmm::IColorantList.
|
overridevirtual |
Get type of the colorant with the given ID.
Implements icmm::IColorantList.
|
staticprotected |
|
staticprotected |
| ColorantIds icmm::CSubstractiveColorModel::GetEcgColorants | ( | ) | const |
Get the list of ECG colorants in this color model.
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
| ColorantIds icmm::CSubstractiveColorModel::GetProcessColorants | ( | ) | const |
Get the list of process colors in this color model.
| ColorantIds icmm::CSubstractiveColorModel::GetSpotColorants | ( | ) | const |
Get the list of spot colors in this color model.
|
overridevirtual |
Get set of flags for supported operations.
Reimplemented from icmm::CSubstractiveColorModelBase.
| bool icmm::CSubstractiveColorModel::HasEcg | ( | ) | const |
Check if the color model contains ECG colorants.
| bool icmm::CSubstractiveColorModel::HasProcessColorants | ( | ) | const |
Check if the color model contains process colorants.
| bool icmm::CSubstractiveColorModel::HasSpot | ( | ) | const |
Check if the color model contains any spot colors.
| bool icmm::CSubstractiveColorModel::InsertColorant | ( | const ColorantId & | colorantId, |
| ColorantUsage | usage, | ||
| int | index = -1 |
||
| ) |
Insert a new colorant at the given position.
If a colorant with the same colorant-ID already exists, the method will fail.
| index | Position, where the new colorant will be inserted. A negative value means the new colorant will be inserted at the end of the colorant list. |
| bool icmm::CSubstractiveColorModel::operator!= | ( | const CSubstractiveColorModel & | ref | ) | const |
| CSubstractiveColorModel & icmm::CSubstractiveColorModel::operator= | ( | const CSubstractiveColorModel & | other | ) |
| bool icmm::CSubstractiveColorModel::operator== | ( | const CSubstractiveColorModel & | ref | ) | const |
| bool icmm::CSubstractiveColorModel::RemoveColorant | ( | const ColorantId & | colorantId | ) |
Remove a colorant with the given ID.
true, if the operation was succesful or false otherwise.
|
overridevirtual |
Load or store state of this object as a archive stream.
Type of operation is depending on archive type.
Implements iser::ISerializable.
|
protected |
| bool icmm::CSubstractiveColorModel::SetColorantId | ( | const ColorantId & | colorantId, |
| const ColorantId & | newColorantId | ||
| ) |
Set a new ID for an existing colorant.
| bool icmm::CSubstractiveColorModel::SetColorantUsage | ( | const ColorantId & | colorantId, |
| ColorantUsage | usage | ||
| ) |
Set a colorant usage for an existing colorant.