Hoyt's FORK of DemoIccMAX 2.1.17.hoyt
Documentation for Hoyt's FORK of DemoIccMAX
|
Class: CIccTagNamedColor2. More...
#include <IccTagBasic.h>
Protected Attributes | |
icColorSpaceSignature | m_csDevice |
icColorSpaceSignature | m_csPCS |
SIccNamedColorEntry * | m_NamedColor |
SIccNamedLabEntry * | m_NamedLab |
icUInt32Number | m_nColorEntrySize |
For quick response of repeated FindPCSColor. | |
icUInt32Number | m_nDeviceCoords |
icUInt32Number | m_nSize |
icUInt32Number | m_nVendorFlags |
icChar | m_szPrefix [32] |
icChar | m_szSufix [32] |
Additional Inherited Members | |
![]() | |
static CIccTag * | Create (icTagTypeSignature sig) |
Name: CIccTag::Create. | |
![]() | |
icUInt32Number | m_nReserved |
Class: CIccTagNamedColor2.
Purpose: the NamedColor2 tag - an array of Named Colors
Definition at line 581 of file IccTagBasic.h.
CIccTagNamedColor2::CIccTagNamedColor2 | ( | int | nSize = 1, |
int | nDeviceCoords = 0 ) |
Name: CIccTagNamedColor2::CIccTagNamedColor2.
Purpose: Constructor
Args: nSize = number of named color entries, nDeviceCoords = number of device channels
Definition at line 2660 of file IccTagBasic.cpp.
References icSigUnknownData.
CIccTagNamedColor2::CIccTagNamedColor2 | ( | const CIccTagNamedColor2 & | ITNC | ) |
Name: CIccTagNamedColor2::CIccTagNamedColor2.
Purpose: Copy Constructor
Args: ITNC = The CIccTagNamedColor2 object to be copied
Definition at line 2694 of file IccTagBasic.cpp.
References m_csDevice, m_csPCS, m_NamedColor, m_nColorEntrySize, m_nDeviceCoords, m_nSize, m_nVendorFlags, m_szPrefix, and m_szSufix.
|
virtual |
Name: CIccTagNamedColor2::~CIccTagNamedColor2.
Purpose: Destructor
Definition at line 2759 of file IccTagBasic.cpp.
|
virtual |
Name: CIccTagNamedColor2::Describe.
Purpose: Dump data associated with the tag to a string
Args: sDescription - string to concatenate tag dump to
Reimplemented from CIccTag.
Definition at line 3001 of file IccTagBasic.cpp.
References SIccNamedColorEntry::deviceCoords, icColorIndexName(), icColorValue(), icSigLabData, SIccNamedColorEntry::pcsCoords, and SIccNamedColorEntry::rootName.
icInt32Number CIccTagNamedColor2::FindCachedPCSColor | ( | icFloatNumber * | pPCS, |
icFloatNumber | dMinDE = 1000.0 ) const |
Name: CIccTagNamedColor2::FindPCSColor.
Purpose: Find the PCS color within the specified deltaE
Args: pPCS = PCS co-ordinates, dMinDE = the minimum deltaE (tolerance)
Return: Index of the named color array where the PCS color was found, if the color was not found within the tolerance -1 is returned
Definition at line 3164 of file IccTagBasic.cpp.
References icDeltaE(), icLabFromPcs(), icSigLabData, icXyzFromPcs(), and icXYZtoLab().
icInt32Number CIccTagNamedColor2::FindColor | ( | const icChar * | szColor | ) | const |
Name: CIccTagNamedColor2::FindColor.
Purpose: Find the color with given name
Args: szColor = the color name
Return: Index of the named color array where the color name was found, if the color was not found -1 is returned
Definition at line 3239 of file IccTagBasic.cpp.
icInt32Number CIccTagNamedColor2::FindDeviceColor | ( | icFloatNumber * | pDevColor | ) | const |
Name: CIccTagNamedColor2::FindDeviceColor.
Purpose: Find the device color
Args: pDevColor = device color co-ordinates
Return: Index of the named color array where the closest device color was found, if device representation is absent -1 is returned.
Definition at line 3283 of file IccTagBasic.cpp.
icInt32Number CIccTagNamedColor2::FindPCSColor | ( | icFloatNumber * | pPCS, |
icFloatNumber | dMinDE = 1000.0 ) |
Name: CIccTagNamedColor2::FindPCSColor.
Purpose: Find the PCS color within the specified deltaE
Args: pPCS = PCS co-ordinates, dMinDE = the minimum deltaE (tolerance)
Return: Index of the named color array where the PCS color was found, if the color was not found within the tolerance -1 is returned
Definition at line 3218 of file IccTagBasic.cpp.
icInt32Number CIccTagNamedColor2::FindRootColor | ( | const icChar * | szRootColor | ) | const |
Name: CIccTagNamedColor2::FindRootColor.
Purpose: Find the root color name
Args: szRootColor = string containing the root color name to be found
Return: Index of the named color array where the root color name was found, if the color was not found -1 is returned
Definition at line 3084 of file IccTagBasic.cpp.
References stricmp.
Referenced by CMConvertColorNameToIndex().
|
inlinevirtual |
Reimplemented from CIccTag.
Reimplemented in CIccTagXmlNamedColor2.
Definition at line 591 of file IccTagBasic.h.
bool CIccTagNamedColor2::GetColorName | ( | std::string & | sColorName, |
icInt32Number | index ) const |
Name: CIccTagNamedColor2::GetColorName.
Purpose: Extracts the color name from the named color array
Args: sColorName = string where color name will be stored, index = array index of the color name
Return: true = if the index is within range, false = index out of range
Definition at line 3332 of file IccTagBasic.cpp.
References SIccNamedColorEntry::rootName.
|
inline |
Definition at line 629 of file IccTagBasic.h.
Referenced by CMGetNamedProfileInfo().
|
inline |
Definition at line 634 of file IccTagBasic.h.
|
inline |
Definition at line 626 of file IccTagBasic.h.
Referenced by CMConvertIndexToColorName().
|
inline |
Definition at line 633 of file IccTagBasic.h.
|
inline |
Definition at line 600 of file IccTagBasic.h.
Referenced by CMGetNamedProfileInfo().
|
inline |
Definition at line 628 of file IccTagBasic.h.
Referenced by CMConvertIndexToColorName(), and CMGetNamedProfileInfo().
|
inline |
Definition at line 603 of file IccTagBasic.h.
Referenced by CMGetNamedProfileInfo().
|
inlinevirtual |
Function: GetType()
Purpose: Get Tag Type. Each derived tag will implement it's own GetType() function.
Reimplemented from CIccTag.
Definition at line 590 of file IccTagBasic.h.
References icSigNamedColor2Type.
|
inline |
Definition at line 606 of file IccTagBasic.h.
Referenced by CMGetNamedProfileInfo().
bool CIccTagNamedColor2::InitFindCachedPCSColor | ( | ) |
Name: CIccTagNamedColor2::InitFindPCSColor.
Purpose: Initialization needed for using FindPCSColor
Return: true if successfull, false if failure
Definition at line 3121 of file IccTagBasic.cpp.
References icLabFromPcs(), icSigLabData, icXyzFromPcs(), icXYZtoLab(), and SIccNamedLabEntry::lab.
void CIccTagNamedColor2::Lab2ToLab4 | ( | icFloatNumber * | Dst, |
const icFloatNumber * | Src ) const |
Name: CIccTagNamedColor2::Lab2ToLab4.
Purpose: Convert version 2 Lab to version 4 Lab
Args: Dst = array to store version 4 Lab coordinates, Src = array containing version 2 Lab coordinates
Definition at line 3402 of file IccTagBasic.cpp.
References UnitClip().
void CIccTagNamedColor2::Lab4ToLab2 | ( | icFloatNumber * | Dst, |
const icFloatNumber * | Src ) const |
Name: CIccTagNamedColor2::Lab4ToLab2.
Purpose: Convert version 4 Lab to version 2 Lab
Args: Dst = array to store version 2 Lab coordinates, Src = array containing version 4 Lab coordinates
Definition at line 3421 of file IccTagBasic.cpp.
icFloatNumber CIccTagNamedColor2::NegClip | ( | icFloatNumber | v | ) | const |
Name: CIccTagNamedColor2::NegClip.
Purpose: Negative numbers are clipped to zero
Args: v = number to be clipped
Return: Clipped number
Definition at line 3381 of file IccTagBasic.cpp.
|
inlinevirtual |
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 CIccTag.
Definition at line 587 of file IccTagBasic.h.
CIccTagNamedColor2 & CIccTagNamedColor2::operator= | ( | const CIccTagNamedColor2 & | NamedColor2Tag | ) |
Name: CIccTagNamedColor2::operator=.
Purpose: Copy Operator
Args: NamedColor2Tag = The CIccTagNamedColor2 object to be copied
Definition at line 2724 of file IccTagBasic.cpp.
References m_csDevice, m_csPCS, m_NamedColor, m_nColorEntrySize, m_nDeviceCoords, m_nSize, m_nVendorFlags, m_szPrefix, and m_szSufix.
|
inline |
Definition at line 625 of file IccTagBasic.h.
|
virtual |
Name: CIccTagNamedColor2::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.
Definition at line 2875 of file IccTagBasic.cpp.
References SIccNamedColorEntry::deviceCoords, SIccNamedColorEntry::pcsCoords, CIccIO::Read32(), CIccIO::Read8(), CIccIO::ReadUInt16Float(), SIccNamedColorEntry::rootName, and sig.
void CIccTagNamedColor2::ResetPCSCache | ( | ) |
Call ResetPCSCache() if entry values change between calls to FindPCSColor()
Name: CIccTagNamedColor2::ResetPCSCache.
Purpose: This function is called if entry values change between calls to FindPCSColor()
Definition at line 3103 of file IccTagBasic.cpp.
|
virtual |
Name: CIccTagNamedColor2::SetColorSpaces.
Purpose: Set the device and PCS color space of the tag
Args: csPCS = PCS color space signature, csDevice = Device color space signature
Definition at line 3065 of file IccTagBasic.cpp.
void CIccTagNamedColor2::SetPrefix | ( | const icChar * | szPrefix | ) |
Name: CIccTagNamedColor2::SetPrefix.
Purpose: Set contents of suffix member field
Args: szPrefix - string to set prefix to
Definition at line 2837 of file IccTagBasic.cpp.
bool CIccTagNamedColor2::SetSize | ( | icUInt32Number | nSize, |
icInt32Number | nDeviceCoords = -1 ) |
Name: CIccTagNamedColor2::SetSize.
Purpose: Sets the size of the named color array.
Args: nSize - number of named color entries, nDeviceCoords - number of device channels
Definition at line 2779 of file IccTagBasic.cpp.
References __min, SIccNamedColorEntry::deviceCoords, SIccNamedColorEntry::pcsCoords, and SIccNamedColorEntry::rootName.
void CIccTagNamedColor2::SetSufix | ( | const icChar * | szSufix | ) |
Name: CIccTagNamedColor2::SetSufix.
Purpose: Set contents of suffix member field
Args: szPrefix - string to set prefix to
Definition at line 2854 of file IccTagBasic.cpp.
|
inline |
Definition at line 607 of file IccTagBasic.h.
icFloatNumber CIccTagNamedColor2::UnitClip | ( | icFloatNumber | v | ) | const |
Name: CIccTagNamedColor2::UnitClip.
Purpose: Clip number so that its between 0-1
Args: v = number to be clipped
Return: Clipped number
Definition at line 3358 of file IccTagBasic.cpp.
|
inlinevirtual |
Definition at line 593 of file IccTagBasic.h.
|
virtual |
Name: CIccTagNamedColor2::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.
Definition at line 3443 of file IccTagBasic.cpp.
References CIccInfo::GetSigPathName(), icGetSpaceSamples(), icMaxStatus(), icMsgValidateNonCompliant, icMsgValidateWarning, icValidateNonCompliant, icValidateWarning, and CIccTag::Validate().
|
virtual |
Name: CIccTagNamedColor2::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.
Definition at line 2945 of file IccTagBasic.cpp.
References SIccNamedColorEntry::deviceCoords, SIccNamedColorEntry::pcsCoords, SIccNamedColorEntry::rootName, sig, CIccIO::Write32(), CIccIO::Write8(), and CIccIO::WriteUInt16Float().
|
protected |
Definition at line 657 of file IccTagBasic.h.
Referenced by CIccTagNamedColor2(), and operator=().
|
protected |
Definition at line 656 of file IccTagBasic.h.
Referenced by CIccTagNamedColor2(), and operator=().
|
protected |
Definition at line 648 of file IccTagBasic.h.
Referenced by CIccTagNamedColor2(), and operator=().
|
protected |
Definition at line 649 of file IccTagBasic.h.
|
protected |
For quick response of repeated FindPCSColor.
Definition at line 650 of file IccTagBasic.h.
Referenced by CIccTagNamedColor2(), and operator=().
|
protected |
Definition at line 653 of file IccTagBasic.h.
Referenced by CIccTagNamedColor2(), and operator=().
|
protected |
Definition at line 654 of file IccTagBasic.h.
Referenced by CIccTagNamedColor2(), and operator=().
|
protected |
Definition at line 652 of file IccTagBasic.h.
Referenced by CIccTagNamedColor2(), and operator=().
|
protected |
Definition at line 645 of file IccTagBasic.h.
Referenced by CIccTagNamedColor2(), and operator=().
|
protected |
Definition at line 646 of file IccTagBasic.h.
Referenced by CIccTagNamedColor2(), and operator=().