AxisTick Class Reference

#include <AxisTick.h>

Collaboration diagram for AxisTick:

Collaboration graph
[legend]

List of all members.


Detailed Description

A class to maintain tick coordinates and string values.

Author:
Paul_Kunz@slac.stanford.edu

Definition at line 29 of file AxisTick.h.


Public Member Functions

 AxisTick (double v, const std::string &s)
 The normal constructor.
 AxisTick (const AxisTick &)
 The copy constructor.
 AxisTick ()
 The default constructor.
const std::string & content () const
 Returns the content at the coordinate.
void setContent (const std::string &)
 Sets the content at the coordinate.
void setValue (double)
 Sets the value of the coordinate.
double value () const
 Returns the value of the coordinate.

Private Attributes

std::string m_c
 The content at the coordinate.
double m_v
 The value at the coordinate.

Constructor & Destructor Documentation

AxisTick (  ) 

The default constructor.

It is needed for initialization when it is included in the STL container.

Definition at line 20 of file AxisTick.cxx.

AxisTick ( const AxisTick at  ) 

The copy constructor.

Definition at line 26 of file AxisTick.cxx.

AxisTick ( double  v,
const std::string &  s 
)

The normal constructor.

Definition at line 32 of file AxisTick.cxx.


Member Function Documentation

const string & content (  )  const

Returns the content at the coordinate.

Definition at line 51 of file AxisTick.cxx.

References AxisTick::m_c.

Referenced by AxisTickXML::setAttributes(), and AxisRepBase::setYFontSize().

void setContent ( const std::string &  s  ) 

Sets the content at the coordinate.

Definition at line 57 of file AxisTick.cxx.

References AxisTick::m_c.

void setValue ( double  v  ) 

Sets the value of the coordinate.

Definition at line 45 of file AxisTick.cxx.

References AxisTick::m_v.

double value (  )  const

Returns the value of the coordinate.

Definition at line 39 of file AxisTick.cxx.

References AxisTick::m_v.

Referenced by AxisTickXML::setAttributes().


Member Data Documentation

std::string m_c [private]

The content at the coordinate.

Definition at line 38 of file AxisTick.h.

Referenced by AxisTick::content(), and AxisTick::setContent().

double m_v [private]

The value at the coordinate.

Definition at line 35 of file AxisTick.h.

Referenced by AxisTick::setValue(), and AxisTick::value().


The documentation for this class was generated from the following files:
Generated for HippoDraw Class Library by doxygen