ROOT_Application
2.0
C++ Core modules and GUIStock
|
Draw Jap. More...
#include <ObjectStock.h>
Public Member Functions | |
CandleStock () | |
virtual | ~CandleStock () |
virtual std::string | GetNameObject () const |
pure-virtual access More... | |
virtual std::vector< std::string > | MakeStringForStatusBar (int px, int py) const |
create the string for the StatusBar More... | |
virtual time_t | GetDate () const |
virtual void | SetValues (UInt_t, std::vector< double > values, Double_t xmin, Double_t xmax, time_t date, UInt_t opt_value=0) |
implementeation of pure virtual in Abstract, need double here More... | |
virtual void | GetExtrema (double &min, double &max) const |
virtual void | ClearObjectStock () |
Set kPaint to false, keep in memory. More... | |
virtual Int_t | DistancetoPrimitive (Int_t px, Int_t py, AbstractObjectStock **) |
always called from ListObjectStock, aadd **pointer to overide abstract base, but not used More... | |
virtual Int_t | DistancetoPoint (int px, int py, double &yvalue, int bin=-1) const |
specific, called only by ListDataStock do not use bin, but follow the hierarchy pixel better return a distance independent of the scale More... | |
virtual void | Paint (const Option_t *="") |
Paint one candle. More... | |
ClassDef (CandleStock, 1) | |
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 | 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 void | SetLineColorObject (Color_t) |
ClassDef (AbstractObjectStock, 1) | |
Protected Member Functions | |
std::vector< float > | GetValues () const |
return the 4 values of a candle use fby MakeStringForStatus and GetExtrema More... | |
Protected Attributes | |
time_t | fdate |
float | fopen |
float | fhigh |
float | flow |
float | fclose |
double | fxmin |
double | fxmax |
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... | |
Draw Jap.
Candle
Derive from AbstractObjectStock directly
no need to store name !
Definition at line 34 of file ObjectStock.h.
|
inline |
|
inlinevirtual |
Definition at line 53 of file ObjectStock.h.
CandleStock::ClassDef | ( | CandleStock | , |
1 | |||
) |
|
inlinevirtual |
Set kPaint to false, keep in memory.
Implements AbstractObjectStock.
Definition at line 68 of file ObjectStock.h.
References AbstractObjectStock::kPaint.
|
virtual |
specific, called only by ListDataStock do not use bin, but follow the hierarchy pixel better return a distance independent of the scale
Compute the distance to one of the (anchoring) point.
px | |
py | |
yvalue | |
bin |
value_x,not | used |
value_y | |
yvalue |
Implements AbstractObjectStock.
Definition at line 175 of file ObjectStock.cxx.
|
virtual |
always called from ListObjectStock, aadd **pointer to overide abstract base, but not used
Definition at line 107 of file ObjectStock.cxx.
|
inlinevirtual |
Definition at line 60 of file ObjectStock.h.
References fdate.
Referenced by MakeStringForStatusBar().
|
virtual |
Implements AbstractObjectStock.
Definition at line 91 of file ObjectStock.cxx.
References GetValues(), and values.
|
inlinevirtual |
pure-virtual access
Implements AbstractObjectStock.
Definition at line 57 of file ObjectStock.h.
Referenced by MakeStringForStatusBar().
|
protected |
return the 4 values of a candle use fby MakeStringForStatus and GetExtrema
Referenced by GetExtrema(), and MakeStringForStatusBar().
|
virtual |
create the string for the StatusBar
Implements AbstractObjectStock.
Definition at line 40 of file ObjectStock.cxx.
References GetDate(), GetNameObject(), GetValues(), Utils::Time_tToString(), and values.
|
virtual |
|
virtual |
|
protected |
Definition at line 40 of file ObjectStock.h.
Referenced by CandleStock(), DistancetoPoint(), DistancetoPrimitive(), Paint(), and SetValues().
|
protected |
Definition at line 38 of file ObjectStock.h.
Referenced by CandleStock(), GetDate(), and SetValues().
|
protected |
Definition at line 40 of file ObjectStock.h.
Referenced by CandleStock(), DistancetoPoint(), Paint(), and SetValues().
|
protected |
Definition at line 40 of file ObjectStock.h.
Referenced by CandleStock(), DistancetoPoint(), Paint(), and SetValues().
|
protected |
Definition at line 40 of file ObjectStock.h.
Referenced by CandleStock(), DistancetoPoint(), DistancetoPrimitive(), Paint(), and SetValues().
|
protected |
Definition at line 41 of file ObjectStock.h.
Referenced by CandleStock(), DistancetoPrimitive(), Paint(), and SetValues().
|
protected |
Definition at line 41 of file ObjectStock.h.
Referenced by CandleStock(), DistancetoPrimitive(), Paint(), and SetValues().