45 std::shared_ptr<IColorModel> m_modelPtr;
virtual ConstColorModelPtr GetColorModel() const override
Gets the associated color model.
virtual std::unique_ptr< IColorObject > CloneIntoUniquePtr() const override
Creates an independent copy of the color object.
virtual IColorSpecification::ConstColorSpecPtr GetSpecification() const override
CRgbColor(const icmm::CRgb &rgb, ColorModelPtr modelPtr)
Takes a ColorModel (if you want to get particular about the color specification)
CRgbColor(const icmm::CRgb &rgb)
Just pass RGB-values; defaults the ColorModel to D50/2D.
virtual bool Serialize(iser::IArchive &archive) override
Load or store state of this object as a archive stream.
void SetSpecification(const ITristimulusSpecification &spec)
virtual const icmm::CRgb & GetRgb() const override
virtual icmm::CVarColor GetColor() const override
Gets the generic color value representation.
Primitive for representation of RGB color values.
Generic color implementation with variable number of color components.
std::shared_ptr< const IColorSpecification > ConstColorSpecPtr
Interface for RGB color objects with specification support.
Interface for tristimulus-based color specifications.
Represents an input/output persistence archive for object serialization.
Contains color management classes.
std::shared_ptr< const IColorModel > ConstColorModelPtr
std::shared_ptr< IColorModel > ColorModelPtr