107 virtual std::unique_ptr<ISubstractiveColorModel>
CreateSubspaceModel(
const QStringList& colorantIds)
const override;
Base implementation for creating simple observable collection.
Common implementation of an abstract container.
Common implementation of the general device-based, substractive color model based on the list of colo...
static icmm::ColorantUsage GetDefaultUsageFromColorantName(const ColorantId &colorantId)
int FindColorantIndex(const ColorantId &colorantId) const
bool InsertColorant(const ColorantId &colorantId, ColorantUsage usage, int index=-1)
Insert a new colorant at the given position.
ibase::TContainer< ColorantInfo > ColorantInfoList
virtual bool Serialize(iser::IArchive &archive) override
Load or store state of this object as a archive stream.
bool operator!=(const CSubstractiveColorModel &ref) const
CSubstractiveColorModelBase BaseClass
bool RemoveColorant(const ColorantId &colorantId)
Remove a colorant with the given ID.
bool AppendColorModel(const ISubstractiveColorModel &other)
Append colorants from from another model to this one.
virtual std::unique_ptr< ISubstractiveColorModel > CreateSubspaceModel(const QStringList &colorantIds) const override
Create ColorModel of the subspace.
CSubstractiveColorModel(const ColorantIds &colorantIds)
static ColorantId GetEcgBlue()
virtual ColorantUsage GetColorantUsage(const ColorantId &colorantId) const override
Get type of the colorant with the given ID.
ColorantIds GetProcessColorants() const
Get the list of process colors in this color model.
CSubstractiveColorModel()
bool HasProcessColorants() const
Check if the color model contains process colorants.
static ColorantId GetEcgViolet()
bool ContainsColorant(const ColorantId &colorantId) const
Returns true if the colorant with the given ID exists in the color model.
virtual ColorantIds GetColorantIds() const override
Get the list of colorant-IDs.
static ColorantId GetEcgRed()
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 operator==(const CSubstractiveColorModel &ref) const
ColorantIds GetEcgColorants() const
Get the list of ECG colorants in this color model.
CObservableListBase BaseClass2
CSubstractiveColorModel(const ISubstractiveColorModel &other)
bool HasSpot() const
Check if the color model contains any spot colors.
virtual bool CopyFrom(const istd::IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS) override
Copy this object from another one.
static std::unique_ptr< ISubstractiveColorModel > CreateSubspaceModelFrom(const CSubstractiveColorModelBase &model, const QStringList &colorantIds)
static ColorantId GetEcgGreen()
ColorantIds GetSpotColorants() const
Get the list of spot colors in this color model.
bool HasEcg() const
Check if the color model contains ECG colorants.
static ColorantId GetEcgOrange()
virtual int GetSupportedOperations() const override
Get set of flags for supported operations.
CSubstractiveColorModel & operator=(const CSubstractiveColorModel &other)
bool SerializeColorantInfo(iser::IArchive &archive, ColorantInfo &colorantInfo, const iser::CArchiveTag *parentTagPtr) const
CSubstractiveColorModel(const CSubstractiveColorModel &other)
virtual istd::TUniqueInterfacePtr< istd::IChangeable > CloneMe(CompatibilityMode mode=CM_WITHOUT_REFS) const override
Make a copy of this object.
Reflects the changes of observed objects as changes of some other object (over istd::IChangeable),...
This model wrapper provides a simple connection between a concrete istd::IChangeable implementation a...
Process tag used to group data in archive stream.
Represents an input/output persistence archive for object serialization.
Common class for all classes which objects can be archived or restored from archive.
Common interface for data model objects, which can be changed.
CompatibilityMode
Control how relationship betweeen objects are interpreted.
@ CM_WITHOUT_REFS
External references are simple ignored.
Unique ownership smart pointer for interface types.
Contains color management classes.
ColorantUsage
Usage of a colorant.
@ CU_NONE
No special usage of the colorant.
bool operator==(const ColorantInfo &ref) const
bool operator!=(const ColorantInfo &ref) const