StripChart.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 "StripChart.h"
00018 
00019 #include "projectors/StripChartProjector.h"
00020 #include "reps/LinePointRep.h"
00021 
00022 using namespace hippodraw;
00023 
00024 StripChart::StripChart ( )
00025 {
00026   m_name = "Strip Chart";
00027 
00028   m_projector = new StripChartProjector();
00029   m_rep = new LinePointRep();
00030 }
00031 
00032 DataRep * StripChart::clone ()
00033 {
00034   return new StripChart ( *this );
00035 }
00036 
00037 bool StripChart::acceptFunction ( int num )
00038 {
00039   return num == 1;
00040 }
00041 
00042 using namespace hippodraw;
00043 
00044 bool
00045 StripChart::
00046 hasAxis ( hippodraw::Axes::Type axis ) const
00047 {
00048   return axis == Axes::X || axis == Axes::Y;
00049 }
00050 
00051 bool
00052 StripChart::
00053 hasZoomY () const
00054 {
00055   return true;
00056 }

Generated for HippoDraw Class Library by doxygen