Hoyt's FORK of DemoIccMAX 2.1.17.hoyt
Documentation for Hoyt's FORK of DemoIccMAX
Loading...
Searching...
No Matches
CIccBaseXformFactory Class Reference

Class: CIccBaseXformFactory. More...

#include <IccXformFactory.h>

+ Inheritance diagram for CIccBaseXformFactory:
+ Collaboration diagram for CIccBaseXformFactory:

Public Member Functions

virtual CIccXform * CreateXform (icXformType xformType, CIccTag *pTag=NULL, CIccCreateXformHintManager *pHintManager=NULL)
 Function: CreateXform(xformTypeSig) Create a xform of type xformTypeSig.
 
- Public Member Functions inherited from IIccXformFactory
virtual ~IIccXformFactory ()
 

Detailed Description

Class: CIccBaseXformFactory.

Purpose: CIccSpecXformFactory provides creation of Base CIccXform's. The CIccXformCreator always creates a CIccSpecXformFactory.

Definition at line 135 of file IccXformFactory.h.

Member Function Documentation

◆ CreateXform()

CIccXform * CIccBaseXformFactory::CreateXform ( icXformType xformType,
CIccTag * pTag = NULL,
CIccCreateXformHintManager * pHintManager = NULL )
virtual

Function: CreateXform(xformTypeSig) Create a xform of type xformTypeSig.

Parameter(s): xformTypeSig = signature of the ICC xform type for the xform to be created pTag = tag information for created xform pHintManager = contains additional information used to create xform

Returns a new CIccXform object of the given xform type. Unrecognized xformTypeSig's will be created as a CIccXformUnknown object.

Implements IIccXformFactory.

Definition at line 78 of file IccXformFactory.cpp.

79{
80 //We generally ignore pHint in the base creator (used by others to determine what form of xform to create)
81 switch(xformSig) {
83 return new CIccXformMatrixTRC();
84
86 return new CIccXform3DLut(pTag);
87
89 return new CIccXform4DLut(pTag);
90
92 return new CIccXformNDLut(pTag);
93
95 if (pHintManager) {
96 IIccCreateXformHint* pHint = pHintManager->GetHint("CIccCreateNamedColorXformHint");
97 if (pHint) {
98 CIccCreateNamedColorXformHint *pNCHint = (CIccCreateNamedColorXformHint*)pHint;
99 return new CIccXformNamedColor(pTag, pNCHint->csPcs, pNCHint->csDevice,
100 pNCHint->csSpectralPcs,
101 &pNCHint->spectralRange,
102 &pNCHint->biSpectralRange);
103 }
104 }
105 return NULL;
106
107 case icXformTypeMpe:
108 return new CIccXformMpe(pTag);
109
111 return new CIccXformMonochrome();
112
113 default:
114 return NULL;
115 }
116}
@ icXformTypeMpe
Definition IccCmm.h:154
@ icXformTypeMatrixTRC
Definition IccCmm.h:149
@ icXformTypeNDLut
Definition IccCmm.h:152
@ icXformTypeMonochrome
Definition IccCmm.h:155
@ icXformType3DLut
Definition IccCmm.h:150
@ icXformType4DLut
Definition IccCmm.h:151
@ icXformTypeNamedColor
Definition IccCmm.h:153

References icXformType3DLut, icXformType4DLut, icXformTypeMatrixTRC, icXformTypeMonochrome, icXformTypeMpe, icXformTypeNamedColor, and icXformTypeNDLut.


The documentation for this class was generated from the following files: