DyHistogram.cxx

Go to the documentation of this file.
00001 
00012 // for truncation warning in debug mode
00013 #ifdef _MSC_VER
00014 #include "msdevstudio/MSconfig.h"
00015 #endif
00016 
00017 #include "DyHistogram.h"
00018 
00019 #include "projectors/DyHist1DProjector.h"
00020 #include "reps/ColumnPointRep.h"
00021 
00022 // using namespace hippodraw;
00023 namespace hippodraw {
00024 
00025 DyHistogram::DyHistogram ( )
00026   : DataRep ()
00027 {
00028   m_name = "Histogram";
00029 
00030   m_projector = new DyHist1DProjector();
00031   m_rep = new ColumnPointRep();
00032 }
00033 
00034 DataRep * DyHistogram::clone ()
00035 {
00036   return new DyHistogram ( *this );
00037 }
00038 
00039 bool DyHistogram::acceptFunction ( int num )
00040 {
00041   return num == 1;
00042 }
00043 
00044 bool
00045 DyHistogram::
00046 hasErrorDisplay () const
00047 {
00048   return true;
00049 }
00050 
00051 void
00052 DyHistogram::
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 DyHistogram::
00065 hasAxis ( hippodraw::Axes::Type axis ) const
00066 {
00067   return axis == Axes::X || axis == Axes::Y;
00068 }
00069 
00070 } // namespace hippodraw

Generated for HippoDraw Class Library by doxygen