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

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

Generated for HippoDraw-1.14.8.5 by doxygen 1.4.3