AxisTick.cxx
Go to the documentation of this file.
1 /* HippoPlot AxisTick class implementation
2  *
3  * Copyright (C) 2000 The Board of Trustees of The Leland Stanford
4  * Junior University. All Rights Reserved.
5  *
6  * $Id: AxisTick.cxx,v 1.9 2005/10/30 00:10:09 pfkeb Exp $
7  */
8 
9 // for dll interface warning
10 #ifdef _MSC_VER
11 #include "msdevstudio/MSconfig.h"
12 #endif
13 
14 #include "AxisTick.h"
15 
16 using std::string;
17 
18 namespace hippodraw {
19 
21  m_v ( 0 ),
22  m_c ( "" )
23 {
24 }
25 
26 AxisTick::AxisTick ( const AxisTick & at ) :
27  m_v ( at.m_v ),
28  m_c ( at.m_c )
29 {
30 }
31 
32 AxisTick::AxisTick ( double v, const std::string & s ) :
33  m_v ( v ),
34  m_c ( s )
35 {
36 }
37 
38 double
39 AxisTick::value ( ) const
40 {
41  return m_v;
42 }
43 
44 void
45 AxisTick::setValue ( double v )
46 {
47  m_v = v;
48 }
49 
50 const string &
52 {
53  return m_c;
54 }
55 
56 void
57 AxisTick::setContent ( const std::string & s )
58 {
59  m_c = s;
60 }
61 
62 } // namespace hippodraw

Generated for HippoDraw Class Library by doxygen