AxisTick.cxx

Go to the documentation of this file.
00001 /* HippoPlot AxisTick  class implementation
00002  *
00003  * Copyright (C)  2000  The Board of Trustees of The Leland Stanford
00004  * Junior University.  All Rights Reserved.
00005  *
00006  * $Id: AxisTick_8cxx-source.html,v 1.40 2008/03/24 19:27:26 pfkeb Exp $
00007  */
00008 
00009 // for dll interface warning
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 } // namespace hippodraw

Generated for HippoDraw Class Library by doxygen