Hoyt's FORK of DemoIccMAX 2.1.17.hoyt
Documentation for Hoyt's FORK of DemoIccMAX
|
Class: CIccTagFloatNum. More...
#include <IccTagBasic.h>
Public Member Functions | |
CIccTagFloatNum (const CIccTagFloatNum< T, Tsig > &ITNum) | |
Name: CIccTagFloatNum::CIccTagFloatNum. | |
CIccTagFloatNum (int nSize=1) | |
Name: CIccTagFloatNum::CIccTagFloatNum. | |
virtual void | Describe (std::string &sDescription, int nVerboseness) |
Name: CIccTagFloatNum::Describe. | |
virtual const icChar * | GetClassName () const |
Name: CIccTagFloatNum::GetClassName. | |
virtual icUInt32Number | GetNumValues () const |
icUInt32Number | GetSize () const |
Returns the size of the data array. | |
virtual icTagTypeSignature | GetType () const |
Function: GetType() | |
virtual bool | GetValues (icFloatNumber *DstVector, icUInt32Number nStart=0, icUInt32Number nVectorSize=1) const |
Name: CIccTagFloatNum::GetValues. | |
virtual bool | Interpolate (icFloatNumber *DstVector, icFloatNumber val, icUInt32Number nVectorSize=1, icFloatNumber *zeroVals=NULL) const |
Name: CIccTagFloatNum::Interpolate. | |
virtual bool | IsArrayType () |
virtual bool | IsMatrixArray () const |
virtual bool | IsNumArrayType () const |
virtual CIccTag * | NewCopy () const |
Function: NewCopy(sDescription) Each derived tag will implement it's own NewCopy() function. | |
CIccTagFloatNum & | operator= (const CIccTagFloatNum< T, Tsig > &NumTag) |
Name: CIccTagFloatNum::operator=. | |
T & | operator[] (icUInt32Number index) |
virtual bool | Read (icUInt32Number size, CIccIO *pIO) |
Name: CIccTagFloatNum::Read. | |
bool | SetSize (icUInt32Number nSize, bool bZeroNew=true) |
Name: CIccTagFloatNum::SetSize. | |
virtual icValidateStatus | Validate (std::string sigPath, std::string &sReport, const CIccProfile *pProfile=NULL) const |
Name: CIccTagFloatNum::Interpolate. | |
virtual bool | ValuePos (icFloatNumber &DstPos, icFloatNumber val, bool &bNoZero) const |
Name: CIccTagFloatNum::ValuePos. | |
virtual bool | Write (CIccIO *pIO) |
Name: CIccTagFloatNum::Write. | |
virtual | ~CIccTagFloatNum () |
Name: CIccTagFloatNum::~CIccTagFloatNum. | |
![]() | |
CIccTag () | |
Name: CIccTag::CIccTag. | |
virtual void | DetachIO () |
Function: ReadAll() - Read All sub data for tag from file. | |
virtual IIccExtensionTag * | GetExtension () |
virtual icArraySignature | GetTagArrayType () const |
virtual icStructSignature | GetTagStructType () const |
virtual bool | IsMBBType () |
virtual bool | IsSupported () |
Function: IsSupported(size, pIO) - Check if tag fully supported for apply purposes. | |
virtual bool | Read (icUInt32Number size, CIccIO *pIO, CIccProfile *pProfile) |
Function: Read(size, pIO) - Read tag from file. | |
virtual bool | ReadAll () |
Function: ReadAll() - Read All sub data for tag from file. | |
virtual | ~CIccTag () |
Name: CIccTag::CIccTag. | |
Protected Attributes | |
icUInt32Number | m_nSize |
T * | m_Num |
Additional Inherited Members | |
![]() | |
static CIccTag * | Create (icTagTypeSignature sig) |
Name: CIccTag::Create. | |
![]() | |
icUInt32Number | m_nReserved |
Class: CIccTagFloatNum.
Purpose: A template class for arrays of floating point numbers
Derived Tags: CIccTagFloat32 and CIccTagFloat64
Definition at line 1057 of file IccTagBasic.h.
CIccTagFloatNum< T, Tsig >::CIccTagFloatNum | ( | int | nSize = 1 | ) |
Name: CIccTagFloatNum::CIccTagFloatNum.
Purpose: Constructor
Args: nSize = number of data entries
Definition at line 6162 of file IccTagBasic.cpp.
CIccTagFloatNum< T, Tsig >::CIccTagFloatNum | ( | const CIccTagFloatNum< T, Tsig > & | ITNum | ) |
Name: CIccTagFloatNum::CIccTagFloatNum.
Purpose: Copy Constructor
Args: ITNum = The CIccTagNum object to be copied
Definition at line 6182 of file IccTagBasic.cpp.
References CIccTagFloatNum< T, Tsig >::m_nSize, and CIccTagFloatNum< T, Tsig >::m_Num.
|
virtual |
Name: CIccTagFloatNum::~CIccTagFloatNum.
Purpose: Destructor
Definition at line 6226 of file IccTagBasic.cpp.
|
virtual |
Name: CIccTagFloatNum::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 6387 of file IccTagBasic.cpp.
|
virtual |
Name: CIccTagFloatNum::GetClassName.
Purpose: Returns the tag type class name
Reimplemented from CIccTag.
Reimplemented in CIccTagXmlFloatNum< T, A, Tsig >.
Definition at line 6241 of file IccTagBasic.cpp.
References icSigFloat16ArrayType, icSigFloat32ArrayType, and icSigFloat64ArrayType.
|
inlinevirtual |
Implements CIccTagNumArray.
Definition at line 1085 of file IccTagBasic.h.
Referenced by CIccDefaultEncProfileConverter::ConvertFromParams().
|
inline |
Returns the size of the data array.
Definition at line 1079 of file IccTagBasic.h.
Referenced by CIccDefaultEncProfileConverter::ConvertFromParams(), and icGetParamFloatNum().
|
inlinevirtual |
Function: GetType()
Purpose: Get Tag Type. Each derived tag will implement it's own GetType() function.
Reimplemented from CIccTag.
Definition at line 1068 of file IccTagBasic.h.
|
virtual |
Name: CIccTagFloatNum::GetValues.
Purpose: Gets values from the num array tag as floating point numbers
Args: nSize - number of data entries, bZeroNew - flag to zero newly formed values
Implements CIccTagNumArray.
Definition at line 6484 of file IccTagBasic.cpp.
Referenced by CIccDefaultEncProfileConverter::ConvertFromParams().
|
virtual |
Name: CIccTagFloatNum::Interpolate.
Purpose: Gets values from the num array tag as floating point numbers
Args: nSize - number of data entries, bZeroNew - flag to zero newly formed values
Implements CIccTagNumArray.
Definition at line 6545 of file IccTagBasic.cpp.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
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 1063 of file IccTagBasic.h.
CIccTagFloatNum< T, Tsig > & CIccTagFloatNum< T, Tsig >::operator= | ( | const CIccTagFloatNum< T, Tsig > & | ITNum | ) |
Name: CIccTagFloatNum::operator=.
Purpose: Copy Operator
Args: ITNum = The CIccTagNum object to be copied
Definition at line 6202 of file IccTagBasic.cpp.
References CIccTagFloatNum< T, Tsig >::m_nSize, and CIccTagFloatNum< T, Tsig >::m_Num.
|
inline |
Definition at line 1076 of file IccTagBasic.h.
|
virtual |
Name: CIccTagFloatNum::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 6269 of file IccTagBasic.cpp.
References icSigFloat16ArrayType, icSigFloat32ArrayType, icSigFloat64ArrayType, CIccIO::Read32(), CIccIO::Read64(), CIccIO::ReadFloat16Float(), and sig.
bool CIccTagFloatNum< T, Tsig >::SetSize | ( | icUInt32Number | nSize, |
bool | bZeroNew = true ) |
Name: CIccTagFloatNum::SetSize.
Purpose: Sets the size of the data array.
Args: nSize - number of data entries, bZeroNew - flag to zero newly formed values
Definition at line 6452 of file IccTagBasic.cpp.
References icRealloc().
|
virtual |
Name: CIccTagFloatNum::Interpolate.
Purpose: Gets values from the num array tag as floating point numbers
Args: nSize - number of data entries, bZeroNew - flag to zero newly formed values
Reimplemented from CIccTag.
Definition at line 6510 of file IccTagBasic.cpp.
References CIccInfo::GetSigPathName(), icGetFirstSigPathSig(), icGetMaterialColorSpaceSamples(), icMaxStatus(), icMsgValidateCriticalError, icSigMaterialDefaultValuesTag, icValidateCriticalError, icValidateOK, and CIccTag::Validate().
|
virtual |
Name: CIccTagFloatNum::ValuePos.
Purpose: Gets position of a value int the num array tag
Args: DstPos - position of val in array val - value to look for in array. bNoZero - flag indicating whether first entry is zero
Implements CIccTagNumArray.
Definition at line 6620 of file IccTagBasic.cpp.
|
virtual |
Name: CIccTagFloatNum::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 6344 of file IccTagBasic.cpp.
References icSigFloat16ArrayType, icSigFloat32ArrayType, icSigFloat64ArrayType, sig, CIccIO::Write32(), CIccIO::Write64(), and CIccIO::WriteFloat16Float().
|
protected |
Definition at line 1097 of file IccTagBasic.h.
Referenced by CIccTagFloatNum< T, Tsig >::CIccTagFloatNum(), and CIccTagFloatNum< T, Tsig >::operator=().
|
protected |
Definition at line 1096 of file IccTagBasic.h.
Referenced by CIccTagFloatNum< T, Tsig >::CIccTagFloatNum(), and CIccTagFloatNum< T, Tsig >::operator=().