00001 00012 #ifdef _MSC_VER 00013 #include "msdevstudio/MSconfig.h" 00014 #endif 00015 00016 #include "BinsBase.h" 00017 00018 #include <cassert> 00019 00020 #ifdef ITERATOR_MEMBER_DEFECT 00021 using namespace std; 00022 #else 00023 using std::list; 00024 using std::string; 00025 using std::vector; 00026 #endif 00027 00028 BinsBase::BinsBase ( const char * name ) 00029 : m_name ( name ), 00030 m_scale_factor ( 1.0 ), 00031 m_is_scaling ( false ), 00032 m_values_dirty ( true ), 00033 m_empty ( true ) 00034 { 00035 } 00036 00037 BinsBase::BinsBase ( const BinsBase & binner ) 00038 : m_name ( binner.m_name ), 00039 m_scale_factor ( binner.m_scale_factor ), 00040 m_is_scaling ( binner.m_is_scaling ), 00041 m_values_dirty ( binner.m_values_dirty ), 00042 m_empty ( binner.m_empty ) 00043 { 00044 } 00045 00046 BinsBase::~BinsBase () 00047 { 00048 } 00049 00050 const string & 00051 BinsBase:: 00052 name () const 00053 { 00054 return m_name; 00055 } 00056 00057 bool BinsBase::isDirty () 00058 { 00059 return m_values_dirty; 00060 } 00061 00062 void BinsBase::setDirty() 00063 { 00064 m_values_dirty = true; 00065 } 00066 00067 double BinsBase::scaleFactor () const 00068 { 00069 return 1.0; 00070 } 00071 00072 double BinsBase::getZValue ( double x, double y ) const 00073 { 00074 return 0; 00075 } 00076 00077 bool 00078 BinsBase:: 00079 isEmpty ( ) const 00080 { 00081 return m_empty; 00082 } 00083 00084 void 00085 BinsBase:: 00086 scaleNumberOfEntries ( double number ) 00087 { 00088 m_scale_factor = number; 00089 } 00090 00091 void 00092 BinsBase:: 00093 setEntriesScaling ( bool on ) 00094 { 00095 m_is_scaling = on; 00096 }