Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

vuFixelType.h

Go to the documentation of this file.
00001 #ifndef __GENERAL_VULIGHTFIELD_VUFIXELTYPE_H__
00002 #define __GENERAL_VULIGHTFIELD_VUFIXELTYPE_H__
00003 
00004 #include <General/vuSimpleTypes.h>
00005 
00006 template <class TYPE>
00007 class vuFixelType
00008 {
00009  public:
00010   static TYPE getMinValue();
00011   static TYPE getMaxValue();
00012 
00013   static TYPE getPosInfinity();
00014   static TYPE getNegInfinity();
00015 
00016   static bool isByte();
00017   static bool isFloat();
00018 };
00019 
00020 template class vuFixelType<float>;
00021 template class vuFixelType<byte>;
00022 
00023 // ------------------------------------------------------------------------
00024 
00025 template <class INPUT_TYPE, class OUTPUT_TYPE>
00026 class vuFixelTypeConverter
00027 {
00028  public:
00029   static OUTPUT_TYPE getValue(INPUT_TYPE);
00030 };
00031 
00032 template class vuFixelTypeConverter<byte,byte>;
00033 template class vuFixelTypeConverter<byte,float>;
00034 template class vuFixelTypeConverter<float,byte>;
00035 template class vuFixelTypeConverter<float,float>;
00036 
00037 #endif /* __GENERAL_VULIGHTFIELD_VUFIXELTYPE_H__ */

Generated on Wed Dec 15 21:20:34 2004 for vuVolume by  doxygen 1.3.9.1