PointRepBase.cxx

Go to the documentation of this file.
00001 
00011 #ifdef _MSC_VER
00012 #include "msdevstudio/MSconfig.h"
00013 #endif
00014 
00015 #include "PointRepBase.h"
00016 
00017 #include "ErrorBarRep.h"
00018 
00019 #include "graphics/ViewBase.h"
00020 
00021 using std::string;
00022 
00023 namespace hippodraw {
00024 
00025 PointRepBase::PointRepBase ( const char * name, float size )
00026   : RepBase ( name, size ),
00027     m_error_rep ( 0 )
00028 {
00029 }
00030 
00031 PointRepBase::PointRepBase ( const PointRepBase & point_rep )
00032   : RepBase ( point_rep ),
00033     m_error_rep ( 0 ) // derived class can reset it.
00034 {
00035 }
00036 
00037 /* virtual */
00038 void PointRepBase::setSelected ( bool yes )
00039 {
00040   RepBase::setSelected ( yes );
00041 
00042   if ( m_error_rep ) {
00043     m_error_rep->setSelected ( yes );
00044   }
00045 }
00046 
00047 } // namespace hippodraw

Generated for HippoDraw Class Library by doxygen