00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifdef _MSC_VER
00011 #include "msdevstudio/MSconfig.h"
00012 #endif
00013
00014 #include "AxisTick.h"
00015
00016 using std::string;
00017
00018 namespace hippodraw {
00019
00020 AxisTick::AxisTick ( ) :
00021 m_v ( 0 ),
00022 m_c ( "" )
00023 {
00024 }
00025
00026 AxisTick::AxisTick ( const AxisTick & at ) :
00027 m_v ( at.m_v ),
00028 m_c ( at.m_c )
00029 {
00030 }
00031
00032 AxisTick::AxisTick ( double v, const std::string & s ) :
00033 m_v ( v ),
00034 m_c ( s )
00035 {
00036 }
00037
00038 double
00039 AxisTick::value ( ) const
00040 {
00041 return m_v;
00042 }
00043
00044 void
00045 AxisTick::setValue ( double v )
00046 {
00047 m_v = v;
00048 }
00049
00050 const string &
00051 AxisTick::content ( ) const
00052 {
00053 return m_c;
00054 }
00055
00056 void
00057 AxisTick::setContent ( const std::string & s )
00058 {
00059 m_c = s;
00060 }
00061
00062 }