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