krita
KisColorSpaceFactoryRegistry Class Reference
#include <kis_colorspace_factory_registry.h>
Inheritance diagram for KisColorSpaceFactoryRegistry:

Detailed Description
This class contains:- a registry of colorspace instantiated with specific profiles.
- a registry of singleton colorspace factories.
- a registry of icc profiles
Definition at line 35 of file kis_colorspace_factory_registry.h.
Public Member Functions | |
KisColorSpaceFactoryRegistry (QStringList profileFileNames) | |
virtual | ~KisColorSpaceFactoryRegistry () |
void | addProfile (KisProfile *p) |
KisProfile * | getProfileByName (const QString &name) |
QValueVector< KisProfile * > | profilesFor (KisColorSpaceFactory *cs) |
QValueVector< KisProfile * > | profilesFor (KisID id) |
KisColorSpace * | getColorSpace (const KisID &csID, const QString &profileName) |
KisColorSpace * | getColorSpace (const KisID &csID, const KisProfile *profile) |
KisColorSpace * | getAlpha8 () |
KisColorSpace * | getRGB8 () |
void | addPaintDeviceAction (KisColorSpace *cs, KisPaintDeviceAction *action) |
QValueVector< KisPaintDeviceAction * > | paintDeviceActionsFor (KisColorSpace *cs) |
Constructor & Destructor Documentation
KisColorSpaceFactoryRegistry::KisColorSpaceFactoryRegistry | ( | QStringList | profileFileNames | ) |
Create a new colorspacefactory registry.
The registry will load all colorspace modules that have the right version and all profiles given in the list. It is always possible to add more profiles with addProfile()
- Parameters:
-
profileFileNames a list of all filenames of all profiles that need to be loaded initially
Definition at line 35 of file kis_colorspace_factory_registry.cc.
Member Function Documentation
void KisColorSpaceFactoryRegistry::addPaintDeviceAction | ( | KisColorSpace * | cs, | |
KisPaintDeviceAction * | action | |||
) |
add a KisConstructPaintDeviceAction to the registry for a colorspace
These actions are exectued when an image is created on the first layer in the image, on the image width and height rect.
Definition at line 137 of file kis_colorspace_factory_registry.cc.
void KisColorSpaceFactoryRegistry::addProfile | ( | KisProfile * | p | ) |
KisColorSpace * KisColorSpaceFactoryRegistry::getAlpha8 | ( | ) |
Convenience method to get the often used alpha colorspace.
Definition at line 212 of file kis_colorspace_factory_registry.cc.
KisColorSpace * KisColorSpaceFactoryRegistry::getColorSpace | ( | const KisID & | csID, | |
const KisProfile * | profile | |||
) |
Return the colorspace + profile -- where the profile is matched on the name of the specified profile.
Definition at line 185 of file kis_colorspace_factory_registry.cc.
KisColorSpace * KisColorSpaceFactoryRegistry::getColorSpace | ( | const KisID & | csID, | |
const QString & | profileName | |||
) |
Return the colorspace + profile as named, or NULL if impossible combination.
Definition at line 147 of file kis_colorspace_factory_registry.cc.
KisProfile * KisColorSpaceFactoryRegistry::getProfileByName | ( | const QString & | name | ) |
Return the profile associated with the given product name, or 0.
Definition at line 101 of file kis_colorspace_factory_registry.cc.
KisColorSpace * KisColorSpaceFactoryRegistry::getRGB8 | ( | ) |
Convenience method to get an RGB colorspace with the default lcms profile.
Definition at line 217 of file kis_colorspace_factory_registry.cc.
QValueVector< KisPaintDeviceAction * > KisColorSpaceFactoryRegistry::paintDeviceActionsFor | ( | KisColorSpace * | cs | ) |
Get a list of KisConstructPaintDeviceAction for a colorspace.
Definition at line 143 of file kis_colorspace_factory_registry.cc.
QValueVector< KisProfile * > KisColorSpaceFactoryRegistry::profilesFor | ( | KisColorSpaceFactory * | cs | ) |
Return the vector of profiles for this colorspacefactory.
Definition at line 115 of file kis_colorspace_factory_registry.cc.
The documentation for this class was generated from the following files: