Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

TxDataSeries Class Reference

-- Contains relevant plotting data (minima, maxima, symbol) for a data series. More...

#include <TxDataSeries.h>

List of all members.

Public Methods

 TxDataSeries ()
 default constructor. More...

 TxDataSeries (int, int)
 typical constructor: takes two integers that provide access to the x (horizontal) and y (vertical) data. More...

 TxDataSeries (const TxDataSeries &)
 copy constructor. More...

const TxDataSeries& operator= (const TxDataSeries &)
 assignment operator. More...

virtual ~TxDataSeries ()
 virtual destructor. More...

void setXIndex (int i)
 set value of integer used to access x (horizontal) data for this series. More...

int getXIndex () const
 get value of integer used to access x (horizontal) data for this series. More...

void setYIndex (int i)
 set value of integer used to access y (vertical) data for this series. More...

int getYIndex () const
 get value of integer used to access y (vertical) data for this series. More...

void setType (int t)
 set value of flag used to specify the plot type (line plot, bar chart, etc). More...

int getType () const
 get value of flag used to specify the plot type (line plot, bar chart, etc). More...

void setSymbol (int s)
 set value of flag used to specify the symbol for plotted points. More...

int getSymbol () const
 get value of flag used to specify the symbol for plotted points. More...


Static Public Attributes

const int connectedPoints
 flag indicating that (if equal to 0) plotted points are to be connected by a line. More...

const int noSymbol
 flag indicating that (if equal to 0) no symbol is to be used when plotting points. More...


Private Attributes

int xIndx
 Index specifying abscissa data. More...

int yIndx
 Index specifying ordinate data. More...

int type
 Type of plot: linear, bar, etc (see connectedPoints flag). More...

int symbol
 Type of symbol to put at each data point (see noSymbol flag). More...


Friends

ostream& operator<< (ostream &, const TxDataSeries &)
 overload the output operator. More...


Detailed Description

-- Contains relevant plotting data (minima, maxima, symbol) for a data series.

This class is heavily used by TxLinePlotDesc objects, which in turn are heavily used by TxLinePlotData objects.

Copyright 1996, 1997, 1998 by Tech-X Corporation

Author:
John R. Cary

Version:
Id:
TxDataSeries.h,v 1.1 2001/09/21 21:35:29 kgl Exp

Definition at line 31 of file TxDataSeries.h.


Constructor & Destructor Documentation

TxDataSeries::TxDataSeries ( )
 

default constructor.

TxDataSeries::TxDataSeries ( int,
int )
 

typical constructor: takes two integers that provide access to the x (horizontal) and y (vertical) data.

TxDataSeries::TxDataSeries ( const TxDataSeries & )
 

copy constructor.

TxDataSeries::~TxDataSeries ( ) [inline, virtual]
 

virtual destructor.

Definition at line 49 of file TxDataSeries.h.


Member Function Documentation

int TxDataSeries::getSymbol ( ) const [inline]
 

get value of flag used to specify the symbol for plotted points.

Definition at line 69 of file TxDataSeries.h.

int TxDataSeries::getType ( ) const [inline]
 

get value of flag used to specify the plot type (line plot, bar chart, etc).

Definition at line 64 of file TxDataSeries.h.

int TxDataSeries::getXIndex ( ) const [inline]
 

get value of integer used to access x (horizontal) data for this series.

Definition at line 54 of file TxDataSeries.h.

Referenced by TxLinePlotDesc::getXIndex().

int TxDataSeries::getYIndex ( ) const [inline]
 

get value of integer used to access y (vertical) data for this series.

Definition at line 59 of file TxDataSeries.h.

Referenced by TxLinePlotDesc::getYIndex().

const TxDataSeries & TxDataSeries::operator= ( const TxDataSeries & )
 

assignment operator.

void TxDataSeries::setSymbol ( int s ) [inline]
 

set value of flag used to specify the symbol for plotted points.

Definition at line 67 of file TxDataSeries.h.

void TxDataSeries::setType ( int t ) [inline]
 

set value of flag used to specify the plot type (line plot, bar chart, etc).

Definition at line 62 of file TxDataSeries.h.

void TxDataSeries::setXIndex ( int i ) [inline]
 

set value of integer used to access x (horizontal) data for this series.

Definition at line 52 of file TxDataSeries.h.

void TxDataSeries::setYIndex ( int i ) [inline]
 

set value of integer used to access y (vertical) data for this series.

Definition at line 57 of file TxDataSeries.h.


Friends And Related Function Documentation

ostream & operator<< ( ostream &,
const TxDataSeries & ) [friend]
 

overload the output operator.


Member Data Documentation

const int TxDataSeries::connectedPoints [static]
 

flag indicating that (if equal to 0) plotted points are to be connected by a line.

Definition at line 72 of file TxDataSeries.h.

const int TxDataSeries::noSymbol [static]
 

flag indicating that (if equal to 0) no symbol is to be used when plotting points.

Definition at line 74 of file TxDataSeries.h.

int TxDataSeries::symbol [private]
 

Type of symbol to put at each data point (see noSymbol flag).

Definition at line 85 of file TxDataSeries.h.

int TxDataSeries::type [private]
 

Type of plot: linear, bar, etc (see connectedPoints flag).

Definition at line 83 of file TxDataSeries.h.

int TxDataSeries::xIndx [private]
 

Index specifying abscissa data.

Definition at line 79 of file TxDataSeries.h.

int TxDataSeries::yIndx [private]
 

Index specifying ordinate data.

Definition at line 81 of file TxDataSeries.h.


The documentation for this class was generated from the following file: Copyright Tech-X Corporation, all rights reserved.