00001 /* -*- mode: c++ -*- */ 00002 00012 #ifndef _StripChartProjector_H_ 00013 #define _StripChartProjector_H_ 00014 00015 #include "projectors/Map2Projector.h" 00016 00017 namespace hippodraw { 00018 00019 /*** A derived class of Map2Projector that maps 2 DataSource columns 00020 to the projection with the initial x projection value being the 00021 smallest value in the data source column bound to the x 00022 projection. 00023 00024 @bug If the Y axis points go out of range, the plot becomes in 00025 correct in that the lines to no go to the range border. 00026 00027 @author Paul F. Kunz <Paul_Kunz@slac.stanford.edu> 00028 @author Matan Shacham <matan@slac.stanford.edu> 00029 */ 00030 class MDL_HIPPOPLOT_API StripChartProjector : public Map2Projector 00031 { 00032 00033 private: 00034 00036 StripChartProjector ( const StripChartProjector & projector ); 00037 00039 virtual void addPointReps (); 00040 00041 public: 00042 00044 StripChartProjector(); 00045 00048 ProjectorBase * clone (); 00049 00054 virtual void fillProjectedValues ( DataSource * ntuple, 00055 bool in_range = false ) const; 00056 00057 }; 00058 00059 } // namespace hippodraw 00060 00061 #endif // _StripChartProjector_H_