krita

KisColorSpaceFactoryRegistry Class Reference

#include <kis_colorspace_factory_registry.h>

Inheritance diagram for KisColorSpaceFactoryRegistry:

KisGenericRegistry< KisColorSpaceFactory * >

List of all members.


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)
void addProfile (KisProfile *p)
KisProfile * getProfileByName (const QString &name)
QValueVector< KisProfile * > profilesFor (KisColorSpaceFactory *cs)
QValueVector< KisProfile * > profilesFor (KisID id)
KisColorSpacegetColorSpace (const KisID &csID, const QString &profileName)
KisColorSpacegetColorSpace (const KisID &csID, const KisProfile *profile)
KisColorSpacegetAlpha8 ()
KisColorSpacegetRGB8 ()
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::addProfile ( KisProfile *  p  ) 

Add the profile to the list.

Definition at line 130 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.

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.

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.

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::getAlpha8 (  ) 

Convenience method to get the often used alpha colorspace.

Definition at line 212 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.

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.

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.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys