Horus Doc || C++ Reference || Class Overview   Pixels   Images   Detector   Geometry   Registry || Doxygen's quick Index  

HxImageSig3dShort.h

00001 /*  
00002  *  Copyright (c) 1998, University of Amsterdam, The Netherlands.
00003  *  All rights reserved.
00004  *
00005  *
00006  *  Author(s):
00007  *  Dennis Koelma (koelma@wins.uva.nl)
00008  *  Edo Poll (poll@wins.uva.nl)
00009  */
00010  
00011 #ifndef HxImageSig3dShort_h
00012 #define HxImageSig3dShort_h
00013  
00014  
00015 #include "HxImageSignature.h"
00016 #include "HxPixelAllocator.h"
00017 
00018 #include "HxScalarInt.h"
00019 #include "HxScalarDouble.h"
00020 #include "HxDataPtr3dScalarTem.h"
00021 
00022 class HxImageSig3dInt;
00023 class HxImageSig3dDouble;
00024 class HxImageSig2dShort;
00025  
00026 
00029 class HxImageSig3dShort : public HxImageSignature {
00030 public:
00031     typedef short                       PixelType;
00032     typedef HxScalarInt                 ArithType;
00033     typedef HxScalarDouble              ArithTypeDouble;
00034 
00035     typedef HxDataPtr3dScalarTem<       
00036                 PixelType, ArithType>   DataPtrType;
00037 
00038     typedef HxPixelAllocator<PixelType> Allocator;
00039 
00040     typedef HxImageSig2dShort           ProjectDomainImageSigType;
00041     typedef HxImageSig3dInt             ArithImageSigType;
00042     typedef HxImageSig3dDouble          ArithImageSigTypeDouble;
00043 
00044                                         HxImageSig3dShort();
00045  
00046     enum { ID = SIG_ID(3, 1, INT_VALUE, sizeof(PixelType) << 3) };
00047 };  
00048  
00049 template<>
00050 struct HxClassName<HxImageSig3dShort> {
00051     operator HxString() {
00052         static HxImageSig3dShort sig;
00053         return sig.toString();
00054     }
00055 };
00056 
00057 inline
00058 HxImageSig3dShort::HxImageSig3dShort()
00059 {
00060     _imageDimensionality = 3;
00061     _pixelDimensionality = 1;
00062     _pixelType = INT_VALUE;
00063     _pixelPrecision = sizeof(PixelType) << 3;
00064 }
00065  
00066 #endif
00067 

Generated on Mon Jan 27 15:48:44 2003 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001