openModeller
Version 1.4.0
|
00001 00027 #ifndef _SCALENORMALIZER_HH 00028 #define _SCALENORMALIZER_HH 00029 00030 #include <openmodeller/Normalizer.hh> 00031 00032 class dllexp ScaleNormalizer : public Normalizer { 00033 00034 public: 00035 00036 friend class test_ScaleNormalizer; 00037 00038 // Used only during deserialization 00039 ScaleNormalizer(); 00040 00041 ScaleNormalizer( Scalar min, Scalar max, bool useLayerAsRef ); 00042 00043 ~ScaleNormalizer(); 00044 00045 void computeNormalization( const ReferenceCountedPointer<const SamplerImpl>& samplerPtr ); 00046 00047 void normalize( Sample * samplePtr ); 00048 00049 Normalizer * getCopy(); 00050 00051 ConfigurationPtr getConfiguration() const; 00052 00053 void setConfiguration( const ConstConfigurationPtr & ); 00054 00055 private: 00056 00057 Scalar _min; 00058 Scalar _max; 00059 bool _use_layer_as_ref; 00060 Sample _offsets; 00061 Sample _scales; 00062 00063 }; 00064 00065 #endif