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

#include <IccMpeXml.h>

+ Inheritance diagram for CIccMpeXmlCLUT:
+ Collaboration diagram for CIccMpeXmlCLUT:

Public Member Functions

virtual const char * GetClassName () const
 
virtual IIccExtensionMpeGetExtension ()
 
virtual bool ParseXml (xmlNode *pNode, std::string &parseStr)
 
virtual bool ToXml (std::string &xml, std::string blanks="")
 
virtual ~CIccMpeXmlCLUT ()
 
- Public Member Functions inherited from CIccMpeCLUT
virtual void Apply (CIccApplyMpe *pApply, icFloatNumber *dstPixel, const icFloatNumber *srcPixel) const
 Name: CIccMpeCLUT::Apply.
 
virtual bool Begin (icElemInterp nInterp, CIccTagMultiProcessElement *pMPE)
 Name: CIccMpeCLUT::Begin.
 
 CIccMpeCLUT ()
 Name: CIccMpeCLUT::CIccMpeCLUT.
 
 CIccMpeCLUT (const CIccMpeCLUT &clut)
 Name: CIccMpeCLUT::CIccMpeCLUT.
 
virtual void Describe (std::string &sDescription, int nVerboseness)
 Name: CIccMpeCLUT::Describe.
 
CIccCLUTGetCLUT ()
 
virtual CIccApplyMpeGetNewApply (CIccApplyTagMpe *pApplyTag)
 Name: CIccMpeCLUT::Begin.
 
virtual icElemTypeSignature GetType () const
 
virtual CIccMultiProcessElementNewCopy () const
 
CIccMpeCLUToperator= (const CIccMpeCLUT &clut)
 Name: &CIccMpeCLUT::operator=.
 
virtual bool Read (icUInt32Number size, CIccIO *pIO)
 Name: CIccMpeCLUT::Read.
 
void SetCLUT (CIccCLUT *pCLUT)
 Name: CIccMpeCLUT::SetCLUT.
 
virtual icValidateStatus Validate (std::string sigPath, std::string &sReport, const CIccTagMultiProcessElement *pMPE=NULL, const CIccProfile *pProfile=NULL) const
 Name: CIccMpeCLUT::Validate.
 
virtual bool Write (CIccIO *pIO)
 Name: CIccMpeCLUT::Write.
 
virtual ~CIccMpeCLUT ()
 Name: CIccMpeCLUT::~CIccMpeCLUT.
 
- Public Member Functions inherited from CIccMultiProcessElement
 CIccMultiProcessElement ()
 
virtual icAcsSignature GetBAcsSig ()
 
virtual icAcsSignature GetEAcsSig ()
 
virtual bool IsAcs ()
 
virtual bool IsLateBinding () const
 
virtual bool IsLateBindingReflectance () const
 
virtual bool IsSupported ()
 
virtual icUInt16Number NumInputChannels () const
 
virtual icUInt16Number NumOutputChannels () const
 
virtual ~CIccMultiProcessElement ()
 
- Public Member Functions inherited from CIccMpeXml
virtual const char * GetExtClassName ()
 
virtual ~CIccMpeXml (void)
 

Additional Inherited Members

- Static Public Member Functions inherited from CIccMultiProcessElement
static CIccMultiProcessElementCreate (icElemTypeSignature sig)
 Name: CIccMultiProcessElement::Create.
 
- Public Attributes inherited from CIccMultiProcessElement
icUInt32Number m_nReserved
 
- Protected Attributes inherited from CIccMpeCLUT
icCLUTElemType m_interpType
 
CIccCLUTm_pCLUT
 
- Protected Attributes inherited from CIccMultiProcessElement
icUInt16Number m_nInputChannels
 
icUInt16Number m_nOutputChannels
 

Detailed Description

Definition at line 179 of file IccMpeXml.h.

Constructor & Destructor Documentation

◆ ~CIccMpeXmlCLUT()

virtual CIccMpeXmlCLUT::~CIccMpeXmlCLUT ( )
inlinevirtual

Definition at line 182 of file IccMpeXml.h.

182{}

Member Function Documentation

◆ GetClassName()

virtual const char * CIccMpeXmlCLUT::GetClassName ( ) const
inlinevirtual

Reimplemented from CIccMpeCLUT.

Definition at line 184 of file IccMpeXml.h.

184{ return "CIccMpeXmlCLUT"; }

◆ GetExtension()

virtual IIccExtensionMpe * CIccMpeXmlCLUT::GetExtension ( )
inlinevirtual

Reimplemented from CIccMultiProcessElement.

Definition at line 186 of file IccMpeXml.h.

186{ return this; }

◆ ParseXml()

bool CIccMpeXmlCLUT::ParseXml ( xmlNode * pNode,
std::string & parseStr )
virtual

Implements CIccMpeXml.

Definition at line 1882 of file IccMpeXml.cpp.

1883{
1884 m_nInputChannels = atoi(icXmlAttrValue(pNode, "InputChannels"));
1885 m_nOutputChannels = atoi(icXmlAttrValue(pNode, "OutputChannels"));
1886
1888 parseStr += "Invalid InputChannels or OutputChannels In CLutElement\n";
1889 return false;
1890 }
1891
1893 if (pCLut) {
1894 SetCLUT(pCLut);
1895 if (m_pCLUT)
1896 return true;
1897 }
1898
1899 return false;
1900}
CIccCLUT * icCLutFromXml(xmlNode *pNode, int nIn, int nOut, icConvertType nType, std::string &parseStr)
const char * icXmlAttrValue(xmlAttr *attr, const char *szDefault)
@ icConvertFloat
Class: CIccCLUT.
Definition IccTagLut.h:326
void SetCLUT(CIccCLUT *pCLUT)
Name: CIccMpeCLUT::SetCLUT.
CIccCLUT * m_pCLUT
icUInt16Number m_nOutputChannels
Definition IccTagMPE.h:192
icUInt16Number m_nInputChannels
Definition IccTagMPE.h:191

References icCLutFromXml(), icConvertFloat, and icXmlAttrValue().

+ Here is the call graph for this function:

◆ ToXml()

bool CIccMpeXmlCLUT::ToXml ( std::string & xml,
std::string blanks = "" )
virtual

Implements CIccMpeXml.

Definition at line 1868 of file IccMpeXml.cpp.

1869{
1870 char attrs[256];
1871
1872 if (m_nReserved) {
1873 sprintf(attrs, " InputChannels=\"%d\" OutputChannels=\"%d\" Reserved=\"%u\"", NumInputChannels(), NumOutputChannels(), m_nReserved);
1874 }
1875 else {
1876 sprintf(attrs, " InputChannels=\"%d\" OutputChannels=\"%d\"", NumInputChannels(), NumOutputChannels());
1877 }
1878
1879 return icCLUTToXml(xml, m_pCLUT, icConvertFloat, blanks, true, attrs, "CLutElement");
1880}
bool icCLUTToXml(std::string &xml, CIccCLUT *pCLUT, icConvertType nType, std::string blanks, bool bSaveGridPoints, const char *szExtraAttrs, const char *szName)
virtual icUInt16Number NumInputChannels() const
Definition IccTagMPE.h:159
virtual icUInt16Number NumOutputChannels() const
Definition IccTagMPE.h:160
icUInt32Number m_nReserved
Definition IccTagMPE.h:188

References icCLUTToXml(), and icConvertFloat.

+ Here is the call graph for this function:

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