00001 00012 // for truncation warning in debug mode 00013 #ifdef _MSC_VER 00014 #include "msdevstudio/MSconfig.h" 00015 #endif 00016 00017 #include "DyHistogramEqualEntries.h" 00018 00019 #include "projectors/EqualEntriesHist1DProjector.h" 00020 #include "reps/ColumnPointRep.h" 00021 00022 // using namespace hippodraw; 00023 namespace hippodraw { 00024 00025 DyHistogramEqualEntries::DyHistogramEqualEntries ( ) 00026 : DataRep () 00027 { 00028 m_name = "Histogram (EqualEntries)"; 00029 00030 m_projector = new EqualEntriesHist1DProjector( ); 00031 m_rep = new ColumnPointRep(); 00032 } 00033 00034 DataRep * DyHistogramEqualEntries::clone () 00035 { 00036 return new DyHistogramEqualEntries ( *this ); 00037 } 00038 00039 bool DyHistogramEqualEntries::acceptFunction ( int num ) 00040 { 00041 return num == 1; 00042 } 00043 00044 bool 00045 DyHistogramEqualEntries:: 00046 hasErrorDisplay () const 00047 { 00048 return true; 00049 } 00050 00051 void 00052 DyHistogramEqualEntries:: 00053 setPointRep ( RepBase * rep ) 00054 { 00055 DataRep::setPointRep ( rep ); 00056 if ( rep -> name () == "Symbol" ) { 00057 rep -> setSize ( 4. ); 00058 setErrorDisplay ( Axes::Y, true ); 00059 notifyObservers (); 00060 } 00061 } 00062 00063 bool 00064 DyHistogramEqualEntries:: 00065 hasAxis ( hippodraw::Axes::Type axis ) const 00066 { 00067 return axis == Axes::X || axis == Axes::Y; 00068 } 00069 00070 } // namespace hippodraw