00001 00012 // for truncation warning in debug mode 00013 #ifdef _MSC_VER 00014 #include "msdevstudio/MSconfig.h" 00015 #endif 00016 00017 #include "ScatterPlot.h" 00018 00019 #include "projectors/Map2Projector.h" 00020 00021 namespace hippodraw { 00022 00023 ScatterPlot::ScatterPlot ( ) 00024 { 00025 m_name = "Scatter Plot"; 00026 00027 m_projector = new Map2Projector(); 00028 m_rep = new SymbolPointRep ( Symbol::SOLIDSQUARE, 2.0 ); 00029 } 00030 00031 DataRep * ScatterPlot::clone () 00032 { 00033 return new ScatterPlot( *this ); 00034 } 00035 00036 bool ScatterPlot::acceptFunction ( int num ) 00037 { 00038 return num == 1; 00039 } 00040 00041 bool 00042 ScatterPlot:: 00043 hasAxis ( hippodraw::Axes::Type axis ) const 00044 { 00045 return axis == Axes::X || axis == Axes::Y; 00046 } 00047 00048 bool 00049 ScatterPlot:: 00050 hasZoomY ( ) const 00051 { 00052 return true; 00053 } 00054 00055 } // namespace hippodraw 00056