IccMAX 2.1.27
Color Profile Tools
|
#include <IccTagXml.h>
Public Member Functions | |
virtual | ~CIccTagXmlCurve () |
virtual icFloatNumber | Apply (icFloatNumber v) const |
virtual void | Begin () |
virtual void | Describe (std::string &sDescription, int nVerboseness) |
virtual void | DetachIO () |
virtual void | DumpLut (std::string &sDescription, const icChar *szName, icColorSpaceSignature csSig, int nIndex, int nVerboseness) |
icFloatNumber | Find (icFloatNumber v) |
virtual const char * | GetClassName () const |
icFloatNumber * | GetData (icUInt32Number index) |
virtual const char * | GetExtClassName () const |
virtual const char * | GetExtDerivedClassName () const |
virtual IIccExtensionTag * | GetExtension () |
icUInt32Number | GetSize () const |
virtual icArraySignature | GetTagArrayType () const |
virtual icStructSignature | GetTagStructType () const |
virtual icTagTypeSignature | GetType () const |
virtual bool | IsArrayType () |
virtual bool | IsIdentity () |
virtual bool | IsMBBType () |
virtual bool | IsNumArrayType () const |
virtual bool | IsSupported () |
virtual CIccTag * | NewCopy () const |
icFloatNumber & | operator[] (icUInt32Number index) |
virtual bool | ParseXml (xmlNode *pNode, icConvertType nType, std::string &parseStr) |
virtual bool | ParseXml (xmlNode *pNode, std::string &parseStr) |
virtual bool | Read (icUInt32Number size, CIccIO *pIO) |
virtual bool | Read (icUInt32Number size, CIccIO *pIO, CIccProfile *pProfile) |
virtual bool | ReadAll () |
bool | SetGamma (icFloatNumber gamma) |
bool | SetSize (icUInt32Number nSize, icTagCurveSizeInit nSizeOpt=icInitZero) |
virtual bool | ToXml (std::string &xml, icConvertType nType, std::string blanks="") |
virtual bool | ToXml (std::string &xml, std::string blanks="") |
virtual icValidateStatus | Validate (std::string sigPath, std::string &sReport, const CIccProfile *pProfile=NULL) const |
virtual bool | Write (CIccIO *pIO) |
Static Public Member Functions | |
static CIccTag * | Create (icTagTypeSignature sig) |
Data Fields | |
icUInt32Number | m_nReserved |
Protected Member Functions | |
icFloatNumber | Find (icFloatNumber v, icFloatNumber p0, icFloatNumber v0, icFloatNumber p1, icFloatNumber v1) |
Protected Attributes | |
icFloatNumber * | m_Curve |
icUInt16Number | m_nMaxIndex |
icUInt32Number | m_nSize |
|
inlinevirtual |
|
virtualinherited |
Name: CIccTagCurve::Apply
Purpose: Applies the curve to the value passed.
Args: v = value to be passed through the curve.
Return: The value modified by the curve.
Reimplemented from CIccCurve.
References CIccTagCurve::m_Curve, CIccTagCurve::m_nMaxIndex, and CIccTagCurve::m_nSize.
Referenced by CIccTagLut8::Write().
|
inlinevirtualinherited |
|
staticinherited |
Name: CIccTag::Create
Purpose: This is a static tag creator based upon tag signature type
Args: sig = tag type signature
Return: Pointer to Allocated tag
References CIccTagCreator::CreateTag().
Referenced by CIccDefaultEncProfileConverter::ConvertFromParams(), CIccTagStruct::LoadElem(), CIccProfileXml::ParseTag(), CIccTagXmlStruct::ParseTag(), CIccMpeXmlTintArray::ParseXml(), CIccTagXmlArray::ParseXml(), CIccMpeTintArray::Read(), CIccTagLutAtoB::Read(), CIccTagLut8::Read(), CIccTagLut16::Read(), CIccTagLut8::SetColorSpaces(), CIccTagLut16::SetColorSpaces(), and CIccProfileDescText::SetType().
|
virtualinherited |
Name: CIccTagCurve::Describe
Purpose: Dump data associated with the tag to a string
Args: sDescription - string to concatenate tag dump to
Reimplemented from CIccTag.
References icColorValue(), icSigMCH1Data, CIccTagCurve::m_Curve, and CIccTagCurve::m_nSize.
|
inlinevirtualinherited |
Function: ReadAll() - Read All sub data for tag from file. Called by CIccProfile::ReadAll() to read all sub data for tag
Returns true if ReadAll is successful.
|
virtualinherited |
Name: CIccTagCurve::DumpLut
Purpose: Dump data associated with the tag to a string. Basically has the same function as Describe()
Args: sDescription = string to concatenate tag dump to, szName = name of the curve to be printed, csSig = color space signature of the LUT data, nIndex = the channel number of color space
Reimplemented from CIccCurve.
References icColorValue(), CIccTagCurve::m_Curve, and CIccTagCurve::m_nSize.
|
inlineinherited |
|
protectedinherited |
Name: CIccCurve::Find
Purpose: Read in the tag contents into a data block
Args: v = index to be searched, v0 = index less than/equal to v, p0 = the value at index v0, v1 = index greater than/equal to v, p1 = value at index v1
Return: The value at the requested index
References CIccCurve::Apply(), and CIccCurve::Find().
Referenced by CIccCurve::Find(), and CIccCurve::Find().
|
inlinevirtual |
Reimplemented from CIccTagCurve.
|
inlineinherited |
References CIccTagCurve::m_Curve.
Referenced by ParseXml().
|
inlinevirtualinherited |
Implements IIccExtensionTag.
Referenced by icProfDescToXml(), and icXmlParseProfDesc().
|
inlinevirtualinherited |
Reimplemented from CIccTagXml.
|
inlinevirtual |
Reimplemented from CIccTag.
|
inlineinherited |
References CIccTagCurve::m_nSize.
Referenced by CIccTagLut8::Validate(), CIccTagLut16::Validate(), CIccTagLut8::Write(), and CIccTagLut16::Write().
|
inlinevirtualinherited |
Reimplemented in CIccTagArray.
References icSigUndefinedArray.
Referenced by icGetTagArrayHandlerOfType(), and CIccProfileXml::ParseTag().
|
inlinevirtualinherited |
Reimplemented in CIccTagStruct.
References icSigUndefinedStruct.
Referenced by icGetTagStructHandlerOfType(), CIccArrayColorantInfo::Validate(), and CIccArrayNamedColor::Validate().
|
inlinevirtualinherited |
Function: GetType()
Purpose: Get Tag Type. Each derived tag will implement it's own GetType() function.
Reimplemented from CIccTag.
References icSigCurveType.
Referenced by CIccTagCurve::Write().
|
inlinevirtualinherited |
Reimplemented in CIccTagXYZ, CIccTagChromaticity, CIccTagSparseMatrixArray, CIccTagFixedNum< T, Tsig >, CIccTagNum< T, Tsig >, CIccTagFloatNum< T, Tsig >, and CIccTagData.
Referenced by MyTagDialog::MyTagDialog(), and DumpTag().
|
virtualinherited |
Name: CIccTagCurve::IsIdentity
Purpose: Checks if this is an identity curve.
Return: true if the curve is an identity
Reimplemented from CIccCurve.
References IsUnity(), CIccTagCurve::m_Curve, CIccTagCurve::m_nMaxIndex, CIccTagCurve::m_nSize, and VERYSMALLNUM.
Referenced by ToXml().
|
inlinevirtualinherited |
Reimplemented in CIccMBB.
Referenced by CIccProfileXml::ParseTag().
|
inlinevirtualinherited |
Reimplemented in CIccTagSparseMatrixArray, CIccTagFixedNum< T, Tsig >, CIccTagNum< T, Tsig >, and CIccTagFloatNum< T, Tsig >.
Referenced by CIccArrayNamedColor::FindDeviceColor(), CIccArrayNamedColor::FindPcsColor(), CIccArrayNamedColor::FindSpectralColor(), CIccTagStruct::GetElemNumberValue(), CIccStructNamedColor::GetNumArray(), CIccMpeXmlTintArray::ParseXml(), and CIccMpeTintArray::Read().
|
inlinevirtualinherited |
Function: IsSupported(size, pIO) - Check if tag fully supported for apply purposes. By Default inherited classes are supported. Unknown tag types are not supported.
Returns true if tag type is supported.
Reimplemented in CIccTagUnknown, CIccTagEmbeddedProfile, and CIccTagMultiProcessElement.
|
inlinevirtualinherited |
Function: NewCopy(sDescription) Each derived tag will implement it's own NewCopy() function.
Parameter(s): none
Returns a new CIccTag object that is a copy of this object.
Reimplemented from CIccCurve.
References CIccTagCurve::CIccTagCurve().
|
inlineinherited |
References CIccTagCurve::m_Curve.
Referenced by main(), CIccTagLut8::Read(), CIccTagLut16::Read(), CIccTagLut8::Write(), and CIccTagLut16::Write().
|
virtual |
Implements CIccCurveXml.
References CIccXmlArrayType< T, Tsig >::GetBuf(), CIccTagCurve::GetData(), CIccIO::GetLength(), CIccXmlArrayType< T, Tsig >::GetSize(), icConvert16Bit, icConvert8Bit, icConvertFloat, icConvertVariable, IccOpenFileIO(), icXmlAttrValue(), icXmlFindNode(), CIccTagCurve::m_nSize, CIccXmlArrayType< T, Tsig >::ParseArray(), CIccXmlArrayType< T, Tsig >::ParseTextArrayNum(), CIccIO::Read16(), CIccIO::Read8(), CIccIO::ReadFloat32Float(), and CIccTagCurve::SetSize().
Referenced by ParseXml().
|
virtual |
Implements CIccTagXml.
References icConvert16Bit, and ParseXml().
|
virtualinherited |
Name: CIccTagCurve::Read
Purpose: Read in the tag contents into a data block
Args: size - # of bytes in tag, pIO - IO object to read tag from
Return: true = successful, false = failure
Reimplemented from CIccTag.
References icInitNone, CIccTagCurve::m_Curve, CIccTag::m_nReserved, CIccTagCurve::m_nSize, CIccIO::Read32(), CIccIO::ReadUInt16Float(), and CIccTagCurve::SetSize().
|
inlinevirtualinherited |
Function: Read(size, pIO) - Read tag from file. Each derived tag will implement it's own Read() function.
Parameter(s): size - number of bytes in tag including the type signature. pIO - IO object used to read in tag. The IO object should already be initialized to point to the begining of the tag.
Returns true if Read is successful.
Reimplemented in CIccTagEmbeddedProfile.
References CIccTag::Read().
|
inlinevirtualinherited |
Function: ReadAll() - Read All sub data for tag from file. Called by CIccProfile::ReadAll() to read all sub data for tag
Returns true if ReadAll is successful.
Reimplemented in CIccTagEmbeddedProfile.
|
inherited |
Name: refIccMAX::CIccTagCurve::SetGamma
Purpose: Set the curve with a single gamma value.
Args: gamma - gamma value to use
References icInitNone, CIccTagCurve::m_Curve, and CIccTagCurve::SetSize().
|
inherited |
Name: CIccTagCurve::SetSize
Purpose: Sets the size of the curve array.
Args: nSize - number of entries in the curve, nSizeOpt - flag to zero newly formed values
References icInitIdentity, icInitNone, icInitZero, icRealloc(), CIccTagCurve::m_Curve, CIccTagCurve::m_nMaxIndex, and CIccTagCurve::m_nSize.
Referenced by ParseXml(), CIccTagCurve::Read(), CIccTagLut8::Read(), CIccTagLut16::Read(), CIccTagLut8::SetColorSpaces(), CIccTagLut16::SetColorSpaces(), and CIccTagCurve::SetGamma().
|
virtual |
Implements CIccCurveXml.
References icConvert16Bit, icConvert8Bit, icConvertFloat, icConvertVariable, CIccTagCurve::IsIdentity(), CIccTagCurve::m_Curve, and CIccTagCurve::m_nSize.
Referenced by ToXml().
|
virtual |
Implements CIccTagXml.
References icConvert16Bit, and ToXml().
|
virtualinherited |
Name: CIccTagCurve::Validate
Purpose: Check tag data validity.
Args: sig = signature of tag being validated, sReport = String to add report information to
Return: icValidateStatusOK if valid, or other error status.
Reimplemented from CIccTag.
References CIccInfo::GetSigPathName(), icGetFirstSigPathSig(), icMaxStatus(), icMsgValidateWarning, icSigBlueTRCTag, icSigGrayTRCTag, icSigGreenTRCTag, icSigRedTRCTag, icValidateWarning, CIccTagCurve::m_Curve, CIccTagCurve::m_nSize, and CIccTag::Validate().
|
virtualinherited |
Name: CIccTagCurve::Write
Purpose: Write the tag to a file
Args: pIO - The IO object to write tag to.
Return: true = succesful, false = failure
Reimplemented from CIccTag.
References CIccIO::Align32(), CIccTagCurve::GetType(), CIccTagCurve::m_Curve, CIccTag::m_nReserved, CIccTagCurve::m_nSize, CIccIO::Write32(), and CIccIO::WriteUInt16Float().
|
protectedinherited |
Referenced by CIccTagCurve::CIccTagCurve(), CIccTagCurve::CIccTagCurve(), CIccTagCurve::~CIccTagCurve(), CIccTagCurve::Apply(), CIccTagCurve::Describe(), CIccTagCurve::DumpLut(), CIccTagCurve::GetData(), CIccTagCurve::IsIdentity(), CIccTagCurve::operator=(), CIccTagCurve::operator[](), CIccTagCurve::Read(), CIccTagCurve::SetGamma(), CIccTagCurve::SetSize(), ToXml(), CIccTagCurve::Validate(), and CIccTagCurve::Write().
|
protectedinherited |
|
inherited |
Referenced by CIccTag::CIccTag(), CIccTagMultiProcessElement::CIccTagMultiProcessElement(), CIccTagMultiProcessElement::CIccTagMultiProcessElement(), CIccTagMultiProcessElement::operator=(), CIccProfileXml::ParseTag(), CIccTagXmlStruct::ParseTag(), CIccMpeXmlTintArray::ParseXml(), CIccTagXmlArray::ParseXml(), CIccTagText::Read(), CIccTagUtf8Text::Read(), CIccTagZipUtf8Text::Read(), CIccTagUtf16Text::Read(), CIccTagTextDescription::Read(), CIccTagSignature::Read(), CIccTagNamedColor2::Read(), CIccTagXYZ::Read(), CIccTagChromaticity::Read(), CIccTagCicp::Read(), CIccTagSparseMatrixArray::Read(), CIccTagFixedNum< T, Tsig >::Read(), CIccTagNum< T, Tsig >::Read(), CIccTagFloatNum< T, Tsig >::Read(), CIccTagMeasurement::Read(), CIccTagMultiLocalizedUnicode::Read(), CIccTagData::Read(), CIccTagDateTime::Read(), CIccTagColorantOrder::Read(), CIccTagColorantTable::Read(), CIccTagViewingConditions::Read(), CIccTagProfileSeqDesc::Read(), CIccTagResponseCurveSet16::Read(), CIccTagSpectralDataInfo::Read(), CIccTagSpectralViewingConditions::Read(), CIccTagEmbeddedHeightImage::Read(), CIccTagEmbeddedNormalImage::Read(), CIccTagStruct::Read(), CIccTagArray::Read(), CIccTagDict::Read(), CIccTagCurve::Read(), CIccTagParametricCurve::Read(), CIccTagLutAtoB::Read(), CIccTagLut8::Read(), CIccTagLut16::Read(), CIccTagGamutBoundaryDesc::Read(), CIccTagMultiProcessElement::Read(), CIccTagProfileSequenceId::Read(), CIccTagEmbeddedProfile::Read(), CIccTag::Validate(), CIccTagText::Write(), CIccTagUtf8Text::Write(), CIccTagZipUtf8Text::Write(), CIccTagUtf16Text::Write(), CIccTagTextDescription::Write(), CIccTagSignature::Write(), CIccTagNamedColor2::Write(), CIccTagXYZ::Write(), CIccTagChromaticity::Write(), CIccTagCicp::Write(), CIccTagSparseMatrixArray::Write(), CIccTagFixedNum< T, Tsig >::Write(), CIccTagNum< T, Tsig >::Write(), CIccTagFloatNum< T, Tsig >::Write(), CIccTagMeasurement::Write(), CIccTagMultiLocalizedUnicode::Write(), CIccTagData::Write(), CIccTagDateTime::Write(), CIccTagColorantOrder::Write(), CIccTagColorantTable::Write(), CIccTagViewingConditions::Write(), CIccTagProfileSeqDesc::Write(), CIccTagResponseCurveSet16::Write(), CIccTagSpectralDataInfo::Write(), CIccTagSpectralViewingConditions::Write(), CIccTagEmbeddedHeightImage::Write(), CIccTagEmbeddedNormalImage::Write(), CIccTagStruct::Write(), CIccTagArray::Write(), CIccTagDict::Write(), CIccTagEmbeddedProfile::Write(), CIccTagCurve::Write(), CIccTagParametricCurve::Write(), CIccTagLutAtoB::Write(), CIccTagLut8::Write(), CIccTagLut16::Write(), CIccTagGamutBoundaryDesc::Write(), CIccTagMultiProcessElement::Write(), and CIccTagProfileSequenceId::Write().
|
protectedinherited |
Referenced by CIccTagCurve::CIccTagCurve(), CIccTagCurve::CIccTagCurve(), CIccTagCurve::Apply(), CIccTagCurve::Begin(), CIccTagCurve::Describe(), CIccTagCurve::DumpLut(), CIccTagCurve::GetSize(), CIccTagCurve::IsIdentity(), CIccTagCurve::operator=(), ParseXml(), CIccTagCurve::Read(), CIccTagCurve::SetSize(), ToXml(), CIccTagCurve::Validate(), and CIccTagCurve::Write().