IccMAX 2.1.27
Color Profile Tools
|
#include <IccTagBasic.h>
Static Public Member Functions | |
static CIccTag * | Create (icTagTypeSignature sig) |
Data Fields | |
icFloatXYZNumber | m_illuminantXYZ |
icUInt32Number | m_nReserved |
icUInt16Number | m_reserved2 |
icUInt16Number | m_reserved3 |
icFloatXYZNumber | m_surroundXYZ |
Class: CIccTagSpectralViewingConditions
Purpose: The responseCurveSet16 Tag type
CIccTagSpectralViewingConditions::CIccTagSpectralViewingConditions | ( | ) |
Name: CIccTagSpectralViewingConditions::CIccTagSpectralViewingConditions
Purpose: Constructor
References icSpectralRange::end, icIlluminantD50, icStdObs1931TwoDegrees, m_colorTemperature, m_illuminant, m_illuminantRange, m_illuminantXYZ, m_observer, m_observerRange, m_stdIlluminant, m_stdObserver, m_surroundXYZ, icSpectralRange::start, icSpectralRange::steps, icFloatXYZNumber::X, icFloatXYZNumber::Y, and icFloatXYZNumber::Z.
CIccTagSpectralViewingConditions::CIccTagSpectralViewingConditions | ( | const CIccTagSpectralViewingConditions & | SVCT | ) |
Name: CIccTagSpectralViewingConditions::CIccTagSpectralViewingConditions
Purpose: Copy Constructor
Args: SVCT = The CIccTagSpectralViewingConditions object to be copied
References icSpectralRange::end, m_colorTemperature, m_illuminant, m_illuminantRange, m_illuminantXYZ, m_observer, m_observerRange, m_stdIlluminant, m_stdObserver, m_surroundXYZ, icSpectralRange::start, icSpectralRange::steps, icFloatXYZNumber::X, icFloatXYZNumber::Y, and icFloatXYZNumber::Z.
Referenced by NewCopy().
|
virtual |
Name: CIccTagSpectralViewingConditions::~CIccTagResponseCurveSet16
Purpose: Destructor
References m_illuminant, and m_observer.
icFloatNumber * CIccTagSpectralViewingConditions::applyRangeToObserver | ( | const icSpectralRange & | newRange | ) | const |
References m_observer, m_observerRange, CIccMatrixMath::rangeMap(), icSpectralRange::steps, and CIccMatrixMath::VectorMult().
|
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().
|
virtual |
Name: CIccTagSpectralViewingConditions::Describe
Purpose: Dump data associated with the tag to a string
Args: sDescription - string to concatenate tag dump to
Reimplemented from CIccTag.
References icSpectralRange::end, CIccInfo::GetIlluminantName(), CIccInfo::GetStandardObserverName(), icF16toF(), m_colorTemperature, m_illuminant, m_illuminantRange, m_illuminantXYZ, m_observer, m_observerRange, m_stdIlluminant, m_stdObserver, m_surroundXYZ, icSpectralRange::start, icSpectralRange::steps, icFloatXYZNumber::X, icFloatXYZNumber::Y, and icFloatXYZNumber::Z.
|
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.
|
inlinevirtual |
Reimplemented from CIccTag.
Reimplemented in CIccTagXmlSpectralViewingConditions.
|
inlinevirtualinherited |
Reimplemented in CIccTagXmlUnknown, CIccTagXmlText, CIccTagXmlUtf8Text, CIccTagXmlZipUtf8Text, CIccTagXmlZipXml, CIccTagXmlUtf16Text, CIccTagXmlTextDescription, CIccTagXmlSignature, CIccTagXmlNamedColor2, CIccTagXmlXYZ, CIccTagXmlChromaticity, CIccTagXmlCicp, CIccTagXmlSparseMatrixArray, CIccTagXmlFixedNum< T, Tsig >, CIccTagXmlNum< T, A, Tsig >, CIccTagXmlFloatNum< T, A, Tsig >, CIccTagXmlMeasurement, CIccTagXmlMultiLocalizedUnicode, CIccTagXmlTagData, CIccTagXmlDateTime, CIccTagXmlColorantOrder, CIccTagXmlColorantTable, CIccTagXmlViewingConditions, CIccTagXmlSpectralDataInfo, CIccTagXmlSpectralViewingConditions, CIccTagXmlProfileSeqDesc, CIccTagXmlResponseCurveSet16, CIccTagXmlCurve, CIccTagXmlParametricCurve, CIccTagXmlSegmentedCurve, CIccTagXmlLutAtoB, CIccTagXmlLutBtoA, CIccTagXmlLut8, CIccTagXmlLut16, CIccTagXmlMultiProcessElement, CIccTagXmlProfileSequenceId, CIccTagXmlDict, CIccTagXmlStruct, CIccTagXmlArray, CIccTagXmlGamutBoundaryDesc, CIccTagXmlEmbeddedHeightImage, CIccTagXmlEmbeddedNormalImage, and CIccTagXmlEmbeddedProfile.
Referenced by icCurvesFromXml(), icCurvesToXml(), icProfDescToXml(), icXmlParseProfDesc(), CIccProfileXml::ParseTag(), CIccTagXmlStruct::ParseTag(), CIccMpeXmlTintArray::ParseXml(), CIccTagXmlArray::ParseXml(), CIccMpeXmlTintArray::ToXml(), CIccTagXmlStruct::ToXml(), CIccTagXmlArray::ToXml(), and CIccProfileXml::ToXmlWithBlanks().
const icFloatNumber * CIccTagSpectralViewingConditions::getIlluminant | ( | icSpectralRange & | illumRange | ) | const |
References icKnownIllumObsRange, icKnownIllums, icIllumDef::illum, m_illuminant, m_illuminantRange, m_stdIlluminant, icIllumDef::spd, and icSpectralRange::steps.
Referenced by CIccCombinedConnectionConditions::CIccCombinedConnectionConditions(), CIccMpeReflectanceCLUT::Begin(), CIccMpeReflectanceObserver::Begin(), IIccProfileConnectionConditions::getObserverIlluminantScaleFactor(), IIccProfileConnectionConditions::getReflectanceObserver(), IIccProfileConnectionConditions::hasIlluminantSPD(), and Validate().
|
inline |
References m_colorTemperature.
Referenced by CIccCombinedConnectionConditions::CIccCombinedConnectionConditions(), and IIccProfileConnectionConditions::getPccCCT().
const icFloatNumber * CIccTagSpectralViewingConditions::getObserver | ( | icSpectralRange & | observerRange | ) | const |
References icObserverDef::cmf, icKnownIllumObsRange, icKnownObservers, m_observer, m_observerRange, m_stdObserver, icObserverDef::obs, and icSpectralRange::steps.
Referenced by IIccProfileConnectionConditions::getEmissiveObserver(), IIccProfileConnectionConditions::getObserverIlluminantScaleFactor(), IIccProfileConnectionConditions::getObserverWhiteScaleFactor(), and Validate().
CIccMatrixMath * CIccTagSpectralViewingConditions::getObserverMatrix | ( | const icSpectralRange & | newRange | ) | const |
References CIccMatrixMath::CIccMatrixMath(), CIccMatrixMath::entry(), m_observer, m_observerRange, icSpectralRange::steps, and CIccMatrixMath::VectorMult().
Referenced by IIccProfileConnectionConditions::getReflectanceObserver().
|
inline |
References m_stdIlluminant.
Referenced by CIccCombinedConnectionConditions::CIccCombinedConnectionConditions(), and IIccProfileConnectionConditions::getPccIlluminant().
|
inline |
References m_stdObserver.
Referenced by IIccProfileConnectionConditions::getPccObserver().
|
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().
|
inlinevirtual |
Function: GetType()
Purpose: Get Tag Type. Each derived tag will implement it's own GetType() function.
Reimplemented from CIccTag.
References icSigSpectralViewingConditionsType.
Referenced by Write().
|
inlinevirtualinherited |
Reimplemented in CIccTagXYZ, CIccTagChromaticity, CIccTagSparseMatrixArray, CIccTagFixedNum< T, Tsig >, CIccTagNum< T, Tsig >, CIccTagFloatNum< T, Tsig >, and CIccTagData.
Referenced by MyTagDialog::MyTagDialog(), and DumpTag().
|
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.
|
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.
References CIccTagSpectralViewingConditions().
Referenced by CIccCombinedConnectionConditions::CIccCombinedConnectionConditions().
CIccTagSpectralViewingConditions & CIccTagSpectralViewingConditions::operator= | ( | const CIccTagSpectralViewingConditions & | SVCT | ) |
Name: CIccTagSpectralViewingConditions::operator=
Purpose: Copy Operator
Args: specViewCondTag = The CIccTagSpectralViewingConditions object to be copied
References icSpectralRange::end, m_colorTemperature, m_illuminant, m_illuminantRange, m_illuminantXYZ, m_observer, m_observerRange, m_stdIlluminant, m_stdObserver, m_surroundXYZ, icSpectralRange::start, icSpectralRange::steps, icFloatXYZNumber::X, icFloatXYZNumber::Y, and icFloatXYZNumber::Z.
|
virtual |
Name: CIccTagSpectralViewingConditions::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 icSpectralRange::end, m_colorTemperature, m_illuminant, m_illuminantRange, m_illuminantXYZ, CIccTag::m_nReserved, m_observer, m_observerRange, m_reserved2, m_reserved3, m_stdIlluminant, m_stdObserver, m_surroundXYZ, CIccIO::Read16(), CIccIO::Read32(), CIccIO::ReadFloat32Float(), setIlluminant(), icSpectralRange::start, and icSpectralRange::steps.
|
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.
bool CIccTagSpectralViewingConditions::setIlluminant | ( | icFloatNumber * | pWhiteXYZ | ) |
References icD50XYZ, icIlluminantD50, icIlluminantD65, icIlluminantUnknown, icIsNear(), icStdObs1931TwoDegrees, m_stdObserver, and setIlluminant().
Referenced by CIccDefaultEncProfileConverter::ConvertFromParams().
bool CIccTagSpectralViewingConditions::setIlluminant | ( | icIlluminant | illumId, |
const icSpectralRange & | illumRange, | ||
const icFloatNumber * | illum, | ||
icFloatNumber | illumCCT = 0.0f |
||
) |
References m_colorTemperature, m_illuminant, m_illuminantRange, m_stdIlluminant, and icSpectralRange::steps.
Referenced by CIccCombinedConnectionConditions::CIccCombinedConnectionConditions(), CIccTagXmlSpectralViewingConditions::ParseXml(), Read(), and setIlluminant().
bool CIccTagSpectralViewingConditions::setObserver | ( | icStandardObserver | observerId, |
const icSpectralRange & | observerRange, | ||
const icFloatNumber * | observer | ||
) |
References m_illuminantRange, m_observer, m_observerRange, m_stdObserver, and icSpectralRange::steps.
|
virtual |
Name: CIccTagSpectralViewingConditions::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::CheckData(), CIccInfo::CheckData(), CIccInfo::CheckLuminance(), getIlluminant(), getObserver(), CIccInfo::GetSigPathName(), icMaxStatus(), icMsgValidateCriticalError, icMsgValidateNonCompliant, icValidateCriticalError, icValidateNonCompliant, m_illuminant, m_illuminantRange, m_illuminantXYZ, m_observer, m_observerRange, m_surroundXYZ, CIccTag::Validate(), and icHeader::version.
|
virtual |
Name: CIccTagSpectralViewingConditions::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 icSpectralRange::end, GetType(), m_colorTemperature, m_illuminant, m_illuminantRange, m_illuminantXYZ, CIccTag::m_nReserved, m_observer, m_observerRange, m_reserved2, m_reserved3, m_stdIlluminant, m_stdObserver, m_surroundXYZ, icSpectralRange::start, icSpectralRange::steps, CIccIO::Write16(), CIccIO::Write32(), and CIccIO::WriteFloat32Float().
|
protected |
|
protected |
Referenced by CIccTagSpectralViewingConditions(), CIccTagSpectralViewingConditions(), ~CIccTagSpectralViewingConditions(), Describe(), getIlluminant(), operator=(), CIccTagXmlSpectralViewingConditions::ParseXml(), Read(), setIlluminant(), CIccTagXmlSpectralViewingConditions::ToXml(), Validate(), and Write().
|
protected |
icFloatXYZNumber CIccTagSpectralViewingConditions::m_illuminantXYZ |
Referenced by CIccCombinedConnectionConditions::CIccCombinedConnectionConditions(), CIccTagSpectralViewingConditions(), CIccTagSpectralViewingConditions(), CIccDefaultEncProfileConverter::ConvertFromParams(), Describe(), operator=(), CIccTagXmlSpectralViewingConditions::ParseXml(), Read(), CIccTagXmlSpectralViewingConditions::ToXml(), Validate(), and Write().
|
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(), 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(), 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().
|
protected |
Referenced by CIccTagSpectralViewingConditions(), CIccTagSpectralViewingConditions(), ~CIccTagSpectralViewingConditions(), applyRangeToObserver(), Describe(), getObserver(), getObserverMatrix(), operator=(), CIccTagXmlSpectralViewingConditions::ParseXml(), Read(), setObserver(), CIccTagXmlSpectralViewingConditions::ToXml(), Validate(), and Write().
|
protected |
Referenced by CIccTagSpectralViewingConditions(), CIccTagSpectralViewingConditions(), applyRangeToObserver(), Describe(), getObserver(), getObserverMatrix(), operator=(), CIccTagXmlSpectralViewingConditions::ParseXml(), Read(), setObserver(), CIccTagXmlSpectralViewingConditions::ToXml(), Validate(), and Write().
icUInt16Number CIccTagSpectralViewingConditions::m_reserved2 |
icUInt16Number CIccTagSpectralViewingConditions::m_reserved3 |
|
protected |
|
protected |
icFloatXYZNumber CIccTagSpectralViewingConditions::m_surroundXYZ |