|
ROOT_Application
2.0
C++ Core modules and GUIStock
|
Define an abstract base class for all objects to be painted in a THStock. More...
#include <AbstractObjectStock.h>


Public Member Functions | |
| AbstractObjectStock () | |
| default constructor More... | |
| virtual | ~AbstractObjectStock () |
| virtual default destructor, needed More... | |
| virtual std::string | GetNameObject () const =0 |
| pure-virtual access 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 std::vector< std::string > | MakeStringForStatusBar (int, int) const =0 |
| create the string for the StatusBar More... | |
| 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 void | ClearObjectStock ()=0 |
| general function called when drawing 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... | |
| virtual void | SetLineColorObject (Color_t) |
| ClassDef (AbstractObjectStock, 1) | |
Protected Attributes | |
| 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 an abstract base class for all objects to be painted in a THStock.
Follow Abstract logical, most of functions are pure virtual
important pure virtual, need implementation :
Definition at line 64 of file AbstractObjectStock.h.
| AbstractObjectStock::AbstractObjectStock | ( | ) |
default constructor
|
inlinevirtual |
virtual default destructor, needed
Definition at line 84 of file AbstractObjectStock.h.
| AbstractObjectStock::ClassDef | ( | AbstractObjectStock | , |
| 1 | |||
| ) |
|
pure virtual |
general function called when drawing
Implemented in ObjectLineTendance, CollectionObjectStock, IndicatorObjectStock, ObjectLineIndicator, PStockLine, BarStock, CandleStock, and ListObjectStock< T >.
|
pure virtual |
called by THStock for anchoring.
keep main idea from ROOT, add optional bin if provides faster access
Implemented only for Indicator
| px | in pixel |
| py | |
| value,update | the new value |
| bin |
Implemented in CollectionObjectStock, PStockLine, ObjectLine, BarStock, CandleStock, and ListObjectStock< T >.
|
pure virtual |
used for selection of object, for const need attention to the pointer
Implemented in PStockLine, BarStock, and ListObjectStock< T >.
Referenced by ListObjectStock< T >::DistancetoPrimitive().

|
pure virtual |
Implemented in CollectionObjectStock, ObjectLineIndicator, PStockLine, ObjectLine, BarStock, CandleStock, and ListObjectStock< T >.
|
pure virtual |
pure-virtual access
Implemented in IndicatorObjectStock, BarStock, ObjectLine, and CandleStock.
|
inlinevirtual |
public access to parent THStock
Definition at line 92 of file AbstractObjectStock.h.
References fParentTHStock.
Referenced by TPadStock::ExecuteEvent().

|
inlinevirtual |
Reimplemented in CollectionObjectStock, PStockLine, and ListObjectStock< T >.
Definition at line 106 of file AbstractObjectStock.h.
|
pure virtual |
create the string for the StatusBar
Implemented in ObjectLineTendance, IndicatorObjectStock, ObjectLineIndicator, PStockLine, BarStock, and CandleStock.
Referenced by MainIndicatorTHStockFrame::EventInfo().

|
pure virtual |
Paint the objet, to overide.
Implemented in ObjectLineTendance, CollectionObjectStock, PStockLine, ObjectLine, BarStock, CandleStock, and ListObjectStock< T >.
Referenced by THStock::PaintObjectStock().

|
inlinevirtual |
Reimplemented in CollectionObjectStock, PStockLine, ObjectLine, and ListObjectStock< T >.
Definition at line 107 of file AbstractObjectStock.h.
|
inlinevirtual |
Reimplemented in IndicatorObjectStock.
Definition at line 151 of file AbstractObjectStock.h.
|
inlinevirtual |
used for from the listdata
Reimplemented in ObjectLineTendance, CollectionObjectStock, ObjectLineIndicator, PStockLine, ObjectLine, and ListObjectStock< T >.
Definition at line 120 of file AbstractObjectStock.h.
|
inlinevirtual |
Reimplemented in CollectionObjectStock.
Definition at line 93 of file AbstractObjectStock.h.
References fParentTHStock.
Referenced by FactoryObjectStock::CreateObjectStock(), and TPadStock::ExecuteEvent().

|
inlinevirtual |
|
pure virtual |
more general call for setting the values, even ObjectLine ?? no use/need but maybe if protected probelm compilation (private inherintence??)
|
inlinevirtual |
Definition at line 97 of file AbstractObjectStock.h.
References kPaint.
Referenced by PStockLine::Paint(), CollectionObjectStock::Paint(), THStock::PaintObjectStock(), and THStock::SetObjectStock().

|
protected |
Definition at line 72 of file AbstractObjectStock.h.
Referenced by PStockLine::ExtrapolateYPad(), ObjectLineTendance::FinaliseDrawableLine(), GetParent(), ObjectLine::GetValues(), PStockLine::GetValues(), ObjectLineIndicator::MakeStringForStatusBar(), and SetParent().
|
protected |
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
Definition at line 77 of file AbstractObjectStock.h.
Referenced by CandleStock::ClearObjectStock(), BarStock::ClearObjectStock(), SetToPaint(), and ToPaint().
1.8.6