ROOT_Application
2.0
C++ Core modules and GUIStock
|
Define a base class for drawing indicator only, they are sorted in ListDataStock object. More...
#include <AbstractObjectStock.h>
Public Member Functions | |
IndicatorObjectStock () | |
IndicatorObjectStock (std::string name) | |
virtual | ~IndicatorObjectStock () |
virtual std::string | GetNameObject () const |
virtual void | SetNameObject (std::string &new_name) |
virtual std::vector< std::string > | MakeStringForStatusBar (int, int) const |
create the string for the StatusBar More... | |
virtual void | ClearObjectStock () |
general function called when drawing More... | |
virtual void | AddToVecObject (AbstractObjectStock *) |
for all indicators, size and if update need to resize More... | |
virtual void | SetLineColorObject (Color_t lcolor) |
called by THStock::SetColor More... | |
Public Member Functions inherited from AbstractObjectStock | |
AbstractObjectStock () | |
default constructor More... | |
virtual | ~AbstractObjectStock () |
virtual default destructor, needed More... | |
virtual THStock * | GetParent () const |
public access to parent THStock More... | |
virtual void | SetParent (THStock *thstock) |
virtual void | SetToPaint (bool k) |
Public access to kPaint. More... | |
virtual bool | ToPaint () const |
virtual unsigned int | GetSize () const |
virtual void | Resize (unsigned int) |
virtual void | SetValues (unsigned int bin, std::vector< double > values, double xmin, double ymax, time_t date, unsigned int opt_value=0)=0 |
more general call for setting the values, even ObjectLine ?? no use/need but maybe if protected probelm compilation (private inherintence??) More... | |
virtual void | GetExtrema (double &, double &) const =0 |
virtual void | SetObjectStock (ListDataStockBase *, CommonXAxis *, Hparam_stock_t &) |
used for from the listdata More... | |
virtual Int_t | DistancetoPrimitive (int, int, AbstractObjectStock **)=0 |
used for selection of object, for const need attention to the pointer More... | |
virtual int | DistancetoPoint (int, int, double &, int bin=-1) const =0 |
called by THStock for anchoring. More... | |
virtual void | Paint (const Option_t *="")=0 |
Paint the objet, to overide. More... | |
ClassDef (AbstractObjectStock, 1) | |
Protected Member Functions | |
void | ComputeBinRange (ListDataStockBase *ldata, CommonXAxis *fcommon_xaxis_th, Hparam_stock_t &Hparam_stock, unsigned int &xfirst, unsigned int &xlast, int &shift_left) |
set up bin first/ last. More... | |
Protected Attributes | |
std::string | name_indic |
add a name to the base class convenient to get a indicator, can retrieve from the name... More... | |
Protected Attributes inherited from AbstractObjectStock | |
THStock * | fParentTHStock |
bool | kPaint |
set to true if the object need be draw or not depend on common_xaxis and user input ( slider ) used by SetObject as well, good, efficient More... | |
Define a base class for drawing indicator only, they are sorted in ListDataStock object.
All have a name All must be selectable, DistancetoPrimitives Never Movable, ExecuteEvent null, but not implemented anyway
Definition at line 168 of file AbstractObjectStock.h.
|
inline |
Definition at line 184 of file AbstractObjectStock.h.
|
inline |
Definition at line 185 of file AbstractObjectStock.h.
|
inlinevirtual |
Definition at line 186 of file AbstractObjectStock.h.
|
inlinevirtual |
for all indicators, size and if update need to resize
Reimplemented in CollectionObjectStock.
Definition at line 229 of file AbstractObjectStock.h.
|
inlinevirtual |
general function called when drawing
Implements AbstractObjectStock.
Reimplemented in CollectionObjectStock, PStockLine, and ListObjectStock< T >.
Definition at line 211 of file AbstractObjectStock.h.
|
protected |
set up bin first/ last.
works for all, simplify SetObjectStock implementation
Definition at line 30 of file AbstractObjectStock.cxx.
References CommonXAxis::GetFirst(), CommonXAxis::GetLast(), CommonXAxis::GetNbins(), CommonXAxis::GetShift(), ListDataStockBase::GetSize(), Hparam_stock_t::xfirst, and Hparam_stock_t::xlast.
Referenced by PStockLine::SetObjectStock(), and CollectionObjectStock::SetObjectStock().
|
inlinevirtual |
Implements AbstractObjectStock.
Definition at line 193 of file AbstractObjectStock.h.
References name_indic.
Referenced by PStockLine::MakeStringForStatusBar().
|
inlinevirtual |
create the string for the StatusBar
Implements AbstractObjectStock.
Reimplemented in PStockLine.
Definition at line 199 of file AbstractObjectStock.h.
|
inlinevirtual |
called by THStock::SetColor
Reimplemented from AbstractObjectStock.
Definition at line 234 of file AbstractObjectStock.h.
|
inlinevirtual |
Definition at line 196 of file AbstractObjectStock.h.
References name_indic.
|
protected |
add a name to the base class
convenient to get a indicator, can retrieve from the name...
Definition at line 174 of file AbstractObjectStock.h.
Referenced by GetNameObject(), and SetNameObject().