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

#include <IccMpeXml.h>

+ Inheritance diagram for CIccMpeXmlExtCLUT:
+ Collaboration diagram for CIccMpeXmlExtCLUT:

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 ~CIccMpeXmlExtCLUT ()
 
- Public Member Functions inherited from CIccMpeExtCLUT
 CIccMpeExtCLUT ()
 Name: CIccMpeExtCLUT::CIccMpeExtCLUT.
 
 CIccMpeExtCLUT (const CIccMpeExtCLUT &clut)
 Name: CIccMpeExtCLUT::CIccMpeExtCLUT.
 
virtual void Describe (std::string &sDescription, int nVerboseness)
 Name: CIccMpeExtCLUT::Describe.
 
icUInt16Number GetStorageType ()
 
virtual icElemTypeSignature GetType () const
 
virtual CIccMultiProcessElementNewCopy () const
 
CIccMpeExtCLUToperator= (const CIccMpeExtCLUT &clut)
 Name: &CIccMpeExtCLUT::operator=.
 
virtual bool Read (icUInt32Number size, CIccIO *pIO)
 Name: CIccMpeExtCLUT::Read.
 
bool SetStorageType (icUInt16Number nStorateType)
 Name: CIccMpeExtCLUT::SetStorageType.
 
virtual icValidateStatus Validate (std::string sigPath, std::string &sReport, const CIccTagMultiProcessElement *pMPE=NULL, const CIccProfile *pProfile=NULL) const
 Name: CIccMpeExtCLUT::Validate.
 
virtual bool Write (CIccIO *pIO)
 Name: CIccMpeExtCLUT::Write.
 
virtual ~CIccMpeExtCLUT ()
 
- 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.
 
CIccCLUTGetCLUT ()
 
virtual CIccApplyMpeGetNewApply (CIccApplyTagMpe *pApplyTag)
 Name: CIccMpeCLUT::Begin.
 
CIccMpeCLUToperator= (const CIccMpeCLUT &clut)
 Name: &CIccMpeCLUT::operator=.
 
void SetCLUT (CIccCLUT *pCLUT)
 Name: CIccMpeCLUT::SetCLUT.
 
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 CIccMpeExtCLUT
icUInt16Number m_nReserved2
 
icUInt16Number m_storageType
 
- 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 192 of file IccMpeXml.h.

Constructor & Destructor Documentation

◆ ~CIccMpeXmlExtCLUT()

virtual CIccMpeXmlExtCLUT::~CIccMpeXmlExtCLUT ( )
inlinevirtual

Definition at line 195 of file IccMpeXml.h.

195{}

Member Function Documentation

◆ GetClassName()

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

Reimplemented from CIccMpeExtCLUT.

Definition at line 197 of file IccMpeXml.h.

197{ return "CIccMpeXmlExtCLUT"; }

◆ GetExtension()

virtual IIccExtensionMpe * CIccMpeXmlExtCLUT::GetExtension ( )
inlinevirtual

Reimplemented from CIccMultiProcessElement.

Definition at line 199 of file IccMpeXml.h.

199{ return this; }

◆ ParseXml()

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

Implements CIccMpeXml.

Definition at line 1922 of file IccMpeXml.cpp.

1923{
1924 m_storageType = (icUInt16Number)atoi(icXmlAttrValue(pNode, "StorageType", "0"));
1925 m_nReserved2 = atoi(icXmlAttrValue(pNode, "Reserved2", "0"));
1926
1927 m_nInputChannels = atoi(icXmlAttrValue(pNode, "InputChannels"));
1928 m_nOutputChannels = atoi(icXmlAttrValue(pNode, "OutputChannels"));
1929
1931 parseStr += "Invalid InputChannels or OutputChannels In ExtCLutElement\n";
1932 return false;
1933 }
1934
1936 if (pCLut) {
1937 SetCLUT(pCLut);
1938 if (m_pCLUT)
1939 return true;
1940 }
1941
1942 return false;
1943}
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_nReserved2
icUInt16Number m_storageType
icUInt16Number m_nOutputChannels
Definition IccTagMPE.h:192
icUInt16Number m_nInputChannels
Definition IccTagMPE.h:191
unsigned short icUInt16Number

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

+ Here is the call graph for this function:

◆ ToXml()

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

Implements CIccMpeXml.

Definition at line 1902 of file IccMpeXml.cpp.

1903{
1904 char attrs[256];
1905 std::string reserved;
1906
1907 if (m_nReserved) {
1908 sprintf(attrs, " Reserved=\"%u\"", m_nReserved);
1909 reserved = attrs;
1910 }
1911
1912 if (m_nReserved2) {
1913 sprintf(attrs, " Reserved2=\"%u\"", m_nReserved2);
1914 reserved += attrs;
1915 }
1916
1917 sprintf(attrs, " InputChannels=\"%d\" OutputChannels=\"%d\"%s StorageType=\"%d\"", NumInputChannels(), NumOutputChannels(), reserved.c_str(), m_storageType);
1918
1919 return icCLUTToXml(xml, m_pCLUT, icConvertFloat, blanks, true, attrs, "ExtCLutElement");
1920}
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: