Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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.

Requests:
It would be nice to be able to change the style, including labels of axis tick -- Jim Panetta.

Author:
Paul_Kunz@slac.stanford.edu

Definition at line 25 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::stringcontent () 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.

Protected Attributes

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


Constructor & Destructor Documentation

AxisTick::AxisTick  ) 
 

The default constructor.

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

Definition at line 18 of file AxisTick.cxx.

AxisTick::AxisTick const AxisTick  ) 
 

The copy constructor.

Definition at line 24 of file AxisTick.cxx.

AxisTick::AxisTick double  v,
const std::string s
 

The normal constructor.

Definition at line 30 of file AxisTick.cxx.


Member Function Documentation

const string & AxisTick::content  )  const
 

Returns the content at the coordinate.

Definition at line 49 of file AxisTick.cxx.

References m_c.

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

void AxisTick::setContent const std::string  ) 
 

Sets the content at the coordinate.

Definition at line 55 of file AxisTick.cxx.

References m_c.

void AxisTick::setValue double   ) 
 

Sets the value of the coordinate.

Definition at line 43 of file AxisTick.cxx.

References m_v.

double AxisTick::value  )  const
 

Returns the value of the coordinate.

Definition at line 37 of file AxisTick.cxx.

References m_v.

Referenced by AxisTickXML::setAttributes().


Member Data Documentation

std::string AxisTick::m_c [protected]
 

The content at the coordinate.

Definition at line 37 of file AxisTick.h.

Referenced by content(), and setContent().

double AxisTick::m_v [protected]
 

The value at the coordinate.

Definition at line 34 of file AxisTick.h.

Referenced by setValue(), and value().


The documentation for this class was generated from the following files:
Generated for HippoDraw-1.14.8.5 by doxygen 1.4.3