|
ROOT_Application
2.0
C++ Core modules and GUIStock
|
for all ObjectLines More...
#include <ObjectLine.h>


Public Member Functions | |
| 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 | GetExtrema (double &, double &) 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 | SetObjectStock (ListDataStockBase *, CommonXAxis *, Hparam_stock_t &) |
| used for from the listdata More... | |
| virtual void | Paint (const Option_t *="") |
| Paint the objet, to overide. More... | |
| virtual void | ExecuteEvent (Int_t, Int_t, Int_t) |
| 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 std::vector< std::string > | MakeStringForStatusBar (int, int) const =0 |
| create the string for the StatusBar More... | |
| 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 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 void | SetLineColorObject (Color_t) |
| ClassDef (AbstractObjectStock, 1) | |
Protected Types | |
| enum | ModeLine { kLine = 0, kHalfLine1 = 1, kHalfLine2 = 2, kSegment = 3 } |
Protected Member Functions | |
| 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 | |
| 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... | |
for all ObjectLines
Simpler if it inherits here from TattLine Mainly a wrapper around TLine, define most common data member
Definition at line 33 of file ObjectLine.h.
|
protected |
| Enumerator | |
|---|---|
| kLine | |
| kHalfLine1 | |
| kHalfLine2 | |
| kSegment | |
Definition at line 43 of file ObjectLine.h.
| ObjectLine::ObjectLine | ( | ) |
Definition at line 63 of file ObjectLine.cxx.
| ObjectLine::ObjectLine | ( | TypeLine | tline, |
| double | valuey0 | ||
| ) |
constructor used by Factory
Definition at line 71 of file ObjectLine.cxx.
References fTypeLine, and InitLine().

| ObjectLine::ObjectLine | ( | double | x0, |
| double | y0, | ||
| double | x1, | ||
| double | y1 | ||
| ) |
general constructor
Definition at line 84 of file ObjectLine.cxx.
References InitLine().

|
inlinevirtual |
destructor, should delete TLine explicitely
Definition at line 72 of file ObjectLine.h.
References fline.
| ObjectLine::ClassDef | ( | ObjectLine | , |
| 1 | |||
| ) |
|
inlinevirtual |
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 |
Implements AbstractObjectStock.
Definition at line 151 of file ObjectLine.h.
|
virtual |
Definition at line 126 of file ObjectLine.cxx.
References fline.
|
inlinevirtual |
Reimplemented in ObjectLineTendance, and ObjectLineIndicator.
Definition at line 161 of file ObjectLine.h.
|
inlinevirtual |
Implements AbstractObjectStock.
Reimplemented in ObjectLineIndicator.
Definition at line 138 of file ObjectLine.h.
|
inlinevirtual |
Definition at line 111 of file ObjectLine.h.
References fline.
|
inlinevirtual |
Definition at line 112 of file ObjectLine.h.
References fline.
|
inlinevirtual |
Definition at line 110 of file ObjectLine.h.
References fline.
|
inlinevirtual |
Definition at line 119 of file ObjectLine.h.
References fModeLine.
|
inlinevirtual |
pure-virtual access
Implements AbstractObjectStock.
Definition at line 80 of file ObjectLine.h.
References name_line.
Referenced by ObjectLineIndicator::MakeStringForStatusBar().

|
inlinevirtual |
Definition at line 133 of file ObjectLine.h.
References fTypeLine.
Referenced by FactoryObjectStock::CreateDrawableObjectLine().

|
protectedvirtual |
used by MakeStringForStatusBar only base in ObjectLine should be very simple
Definition at line 95 of file ObjectLine.cxx.
References AbstractObjectStock::fParentTHStock, THStock::GetDateBinFromPixel(), Utils::Time_tToString(), and values.
Referenced by ObjectLineTendance::MakeStringForStatusBar().


|
inline |
wrapper functions to fline, need public for all ??
Definition at line 95 of file ObjectLine.h.
References fline.
Referenced by THStock::Add(), FactoryObjectStock::CreateDrawableObjectLine(), ObjectLineTendance::ExecuteEvent(), and ObjectLineTendance::FinaliseDrawableLine().

|
inline |
Definition at line 96 of file ObjectLine.h.
References fline.
Referenced by THStock::Add(), FactoryObjectStock::CreateDrawableObjectLine(), ObjectLineTendance::ExecuteEvent(), and ObjectLineTendance::FinaliseDrawableLine().

|
inline |
Definition at line 97 of file ObjectLine.h.
References fline.
Referenced by THStock::Add(), FactoryObjectStock::CreateDrawableObjectLine(), ObjectLineTendance::ExecuteEvent(), ObjectLineTendance::FinaliseDrawableLine(), ObjectLineIndicator::GetExtrema(), ObjectLineIndicator::MakeStringForStatusBar(), ObjectLineTendance::MakeStringForStatusBar(), ObjectLineTendance::MoveObjectLine(), and ObjectLineTendance::SetObjectStock().

|
inline |
Definition at line 98 of file ObjectLine.h.
References fline.
Referenced by THStock::Add(), FactoryObjectStock::CreateDrawableObjectLine(), ObjectLineTendance::ExecuteEvent(), ObjectLineTendance::FinaliseDrawableLine(), ObjectLineTendance::MoveObjectLine(), and ObjectLineTendance::SetObjectStock().

|
protected |
Referenced by ObjectLine(), and ObjectLineTendance::ObjectLineTendance().

|
inlinevirtual |
Definition at line 121 of file ObjectLine.h.
References fModeLine, and kHalfLine1.
Referenced by ObjectLineTendance::SetObjectStock().

|
inlinevirtual |
Definition at line 122 of file ObjectLine.h.
References fModeLine, and kHalfLine2.
Referenced by ObjectLineTendance::SetObjectStock().

|
inlinevirtual |
Definition at line 120 of file ObjectLine.h.
References fModeLine, and kLine.
Referenced by ObjectLineTendance::SetObjectStock().

|
inlinevirtual |
Definition at line 123 of file ObjectLine.h.
References fModeLine, and kSegment.
Referenced by ObjectLineTendance::SetObjectStock().

|
inlinevirtual |
Definition at line 134 of file ObjectLine.h.
References fTypeLine, and kSupport.
Referenced by ObjectLineTendance::ExecuteEvent(), and ObjectLineTendance::MakeStringForStatusBar().

|
inlinevirtual |
Definition at line 135 of file ObjectLine.h.
|
virtual |
Paint the objet, to overide.
Implements AbstractObjectStock.
Reimplemented in ObjectLineTendance.
Definition at line 144 of file ObjectLine.cxx.
References fline.
|
inlinevirtual |
Reimplemented from AbstractObjectStock.
Definition at line 142 of file ObjectLine.h.
|
inlinevirtual |
Definition at line 114 of file ObjectLine.h.
References fline.
Referenced by FactoryObjectStock::CreateDrawableObjectLine(), and FactoryObjectStock::CreateObjectStock().

|
inlinevirtual |
Definition at line 115 of file ObjectLine.h.
References fline.
|
inlinevirtual |
Definition at line 113 of file ObjectLine.h.
References fline.
|
inlinevirtual |
Definition at line 128 of file ObjectLine.h.
References fModeLine, and kHalfLine1.
|
inlinevirtual |
Definition at line 129 of file ObjectLine.h.
References fModeLine, and kHalfLine2.
|
inlinevirtual |
Definition at line 127 of file ObjectLine.h.
|
inlinevirtual |
Definition at line 130 of file ObjectLine.h.
|
inlinevirtual |
Definition at line 82 of file ObjectLine.h.
References name_line.
|
inlinevirtual |
used for from the listdata
Reimplemented from AbstractObjectStock.
Reimplemented in ObjectLineTendance, and ObjectLineIndicator.
Definition at line 155 of file ObjectLine.h.
|
inlinevirtual |
Definition at line 107 of file ObjectLine.h.
|
inline |
Definition at line 100 of file ObjectLine.h.
References fline.
Referenced by ObjectLineTendance::ExecuteEvent(), ObjectLineTendance::FinaliseDrawableLine(), ObjectLineIndicator::SetObjectStock(), and ObjectLineTendance::SetObjectStock().

|
inline |
Definition at line 101 of file ObjectLine.h.
References fline.
Referenced by FactoryObjectStock::CreateDrawableObjectLine(), ObjectLineTendance::ExecuteEvent(), ObjectLineTendance::FinaliseDrawableLine(), ObjectLineIndicator::SetObjectStock(), and ObjectLineTendance::SetObjectStock().

|
inline |
Definition at line 102 of file ObjectLine.h.
References fline.
Referenced by THStock::AnchorToIndicator(), ObjectLineTendance::ExecuteEvent(), ObjectLineTendance::FinaliseDrawableLine(), ObjectLineTendance::MoveObjectLine(), and ObjectLineTendance::SetObjectStock().

|
inline |
Definition at line 103 of file ObjectLine.h.
References fline.
Referenced by THStock::AnchorToIndicator(), FactoryObjectStock::CreateDrawableObjectLine(), ObjectLineTendance::ExecuteEvent(), ObjectLineTendance::FinaliseDrawableLine(), ObjectLineTendance::MoveObjectLine(), and ObjectLineTendance::SetObjectStock().

|
protected |
use composition TLine*, valable for all derived class
Definition at line 51 of file ObjectLine.h.
Referenced by DistancetoPrimitive(), GetLineColor(), GetLineStyle(), GetLineWidth(), GetX0(), GetX1(), GetY0(), GetY1(), Paint(), ObjectLineTendance::Paint(), ObjectLineTendance::SetInitValuesY(), SetLineColor(), SetLineStyle(), SetLineWidth(), SetX0(), SetX1(), SetY0(), SetY1(), and ~ObjectLine().
|
protected |
kLine, kSegment, kHalfSegment0, kHalfSegment1
Definition at line 46 of file ObjectLine.h.
Referenced by GetModeLine(), IsHalfLine1(), IsHalfLine2(), IsLine(), IsSegment(), ObjectLineIndicator::ObjectLineIndicator(), ObjectLineTendance::ObjectLineTendance(), SetModekHalfLine1(), SetModekHalfLine2(), SetModekLine(), and SetModekSegment().
|
protected |
TypeLine, enum : kNone, kSupport, kTendance, kFibo.
Definition at line 48 of file ObjectLine.h.
Referenced by GetTypeLine(), IsSupport(), IsTendance(), ObjectLine(), and ObjectLineTendance::ObjectLineTendance().
|
protected |
add a name, absent in AbstractObjectStock
Definition at line 38 of file ObjectLine.h.
Referenced by GetNameObject(), ObjectLineIndicator::ObjectLineIndicator(), and SetNameObject().
1.8.6