PT-Cooling-Log 1.0
PTCoolingLogViewer
|
a basic class for a single Pad of LogViewer [詳細]
#include <PtView.hh>
Public メソッド | |
PtView () | |
a default constructor | |
PtView (const std::string &name) | |
a constructor with the table or view name in DB | |
PtView (const PtView &view) | |
a copy constructor | |
virtual | ~PtView () |
a destructor | |
PtView & | operator= (const PtView &view) |
a assignment operator | |
bool | operator== (const PtView &view) |
a comparison operator | |
virtual void | setRange () |
set y-axis range | |
virtual void | drawFrame () |
virtual void | drawLegend () |
Draw a frame ( call from PtView::draw() );. | |
virtual void | drawGraph () |
Draw a legend ( call from PtView::draw() );. | |
virtual void | analysis () |
Draw graphs ( call from PtView::draw() );. | |
virtual void | query (LogViewer *lv) |
Draw a frame ( call from PtView::run() );. | |
virtual void | draw () |
draw data to the pad | |
void | add (const std::string &field, const std::string &title, const int &color) |
add new PtViewEntry with the given information [in] field is a field name in the database [in] title is a y-axis title string [in] color is a ROOT color code for the graph | |
std::string & | name () |
get a table/view name (reference) | |
std::string & | title () |
get a titile (reference) | |
std::string | name () const |
get a table/view name (copy) | |
std::string | title () const |
get a title (copy) | |
void | pad (TVirtualPad *pad) |
set a pointer of Pad | |
TVirtualPad * | pad () |
get a pointer of Pad | |
double & | ymin () |
get a lower edge of y-axis (reference) | |
double & | ymax () |
get a upper edge of y-axis (reference) | |
double | ymin () const |
get a lower edge of y-axis (copy) | |
double | ymax () const |
get a lower edge of y-axis (copy) | |
Protected メソッド | |
void | addTimeEntries () |
add EPOC and TIMEZONE entries | |
Protected 変数 | |
std::string | name_ |
a table/view name | |
std::string | title_ |
a y-axis title | |
LogViewer * | lv_ |
a pointer to LogViewer object | |
TVirtualPad * | pad_ |
a pointer to TVirtualPad object to be draw. | |
TH1 * | frame_ |
a pointer to a default frame object | |
double | ymin_ |
a y-axis lower edge of the frame | |
double | ymax_ |
a y-axis upper edge of the frame | |
double | xmin_ |
a x-axis lower edge of the frame | |
double | xmax_ |
a x-axis upper edge of the frame | |
int | startIndex_ |
start index for the view entry to be display |
a basic class for a single Pad of LogViewer
This class manages a single pad of the logViewer panel, which contains several data to be display.
In order to add a new filed, one can use PtView::add method, which requires filed name, title, and color code.
The first, and second entries are pre-defined to query EPOCH time, and Timezone information. Thus, the first "add" instance create the 3rd entry for the new data filed.
void PtView::query | ( | LogViewer * | lv | ) | [virtual] |
Draw a frame ( call from PtView::run() );.
query data from the given LogViewer
This method tries to query data with LogViewer object, using filed names of stored PtViewEntry from a table/view, PtView::name().
If one needs to query from the different source, or different method, one has to over-write in a child class.
(This method will be called from PtView::run() method.
PtEventViewで再定義されています。
void PtView::setRange | ( | ) | [virtual] |
set y-axis range
This method set a lower and upper edge of the y-axis, taking the lower and maimum value of the every PtViewEntry of this object.
If one has to set the different value for the lower or upper edge, this method has to be over-write in a child class.
(This method will be called from PtView::draw() method.)
PtEventView, PtFlowHe4View, と PtMwViewで再定義されています。