Whiteboard
An interface and tools for visualizing large and complex datasets
Public Member Functions | Protected Attributes | List of all members
ns_whiteboard::axes Class Reference

#include <Axes.h>

Inheritance diagram for ns_whiteboard::axes:
ns_whiteboard::graphic

Public Member Functions

 axes ()
 
 axes (line *x_line, line *y_line)
 
void Draw (display_type *d)
 
void CreateTics (const double x_scaling=1.0, const double x_offset=0.0, const double y_scaling=1.0, const double y_offset=0.0, const tic_style t=linear)
 
void SetXAxis (const xy_coords &startCoords, const xy_coords &stopCoords, const double width=1.0, const color &c=black)
 
void SetYAxis (const xy_coords &startCoords, const xy_coords &stopCoords, const double width=1.0, const color &c=black)
 
void RescaleAxes ()
 
void SetXAxisLabel (const string &label, const color &c=black, const double fontSize=12.0, const string &font="Times-Roman")
 
void SetYAxisLabel (const string &label, const color &c=black, const double fontSize=12.0, const string &font="Times-Roman")
 
virtual ~axes ()
 
- Public Member Functions inherited from ns_whiteboard::graphic
 graphic ()
 
virtual ~graphic ()
 

Protected Attributes

linem_xLine
 
linem_yLine
 
textm_xLabel
 
textm_yLabel
 
TickingStrategyBasem_ticking
 
bool self_owned_lines
 

Detailed Description

Class defining a cartesian set of axes.

Constructor & Destructor Documentation

ns_whiteboard::axes::axes ( )
inline
ns_whiteboard::axes::axes ( line x_line,
line y_line 
)
inline
virtual ns_whiteboard::axes::~axes ( )
inlinevirtual

Member Function Documentation

void ns_whiteboard::axes::CreateTics ( const double  x_scaling = 1.0,
const double  x_offset = 0.0,
const double  y_scaling = 1.0,
const double  y_offset = 0.0,
const tic_style  t = linear 
)
void ns_whiteboard::axes::Draw ( display_type d)
virtual

Method to draw a set of axes.

Implements ns_whiteboard::graphic.

void ns_whiteboard::axes::RescaleAxes ( )
inline
void ns_whiteboard::axes::SetXAxis ( const xy_coords startCoords,
const xy_coords stopCoords,
const double  width = 1.0,
const color c = black 
)
void ns_whiteboard::axes::SetXAxisLabel ( const string &  label,
const color c = black,
const double  fontSize = 12.0,
const string &  font = "Times-Roman" 
)
void ns_whiteboard::axes::SetYAxis ( const xy_coords startCoords,
const xy_coords stopCoords,
const double  width = 1.0,
const color c = black 
)
void ns_whiteboard::axes::SetYAxisLabel ( const string &  label,
const color c = black,
const double  fontSize = 12.0,
const string &  font = "Times-Roman" 
)

Member Data Documentation

TickingStrategyBase* ns_whiteboard::axes::m_ticking
protected
text* ns_whiteboard::axes::m_xLabel
protected
line* ns_whiteboard::axes::m_xLine
protected
text * ns_whiteboard::axes::m_yLabel
protected
line * ns_whiteboard::axes::m_yLine
protected
bool ns_whiteboard::axes::self_owned_lines
protected

The documentation for this class was generated from the following file: