float32Channel Class Reference

float32Channel Class Reference

#include <image.h>

Class Description

Definition at line 178 of file image.h.

Public Member Functions

 float32Channel (const float32Channel &d)
 
 float32Channel (const float16Channel &d)
 
 float32Channel (const uInt16Channel &d)
 
 float32Channel (const uInt8Channel &d)
 
 float32Channel (float d)
 
 float32Channel ()
 
float32Channeloperator= (const float32Channel &d)
 
float32Channeloperator= (const float16Channel &d)
 
float32Channeloperator= (const uInt16Channel &d)
 
float32Channeloperator= (float d)
 
float32Channeloperator= (const uInt8Channel &d)
 
 operator float () const
 
 operator half_ () const
 
 operator uInt16 () const
 
 operator uInt8 () const
 

Constructor & Destructor Documentation

float32Channel ( const float32Channel d)
inline

Definition at line 183 of file image.h.

183 { m_data = float(d); }
float32Channel ( const float16Channel d)
inline

Definition at line 346 of file image.h.

346 { m_data = float(d); }
float32Channel ( const uInt16Channel d)
inline

Definition at line 185 of file image.h.

185 { m_data = float(d); }
float32Channel ( const uInt8Channel d)
inline

Definition at line 186 of file image.h.

186 { m_data = float(d); }
float32Channel ( float  d)
inline

Definition at line 187 of file image.h.

187 { m_data = (d); }
float32Channel ( )
inline

Definition at line 188 of file image.h.

188 {}

Member Function Documentation

float32Channel& operator= ( const float32Channel d)
inline

Definition at line 190 of file image.h.

191  {
192  *(float *)this = *(float *)&d;
193  return *this;
194  }
float32Channel& operator= ( const float16Channel d)
inline

Definition at line 196 of file image.h.

197  {
198  *this = float32Channel(d);
199  return *this;
200  }
float32Channel& operator= ( const uInt16Channel d)
inline

Definition at line 202 of file image.h.

203  {
204  *this = float32Channel(d);
205  return *this;
206  }
float32Channel& operator= ( float  d)
inline

Definition at line 208 of file image.h.

209  {
210  *this = float32Channel(d);
211  return *this;
212  }
float32Channel& operator= ( const uInt8Channel d)
inline

Definition at line 214 of file image.h.

215  {
216  *this = float32Channel(d);
217  return *this;
218  }
operator float ( ) const
inline

Definition at line 220 of file image.h.

220 { return m_data; }
operator half_ ( ) const
inline

Definition at line 221 of file image.h.

221 { return half_(m_data); }
operator uInt16 ( ) const
inline

Definition at line 222 of file image.h.

223  {
224  if (m_data < 0.0f) return 0;
225  if (m_data > 1.0f) return 65535;
226  return uInt16(m_data * 65535.0f);
227  }
unsigned short uInt16
Definition: image.h:88
GLclampf f
Definition: GLee.h:9303
operator uInt8 ( ) const
inline

Definition at line 228 of file image.h.

229  {
230  if (m_data < 0.0f) return 0;
231  if (m_data > 1.0f) return 255;
232  return uInt8(m_data * 255.0f);
233  }
unsigned char uInt8
Definition: image.h:87
GLclampf f
Definition: GLee.h:9303

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