26 #include "../Hparam_stock.h"
28 #include "../Hoption_stock.h"
32 #include "../../src_cpp/ListDataStock.h"
37 #include "../CommonXAxis.h"
64 typedef std::vector< std::pair<ListDataStockBase*, AbstractObjectStock*> >::iterator
it_pair;
65 typedef std::vector< std::pair<ListDataStockBase*, AbstractObjectStock*> >::const_iterator
cit_pair;
71 std::vector< std::pair<ListDataStockBase*, AbstractObjectStock*> >
vect_pair_obj;
87 THStock (
const char* name,
const char* title,
int size );
129 #ifdef DEBUG_CONT_FRAME
130 std::cout <<
"THStock::Add (ListDataStockBase *)" << std::endl;
151 void SetColor ( std::string fullname, Pixel_t color )
const;
double GetXPadFromBin(int bin)
Xvalue of the bin center, called by PStockLine to Extrapolate values.
Derive from TH1 will draw the graph.
void SetObjectStock(Hparam_stock_t &Hparam_stock) const
set the object, need Hparam_stock here
unsigned int GetNTHStockToPaint() const
return the number of object to paint called by CanvasStock, but Why ?? want bool ??
unsigned int GetSizeVectPair() const
get size of the container
void AnchorToIndicator(const int &px, const int &py, ObjectLine *obj_line, FactoryObjectStock::EStageDraw kDraw)
set px, py to the closest indicator point
virtual void Add(ObjectLine *obj_stock)
call by Factory, specific to drawable line
CommonXAxis * GetCommonXAxis()
Int_t DistancetoPoint(Int_t px, Int_t py, Double_t &yvalue) const
used by anchor to find a Yvalue is close and anchor to it
void GetObjectExtrema(Double_t &ymin, Double_t &ymax) const
broadcast the call to all object
void PaintObjectStock(const Option_t *option="")
called from THisPainter when Hparam_sock has been completed
Hparam_stock_t Hparam_stock
std::vector< std::pair< ListDataStockBase *, AbstractObjectStock * > >::const_iterator cit_pair
virtual void Add(ListDataStockBase *ldata)
copy from diff, ok was missing, called by CanvasStock
Int_t GetBinFromPixel(Int_t px, Int_t &total_bin) const
called by ObjectStock, for StatusBar
std::vector< std::pair< ListDataStockBase *, AbstractObjectStock * > > vect_pair_obj
for storing pair<ListDataStock,ObjectStock>
virtual void AddPairToVector(ListDataStockBase *ldata)
create a IndicatorStock and add a new pair
virtual THStock * DrawCopy(Option_t *option="") const
ListDataStockBase * GetFirstListData() const
Get the first inserted ListDataStock, by THistPainterStock, needeed for size should add check...
std::vector< std::pair< ListDataStockBase *, AbstractObjectStock * > >::iterator it_pair
typedef for iterators
void SetColor(ListDataStockBase *ldata, Pixel_t color) const
2 versions one with ldata or with fullname
time_t GetDateFromBin(Int_t bin) const
called by ObjectLine need the date from a bin
void SetSizeTitle(Float_t new_size)
Float_t GetSizeTitle() const
virtual void Copy(TObject &hnew) const
void SetCommonXAxis(CommonXAxis *new_xaxis)
called by CanvasStock to set a common axis for all thstock
CommonXAxis * fcommon_xaxis_th
pointer to the CommonXAxis Constructor and ownership done by CanvasStock
static const int DIST_ANCHOR
maybe modifiable later
ListDataStockBase * GetListDataStock(std::string fullname) const
want to retrieve from which pad is the fullname, call by CanvasStock
Abstract base class for the ListDataStock, for storing base pointers in vectors.
Int_t DistancetoPrimitive(Int_t px, Int_t py, TObject **obj)
call by THistPainterStock, broadcast call to all objects.
void HideNameListData(std::string fullname, bool toDelete)
called by CanvasStock
Float_t fsize_title
size depend on the layout, used by THsitPainterStock
void ShowNameListData(std::string fullname) const
EStageDraw
define stages for drawing
virtual void UpdateObjectStock()
to redefine
time_t GetDateBinFromPixel(Int_t px, Int_t py, Int_t &bin, Int_t &bin2) const
return both the date and two bins called only ObjectLine::GetValues
THStock & operator=(const THStock &ht)
assignement operator tested ?? needed by dictionary ??