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 namespace hippodraw { 00029 00030 BinsBase::BinsBase ( const char * name ) 00031 : m_name ( name ), 00032 m_scale_factor ( 1.0 ), 00033 m_is_scaling ( false ), 00034 m_values_dirty ( true ), 00035 m_empty ( true ) 00036 { 00037 } 00038 00039 BinsBase::BinsBase ( const BinsBase & binner ) 00040 : m_name ( binner.m_name ), 00041 m_scale_factor ( binner.m_scale_factor ), 00042 m_is_scaling ( binner.m_is_scaling ), 00043 m_values_dirty ( binner.m_values_dirty ), 00044 m_empty ( binner.m_empty ) 00045 { 00046 } 00047 00048 BinsBase::~BinsBase () 00049 { 00050 } 00051 00052 const string & 00053 BinsBase:: 00054 name () const 00055 { 00056 return m_name; 00057 } 00058 00059 bool BinsBase::isDirty () 00060 { 00061 return m_values_dirty; 00062 } 00063 00064 void BinsBase::setDirty() 00065 { 00066 m_values_dirty = true; 00067 } 00068 00069 double BinsBase::scaleFactor () const 00070 { 00071 return 1.0; 00072 } 00073 00074 double BinsBase::getZValue ( double, double ) const 00075 { 00076 return 0; 00077 } 00078 00079 bool 00080 BinsBase:: 00081 isEmpty ( ) const 00082 { 00083 return m_empty; 00084 } 00085 00086 void 00087 BinsBase:: 00088 scaleNumberOfEntries ( double number ) 00089 { 00090 m_scale_factor = number; 00091 } 00092 00093 void 00094 BinsBase:: 00095 setEntriesScaling ( bool on ) 00096 { 00097 m_is_scaling = on; 00098 } 00099 00100 00101 void 00102 BinsBase:: 00103 setMinEntries ( int entries ) 00104 { 00105 } 00106 00107 int 00108 BinsBase:: 00109 getMinEntries () 00110 { 00111 return -1; 00112 } 00113 00114 }// namespace hippodraw 00115