Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

St1DHistogram.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 "St1DHistogram.h"
00018 
00019 #include "projectors/StHist1DProjector.h"
00020 #include "reps/ColumnPointRep.h"
00021 
00022 St1DHistogram::St1DHistogram ( )
00023 {
00024   m_name = "Static Histogram";
00025 
00026   m_projector = new StHist1DProjector();
00027   m_rep = new ColumnPointRep();
00028 }
00029 
00030 DataRep * St1DHistogram::clone ()
00031 {
00032   return new St1DHistogram ( *this );
00033 }
00034 
00035 bool St1DHistogram::acceptFunction ( int num )
00036 {
00037   return num == 1;
00038 }
00039 
00040 bool
00041 St1DHistogram::
00042 hasErrorDisplay () const
00043 {
00044   return true;
00045 }
00046 
00047 bool
00048 St1DHistogram::
00049 hasNTupleBindings ( ) const
00050 {
00051   return false;
00052 }
00053 
00054 void
00055 St1DHistogram::
00056 setBinContents ( const DataSource * source )
00057 {
00058   BinningProjector * projector 
00059     = dynamic_cast < BinningProjector * > ( m_projector );
00060   assert ( projector != 0 );
00061 
00062   projector -> setBinContents ( source );
00063 }
00064 
00065 using namespace hippodraw;
00066 
00067 bool
00068 St1DHistogram::
00069 hasAxis ( hippodraw::Axes::Type axis ) const
00070 {
00071   return axis == Axes::X || axis == Axes::Y;
00072 }
00073 

Generated for HippoDraw-1.14.8.5 by doxygen 1.4.3