Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ProfileHist.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 "ProfileHist.h"
00018 
00019 #include "projectors/ProfileProjector.h"
00020 #include "reps/SymbolPointRep.h"
00021 
00022 using namespace hippodraw;
00023 
00024 // @request Could we make the size of the SymbolPointRep configurable
00025 // by the user instead of hard-wired into each datarep constructor?
00026 
00027 ProfileHist::ProfileHist ( )
00028 {
00029   m_name = "Profile";
00030 
00031   m_projector = new ProfileProjector();
00032   m_rep = new SymbolPointRep ( Symbol::SOLIDSQUARE, 4.0 );
00033   setErrorDisplay ( Axes::Y, true );
00034 }
00035 
00036 DataRep * ProfileHist::clone ()
00037 {
00038   return new ProfileHist ( *this );
00039 }
00040 
00041 bool ProfileHist::acceptFunction ( int num )
00042 {
00043   return num == 1;
00044 }
00045 
00046 bool
00047 ProfileHist::
00048 hasErrorDisplay () const
00049 {
00050   return true;
00051 }
00052 
00053 bool
00054 ProfileHist::
00055 hasAxis ( hippodraw::Axes::Type axis ) const
00056 {
00057   return axis == Axes::X || axis == Axes::Y;
00058 }
00059 

Generated for HippoDraw-1.14.8.5 by doxygen 1.4.3