ROOT_Application  2.0
C++ Core modules and GUIStock
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes
IndicatorObjectStock Class Reference

Define a base class for drawing indicator only, they are sorted in ListDataStock object. More...

#include <AbstractObjectStock.h>

Inheritance diagram for IndicatorObjectStock:
Inheritance graph
[legend]
Collaboration diagram for IndicatorObjectStock:
Collaboration graph
[legend]

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 THStockGetParent () 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
THStockfParentTHStock
 
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...
 

Detailed Description

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.

Constructor & Destructor Documentation

IndicatorObjectStock::IndicatorObjectStock ( )
inline

Definition at line 184 of file AbstractObjectStock.h.

IndicatorObjectStock::IndicatorObjectStock ( std::string  name)
inline

Definition at line 185 of file AbstractObjectStock.h.

virtual IndicatorObjectStock::~IndicatorObjectStock ( )
inlinevirtual

Definition at line 186 of file AbstractObjectStock.h.

Member Function Documentation

virtual void IndicatorObjectStock::AddToVecObject ( AbstractObjectStock )
inlinevirtual

for all indicators, size and if update need to resize

Reimplemented in CollectionObjectStock.

Definition at line 229 of file AbstractObjectStock.h.

virtual void IndicatorObjectStock::ClearObjectStock ( )
inlinevirtual

general function called when drawing

Implements AbstractObjectStock.

Reimplemented in CollectionObjectStock, PStockLine, and ListObjectStock< T >.

Definition at line 211 of file AbstractObjectStock.h.

void IndicatorObjectStock::ComputeBinRange ( ListDataStockBase ldata,
CommonXAxis fcommon_xaxis_th,
Hparam_stock_t Hparam_stock,
unsigned int &  xfirst,
unsigned int &  xlast,
int &  shift_left 
)
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().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual std::string IndicatorObjectStock::GetNameObject ( ) const
inlinevirtual
Todo:
check PstockLine override, seems yes get the value, but no name ??

Implements AbstractObjectStock.

Definition at line 193 of file AbstractObjectStock.h.

References name_indic.

Referenced by PStockLine::MakeStringForStatusBar().

Here is the caller graph for this function:

virtual std::vector<std::string> IndicatorObjectStock::MakeStringForStatusBar ( int  ,
int   
) const
inlinevirtual

create the string for the StatusBar

Implements AbstractObjectStock.

Reimplemented in PStockLine.

Definition at line 199 of file AbstractObjectStock.h.

virtual void IndicatorObjectStock::SetLineColorObject ( Color_t  lcolor)
inlinevirtual

called by THStock::SetColor

Reimplemented from AbstractObjectStock.

Definition at line 234 of file AbstractObjectStock.h.

virtual void IndicatorObjectStock::SetNameObject ( std::string &  new_name)
inlinevirtual

Definition at line 196 of file AbstractObjectStock.h.

References name_indic.

Field Documentation

std::string IndicatorObjectStock::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().


The documentation for this class was generated from the following files: