Changeset View
Changeset View
Standalone View
Standalone View
libs/pigment/KoColorSpaceRegistry.h
Show First 20 Lines • Show All 213 Lines • ▼ Show 20 Line(s) | 84 | public: | |||
---|---|---|---|---|---|
214 | * Return the id of the colorspace that have the defined colorModelId with colorDepthId. | 214 | * Return the id of the colorspace that have the defined colorModelId with colorDepthId. | ||
215 | * @param colorModelId id of the color model | 215 | * @param colorModelId id of the color model | ||
216 | * @param colorDepthId id of the color depth | 216 | * @param colorDepthId id of the color depth | ||
217 | * @return the id of the wanted colorspace, or "" if no colorspace correspond to those ids | 217 | * @return the id of the wanted colorspace, or "" if no colorspace correspond to those ids | ||
218 | */ | 218 | */ | ||
219 | QString colorSpaceId(const KoID& colorModelId, const KoID& colorDepthId) const; | 219 | QString colorSpaceId(const KoID& colorModelId, const KoID& colorDepthId) const; | ||
220 | 220 | | |||
221 | /** | 221 | /** | ||
222 | * @return a the identifiant of the color model for the given color space id. | 222 | * @return the identifier of the color model for the given color space id. | ||
223 | * | 223 | * | ||
224 | * This function is a compatibility function used to get the color space from | 224 | * This function is a compatibility function used to get the color space from | ||
225 | * all kra files. | 225 | * all kra files. | ||
226 | */ | 226 | */ | ||
227 | KoID colorSpaceColorModelId(const QString & _colorSpaceId) const; | 227 | KoID colorSpaceColorModelId(const QString & _colorSpaceId) const; | ||
228 | 228 | | |||
229 | /** | 229 | /** | ||
230 | * @return a the identifiant of the color depth for the given color space id. | 230 | * @return the identifier of the color depth for the given color space id. | ||
231 | * | 231 | * | ||
232 | * This function is a compatibility function used to get the color space from | 232 | * This function is a compatibility function used to get the color space from | ||
233 | * all kra files. | 233 | * all kra files. | ||
234 | */ | 234 | */ | ||
235 | KoID colorSpaceColorDepthId(const QString & _colorSpaceId) const; | 235 | KoID colorSpaceColorDepthId(const QString & _colorSpaceId) const; | ||
236 | 236 | | |||
237 | /** | 237 | /** | ||
238 | * Convenience methods to get the often used alpha colorspaces | 238 | * Convenience methods to get the often used alpha colorspaces | ||
▲ Show 20 Lines • Show All 99 Lines • ▼ Show 20 Line(s) | 325 | private: | |||
338 | * @return a list with an instance of all color space with their default profile. | 338 | * @return a list with an instance of all color space with their default profile. | ||
339 | */ | 339 | */ | ||
340 | QList<const KoColorSpace*> allColorSpaces(ColorSpaceListVisibility visibility, ColorSpaceListProfilesSelection pSelection); | 340 | QList<const KoColorSpace*> allColorSpaces(ColorSpaceListVisibility visibility, ColorSpaceListProfilesSelection pSelection); | ||
341 | 341 | | |||
342 | /** | 342 | /** | ||
343 | * @return the color conversion system use by the registry and the color | 343 | * @return the color conversion system use by the registry and the color | ||
344 | * spaces to create color conversion transformation. | 344 | * spaces to create color conversion transformation. | ||
345 | * | 345 | * | ||
346 | * WARNING: conversion system is guared by the registry locks, don't | 346 | * WARNING: conversion system is guarded by the registry locks, don't | ||
347 | * use it anywhere other than unttests! | 347 | * use it anywhere other than unittests! | ||
348 | */ | 348 | */ | ||
349 | const KoColorConversionSystem* colorConversionSystem() const; | 349 | const KoColorConversionSystem* colorConversionSystem() const; | ||
350 | 350 | | |||
351 | private: | 351 | private: | ||
352 | KoColorSpaceRegistry(const KoColorSpaceRegistry&); | 352 | KoColorSpaceRegistry(const KoColorSpaceRegistry&); | ||
353 | KoColorSpaceRegistry operator=(const KoColorSpaceRegistry&); | 353 | KoColorSpaceRegistry operator=(const KoColorSpaceRegistry&); | ||
354 | void init(); | 354 | void init(); | ||
355 | 355 | | |||
356 | private: | 356 | private: | ||
357 | struct Private; | 357 | struct Private; | ||
358 | Private * const d; | 358 | Private * const d; | ||
359 | }; | 359 | }; | ||
360 | 360 | | |||
361 | #endif // KOCOLORSPACEREGISTRY_H | 361 | #endif // KOCOLORSPACEREGISTRY_H |