BinsBase.cxx
Go to the documentation of this file.
1 
12 #ifdef _MSC_VER
13 #include "msdevstudio/MSconfig.h"
14 #endif
15 
16 #include "BinsBase.h"
17 
18 #include <cassert>
19 
20 #ifdef ITERATOR_MEMBER_DEFECT
21 using namespace std;
22 #else
23 using std::list;
24 using std::string;
25 using std::vector;
26 #endif
27 
28 namespace hippodraw {
29 
30 BinsBase::BinsBase ( const char * name )
31  : m_name ( name ),
32  m_scale_factor ( 1.0 ),
33  m_is_scaling ( false ),
34  m_values_dirty ( true ),
35  m_empty ( true )
36 {
37 }
38 
39 BinsBase::BinsBase ( const BinsBase & binner )
40  : m_name ( binner.m_name ),
41  m_scale_factor ( binner.m_scale_factor ),
42  m_is_scaling ( binner.m_is_scaling ),
43  m_values_dirty ( binner.m_values_dirty ),
44  m_empty ( binner.m_empty )
45 {
46 }
47 
49 {
50 }
51 
52 const string &
54 name () const
55 {
56  return m_name;
57 }
58 
60 {
61  return m_values_dirty;
62 }
63 
65 {
66  m_values_dirty = true;
67 }
68 
69 double BinsBase::scaleFactor () const
70 {
71  return 1.0;
72 }
73 
74 double BinsBase::getZValue ( double, double ) const
75 {
76  return 0;
77 }
78 
79 bool
81 isEmpty ( ) const
82 {
83  return m_empty;
84 }
85 
86 void
88 scaleNumberOfEntries ( double number )
89 {
90  m_scale_factor = number;
91 }
92 
93 void
95 setEntriesScaling ( bool on )
96 {
97  m_is_scaling = on;
98 }
99 
100 
101 void
103 setMinEntries ( int entries )
104 {
105 }
106 
107 int
110 {
111  return -1;
112 }
113 
114 }// namespace hippodraw
115 

Generated for HippoDraw Class Library by doxygen