DataBox Class Reference

#include <app_databox.h>

Inheritance diagram for DataBox:

Focus List of all members.

Public Member Functions

 DataBox (gchar *title, gint ux=0, gint uy=0)
 DataBox (GtkWidget *vbox)
virtual ~DataBox ()
void SetHeading (gchar *title, gchar *tx, gchar *ty)
void Init ()
void setTyp (GtkDataboxDataType typ)
void setWidth (gint w)
void removeData ()
void setSetType (gint idx, GtkDataboxDataType typ=(GtkDataboxDataType)(-1), gint dotsize=-1)
void setSetColor (gint idx, GdkColor color)
void setxyData (PLOTTYP *SetX, PLOTTYP *SetY, int n, int cpy=TRUE)
void setxyData (PLOTTYP *SetX, PLOTTYP *SetY[NUMCHANNELS], int n, int cpy=TRUE)
void updatexyData (PLOTTYP *SetX, PLOTTYP *SetY)
void updatexyData (PLOTTYP *SetX, PLOTTYP *SetY[NUMCHANNELS])
void GetVisible (GtkDataboxValue *vmin, GtkDataboxValue *vmax)
void print (gchar *name)
void load (gchar *name)
virtual void checkheader (gchar *line)
void save (gchar *name)
virtual void addheader (std::ofstream &out)
virtual int Xprec ()
virtual int Yprec (int n)
void cut ()
void copy ()
void paste ()
void rerun ()
void run ()
void stop ()
virtual gint atrun ()
virtual void atstop ()
void draw (int autoskl=FALSE, GtkDataboxValue *vmin=NULL, GtkDataboxValue *vmax=NULL)
virtual void getdata ()

Static Public Member Functions

static gint loop (DataBox *db)

Public Attributes

GtkWidget * vbox
double delay
GtkWidget * Screen

Private Member Functions

void make_copy ()

Private Attributes

GtkWidget * hbox_t
GtkWidget * label_t
GtkWidget * label_x
GtkWidget * label_y
GtkWidget * Window
GtkDataboxDataType BoxType
gint BoxWidth
gint CbId
gint LoopActive
gint CpyMode
PLOTTYPXpoints
PLOTTYPYpoints [NUMCHANNELS]
int nPoints
PLOTTYPCXpoints
PLOTTYPCYpoints [NUMCHANNELS]
int CnPoints

Detailed Description

Definition at line 36 of file app_databox.h.


Constructor & Destructor Documentation

DataBox::DataBox gchar *  title,
gint  ux = 0,
gint  uy = 0
 

Definition at line 38 of file app_databox.C.

References FALSE, hbox_t, Init(), Screen, TRUE, vbox, and Window.

DataBox::DataBox GtkWidget *  vbox  ) 
 

Definition at line 71 of file app_databox.C.

References FALSE, hbox_t, Init(), Screen, TRUE, and vbox.

DataBox::~DataBox  )  [virtual]
 

Definition at line 104 of file app_databox.C.

References removeData(), stop(), and Window.


Member Function Documentation

virtual void DataBox::addheader std::ofstream &  out  )  [inline, virtual]
 

Definition at line 61 of file app_databox.h.

Referenced by save().

virtual gint DataBox::atrun  )  [inline, virtual]
 

Reimplemented in Focus.

Definition at line 72 of file app_databox.h.

References FALSE.

Referenced by run().

virtual void DataBox::atstop  )  [inline, virtual]
 

Definition at line 73 of file app_databox.h.

Referenced by stop().

virtual void DataBox::checkheader gchar *  line  )  [inline, virtual]
 

Definition at line 57 of file app_databox.h.

Referenced by load().

void DataBox::copy  ) 
 

Definition at line 332 of file app_databox.C.

References CXpoints, CYpoints, max, min, NUMCHANNELS, and Xpoints.

void DataBox::cut  ) 
 

Definition at line 323 of file app_databox.C.

References max, min, nPoints, Screen, and Xpoints.

void DataBox::draw int  autoskl = FALSE,
GtkDataboxValue *  vmin = NULL,
GtkDataboxValue *  vmax = NULL
 

Definition at line 383 of file app_databox.C.

References Screen.

virtual void DataBox::getdata  )  [inline, virtual]
 

Reimplemented in Focus.

Definition at line 75 of file app_databox.h.

Referenced by loop().

void DataBox::GetVisible GtkDataboxValue *  vmin,
GtkDataboxValue *  vmax
 

Definition at line 357 of file app_databox.C.

References Screen.

void DataBox::Init  ) 
 

Definition at line 90 of file app_databox.C.

References BoxType, BoxWidth, CbId, CpyMode, CXpoints, CYpoints, DEFAULT_BOXWIDTH, delay, FALSE, label_t, label_x, label_y, LoopActive, nPoints, NUMCHANNELS, Screen, Window, Xpoints, and Ypoints.

Referenced by DataBox().

void DataBox::load gchar *  name  ) 
 

Definition at line 237 of file app_databox.C.

References checkheader(), CnPoints, CXpoints, CYpoints, and NUMCHANNELS.

gint DataBox::loop DataBox db  )  [static]
 

Definition at line 393 of file app_databox.C.

References CbId, delay, FALSE, getdata(), LoopActive, and TRUE.

Referenced by run().

void DataBox::make_copy  )  [private]
 

Definition at line 409 of file app_databox.C.

References CpyMode, nPoints, setxyData(), TRUE, Xpoints, and Ypoints.

void DataBox::paste  ) 
 

Definition at line 361 of file app_databox.C.

References max, min, nPoints, Screen, and Xpoints.

void DataBox::print gchar *  name  ) 
 

Definition at line 234 of file app_databox.C.

void DataBox::removeData  ) 
 

Definition at line 152 of file app_databox.C.

References CpyMode, NUMCHANNELS, Screen, Xpoints, and Ypoints.

Referenced by setxyData(), and ~DataBox().

void DataBox::rerun  )  [inline]
 

Definition at line 69 of file app_databox.h.

References CbId, run(), and stop().

void DataBox::run  ) 
 

Definition at line 369 of file app_databox.C.

References atrun(), CbId, delay, and loop().

Referenced by rerun(), and Focus::setmode().

void DataBox::save gchar *  name  ) 
 

Definition at line 288 of file app_databox.C.

References addheader(), nPoints, NUMCHANNELS, Xpoints, Xprec(), Ypoints, and Yprec().

void DataBox::SetHeading gchar *  title,
gchar *  tx,
gchar *  ty
 

Definition at line 111 of file app_databox.C.

References hbox_t, label_t, label_x, label_y, and TRUE.

void DataBox::setSetColor gint  idx,
GdkColor  color
 

Definition at line 147 of file app_databox.C.

References Screen, and Ypoints.

void DataBox::setSetType gint  idx,
GtkDataboxDataType  typ = (GtkDataboxDataType)(-1),
gint  dotsize = -1
 

Definition at line 140 of file app_databox.C.

References BoxType, BoxWidth, Screen, and Ypoints.

void DataBox::setTyp GtkDataboxDataType  typ  )  [inline]
 

Definition at line 45 of file app_databox.h.

References BoxType.

void DataBox::setWidth gint  w  )  [inline]
 

Definition at line 46 of file app_databox.h.

References BoxWidth.

void DataBox::setxyData PLOTTYP SetX,
PLOTTYP SetY[NUMCHANNELS],
int  n,
int  cpy = TRUE
 

Definition at line 176 of file app_databox.C.

References BoxType, BoxWidth, nPoints, removeData(), Screen, Xpoints, and Ypoints.

void DataBox::setxyData PLOTTYP SetX,
PLOTTYP SetY,
int  n,
int  cpy = TRUE
 

Definition at line 169 of file app_databox.C.

References NUMCHANNELS.

Referenced by Focus::getdata(), and make_copy().

void DataBox::stop  ) 
 

Definition at line 375 of file app_databox.C.

References atstop(), and CbId.

Referenced by rerun(), Focus::setmode(), ~DataBox(), and Focus::~Focus().

void DataBox::updatexyData PLOTTYP SetX,
PLOTTYP SetY[NUMCHANNELS]
 

Definition at line 226 of file app_databox.C.

References nPoints, Xpoints, and Ypoints.

void DataBox::updatexyData PLOTTYP SetX,
PLOTTYP SetY
 

Definition at line 219 of file app_databox.C.

References nPoints, Xpoints, and Ypoints.

virtual int DataBox::Xprec  )  [inline, virtual]
 

Definition at line 62 of file app_databox.h.

Referenced by save().

virtual int DataBox::Yprec int  n  )  [inline, virtual]
 

Definition at line 63 of file app_databox.h.

Referenced by save().


Member Data Documentation

GtkDataboxDataType DataBox::BoxType [private]
 

Definition at line 92 of file app_databox.h.

Referenced by Init(), setSetType(), setTyp(), and setxyData().

gint DataBox::BoxWidth [private]
 

Definition at line 93 of file app_databox.h.

Referenced by Init(), setSetType(), setWidth(), and setxyData().

gint DataBox::CbId [private]
 

Definition at line 94 of file app_databox.h.

Referenced by Init(), loop(), rerun(), run(), and stop().

int DataBox::CnPoints [private]
 

Definition at line 101 of file app_databox.h.

Referenced by load().

gint DataBox::CpyMode [private]
 

Definition at line 95 of file app_databox.h.

Referenced by Init(), make_copy(), and removeData().

PLOTTYP* DataBox::CXpoints [private]
 

Definition at line 100 of file app_databox.h.

Referenced by copy(), Init(), and load().

PLOTTYP * DataBox::CYpoints[NUMCHANNELS] [private]
 

Definition at line 100 of file app_databox.h.

Referenced by copy(), Init(), and load().

double DataBox::delay
 

Definition at line 80 of file app_databox.h.

Referenced by Init(), loop(), and run().

GtkWidget* DataBox::hbox_t [private]
 

Definition at line 87 of file app_databox.h.

Referenced by DataBox(), and SetHeading().

GtkWidget* DataBox::label_t [private]
 

Definition at line 88 of file app_databox.h.

Referenced by Init(), and SetHeading().

GtkWidget* DataBox::label_x [private]
 

Definition at line 89 of file app_databox.h.

Referenced by Init(), and SetHeading().

GtkWidget* DataBox::label_y [private]
 

Definition at line 90 of file app_databox.h.

Referenced by Init(), and SetHeading().

gint DataBox::LoopActive [private]
 

Definition at line 94 of file app_databox.h.

Referenced by Init(), and loop().

int DataBox::nPoints [private]
 

Definition at line 98 of file app_databox.h.

Referenced by cut(), Init(), make_copy(), paste(), save(), setxyData(), and updatexyData().

GtkWidget* DataBox::Screen
 

Definition at line 82 of file app_databox.h.

Referenced by cut(), DataBox(), draw(), GetVisible(), Init(), paste(), removeData(), setSetColor(), setSetType(), and setxyData().

GtkWidget* DataBox::vbox
 

Definition at line 79 of file app_databox.h.

Referenced by DataBox(), Focus::getdata(), and Focus::ratemeter_changed().

GtkWidget* DataBox::Window [private]
 

Definition at line 91 of file app_databox.h.

Referenced by DataBox(), Init(), and ~DataBox().

PLOTTYP* DataBox::Xpoints [private]
 

Definition at line 97 of file app_databox.h.

Referenced by copy(), cut(), Init(), make_copy(), paste(), removeData(), save(), setxyData(), and updatexyData().

PLOTTYP * DataBox::Ypoints[NUMCHANNELS] [private]
 

Definition at line 97 of file app_databox.h.

Referenced by Init(), make_copy(), removeData(), save(), setSetColor(), setSetType(), setxyData(), and updatexyData().


The documentation for this class was generated from the following files:
Generated on Sat Apr 1 09:05:10 2006 for GXSM by  doxygen 1.4.6