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

Generated for HippoDraw Class Library by doxygen