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

#include <IccSparseMatrix.h>

+ Inheritance diagram for CIccSparseMatrixUInt16:
+ Collaboration diagram for CIccSparseMatrixUInt16:

Public Member Functions

 CIccSparseMatrixUInt16 ()
 
virtual icFloatNumber get (int index) const
 
virtual void set (int index, icFloatNumber value)
 
- Public Member Functions inherited from CIccSparseMatrixEntry< icUInt16Number >
 CIccSparseMatrixEntry ()
 
virtual icUInt8NumbergetPtr (int index) const
 
void init (void *pData)
 
virtual icUInt8Number size () const
 
- Public Member Functions inherited from IIccSparseMatrixEntry
virtual ~IIccSparseMatrixEntry ()
 

Additional Inherited Members

- Protected Attributes inherited from CIccSparseMatrixEntry< icUInt16Number >
icUInt16Numberm_pData
 

Detailed Description

Definition at line 116 of file IccSparseMatrix.h.

Constructor & Destructor Documentation

◆ CIccSparseMatrixUInt16()

CIccSparseMatrixUInt16::CIccSparseMatrixUInt16 ( )
inline

Definition at line 119 of file IccSparseMatrix.h.

119{}

Member Function Documentation

◆ get()

virtual icFloatNumber CIccSparseMatrixUInt16::get ( int index) const
inlinevirtual

Implements IIccSparseMatrixEntry.

Definition at line 121 of file IccSparseMatrix.h.

121{return (icFloatNumber)m_pData[index]/65535.0f;}
float icFloatNumber
All floating point operations/variables in IccProfLib use the icFloatNumber data type.
Definition IccDefs.h:100
icUInt16Number * m_pData

References CIccSparseMatrixEntry< icUInt16Number >::m_pData.

◆ set()

virtual void CIccSparseMatrixUInt16::set ( int index,
icFloatNumber value )
inlinevirtual

Implements IIccSparseMatrixEntry.

Definition at line 122 of file IccSparseMatrix.h.

122{m_pData[index] = value<0.0 ? 0 : (value > 1.0 ? 65535 : (icUInt8Number)(value*65535.0f+0.5f));}
unsigned char icUInt8Number
Number definitions.

References CIccSparseMatrixEntry< icUInt16Number >::m_pData.


The documentation for this class was generated from the following file: