ROOT_Application
2.0
C++ Core modules and GUIStock
|
Line for drawing with indicator, eg, RSI 30-70 Could be in Collection or in THStock They are fixed : More...
#include <ObjectLine.h>
Public Member Functions | |
ObjectLineIndicator () | |
constructors More... | |
ObjectLineIndicator (std::string name, double value) | |
constructor enforce the type More... | |
virtual | ~ObjectLineIndicator () |
virtual std::vector< std::string > | MakeStringForStatusBar (int px, int py) const |
specific output for ObjectLineIndicator More... | |
virtual void | GetExtrema (double &min, double &max) const |
return a constant value, could be in base ObjectLine More... | |
virtual void | ClearObjectStock () |
for the moment do nothing More... | |
virtual void | SetObjectStock (ListDataStockBase *, CommonXAxis *, Hparam_stock_t &) |
implements a easy way for this case only set to xmin xmax More... | |
virtual void | ExecuteEvent (Int_t, Int_t, Int_t) |
ClassDef (ObjectLineIndicator, 1) | |
Public Member Functions inherited from ObjectLine | |
ObjectLine () | |
ObjectLine (TypeLine tline, double valuey0) | |
constructor used by Factory More... | |
ObjectLine (double x0, double y0, double x1, double y1) | |
general constructor More... | |
virtual | ~ObjectLine () |
destructor, should delete TLine explicitely More... | |
virtual std::string | GetNameObject () const |
pure-virtual access More... | |
virtual void | SetNameObject (std::string &name) |
double | GetX0 () const |
wrapper functions to fline, need public for all ?? More... | |
double | GetX1 () const |
double | GetY0 () const |
double | GetY1 () const |
void | SetX0 (double x0) |
void | SetX1 (double x1) |
void | SetY0 (double y0) |
void | SetY1 (double y1) |
virtual void | SetValues (unsigned int, std::vector< double >, double, double, time_t, UInt_t=0) |
virtual Width_t | GetLineWidth () const |
virtual Color_t | GetLineColor () const |
virtual Style_t | GetLineStyle () const |
virtual void | SetLineWidth (Width_t lwidth) |
virtual void | SetLineColor (Color_t color) |
virtual void | SetLineStyle (Style_t lstyle) |
virtual Int_t | GetModeLine () const |
virtual bool | IsLine () |
virtual bool | IsHalfLine1 () |
virtual bool | IsHalfLine2 () |
virtual bool | IsSegment () |
virtual void | SetModekLine () |
virtual void | SetModekHalfLine1 () |
virtual void | SetModekHalfLine2 () |
virtual void | SetModekSegment () |
virtual TypeLine | GetTypeLine () const |
virtual bool | IsSupport () const |
virtual bool | IsTendance () const |
virtual void | Resize (unsigned int) |
virtual Int_t | DistancetoPrimitive (Int_t px, Int_t py, AbstractObjectStock **obj) |
virtual int | DistancetoPoint (int, int, double &, int=-1) const |
called by THStock for anchoring. More... | |
virtual void | Paint (const Option_t *="") |
Paint the objet, to overide. More... | |
ClassDef (ObjectLine, 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 | 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 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) | |
Additional Inherited Members | |
Protected Types inherited from ObjectLine | |
enum | ModeLine { kLine = 0, kHalfLine1 = 1, kHalfLine2 = 2, kSegment = 3 } |
Protected Member Functions inherited from ObjectLine | |
void | InitLine (double x0, double y0, double x1, double y1) |
virtual std::vector< float > | GetValues (int px, int py, time_t &date) const |
used by MakeStringForStatusBar only base in ObjectLine should be very simple More... | |
Protected Attributes inherited from ObjectLine | |
std::string | name_line |
add a name, absent in AbstractObjectStock More... | |
ModeLine | fModeLine |
kLine, kSegment, kHalfSegment0, kHalfSegment1 More... | |
TypeLine | fTypeLine |
TypeLine, enum : kNone, kSupport, kTendance, kFibo. More... | |
TLine * | fline |
use composition TLine*, valable for all derived class 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... | |
Line for drawing with indicator, eg, RSI 30-70 Could be in Collection or in THStock They are fixed :
Here use derivation, not for extending the base class but to specialize it Easier to construct, could overidde some methods for optimisation
Definition at line 178 of file ObjectLine.h.
|
inline |
constructors
Definition at line 182 of file ObjectLine.h.
ObjectLineIndicator::ObjectLineIndicator | ( | std::string | name, |
double | value | ||
) |
constructor enforce the type
Definition at line 164 of file ObjectLine.cxx.
References ObjectLine::fModeLine, ObjectLine::kLine, kSupport, and ObjectLine::name_line.
|
inlinevirtual |
Definition at line 187 of file ObjectLine.h.
ObjectLineIndicator::ClassDef | ( | ObjectLineIndicator | , |
1 | |||
) |
|
inlinevirtual |
for the moment do nothing
Implements AbstractObjectStock.
Definition at line 197 of file ObjectLine.h.
|
inlinevirtual |
Reimplemented from ObjectLine.
Definition at line 207 of file ObjectLine.h.
|
inlinevirtual |
return a constant value, could be in base ObjectLine
Reimplemented from ObjectLine.
Definition at line 193 of file ObjectLine.h.
References ObjectLine::GetY0().
|
virtual |
specific output for ObjectLineIndicator
Implements AbstractObjectStock.
Definition at line 183 of file ObjectLine.cxx.
References AbstractObjectStock::fParentTHStock, THStock::GetBinFromPixel(), THStock::GetDateFromBin(), ObjectLine::GetNameObject(), ObjectLine::GetY0(), and Utils::Time_tToString().
|
virtual |
implements a easy way for this case only set to xmin xmax
Reimplemented from ObjectLine.
Definition at line 208 of file ObjectLine.cxx.
References ObjectLine::SetX0(), ObjectLine::SetX1(), Hparam_stock_t::xmax, and Hparam_stock_t::xmin.