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
BarStock Class Reference

#include <ObjectStock.h>

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

Public Member Functions

 BarStock ()
 
 BarStock (bool ref0)
 
virtual ~BarStock ()
 
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 void ClearObjectStock ()
 set kPaint to false, keep in memory More...
 
virtual time_t GetDate () const
 
virtual void GetExtrema (double &min, double &max) const
 override abstract base function More...
 
virtual void SetValues (UInt_t bin, std::vector< double > values, Double_t xmin, Double_t xmax, time_t date, UInt_t opt_value=0)
 
virtual int DistancetoPrimitive (int px, int py, AbstractObjectStock **)
 used for selection of object, for const need attention to the pointer More...
 
virtual int DistancetoPoint (int, int, double &yvalue, int bin=-1) const
 called by THStock for anchoring. More...
 
virtual void Paint (const Option_t *="")
 realize the painting, not setting the values More...
 
 ClassDef (BarStock, 1)
 
- 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 SetObjectStock (ListDataStockBase *, CommonXAxis *, Hparam_stock_t &)
 used for from the listdata More...
 
virtual void SetLineColorObject (Color_t)
 
 ClassDef (AbstractObjectStock, 1)
 

Protected Member Functions

std::vector< float > GetValues () const
 return 1 one value in a vector used by MakeStringForStatus and GetExtrema More...
 

Protected Attributes

time_t fdate
 
bool fref0_value
 
double fvalue
 
double fxmin
 
double fxmax
 
- 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

Definition at line 94 of file ObjectStock.h.

Constructor & Destructor Documentation

BarStock::BarStock ( )

Definition at line 226 of file ObjectStock.cxx.

References fdate, fref0_value, fvalue, fxmax, and fxmin.

BarStock::BarStock ( bool  ref0)

Definition at line 234 of file ObjectStock.cxx.

References fdate, fref0_value, fvalue, fxmax, and fxmin.

virtual BarStock::~BarStock ( )
inlinevirtual

Definition at line 116 of file ObjectStock.h.

Member Function Documentation

BarStock::ClassDef ( BarStock  ,
 
)
virtual void BarStock::ClearObjectStock ( )
inlinevirtual

set kPaint to false, keep in memory

Implements AbstractObjectStock.

Definition at line 122 of file ObjectStock.h.

References AbstractObjectStock::kPaint.

int BarStock::DistancetoPoint ( int  ,
int  ,
double &  ,
int  bin = -1 
) const
virtual

called by THStock for anchoring.


keep main idea from ROOT, add optional bin if provides faster access

Implemented only for Indicator

Parameters
pxin pixel
py
value,updatethe new value
bin
Returns
minimum distance to the closest point

Implements AbstractObjectStock.

Definition at line 364 of file ObjectStock.cxx.

References fvalue.

int BarStock::DistancetoPrimitive ( int  ,
int  ,
AbstractObjectStock **   
)
virtual

used for selection of object, for const need attention to the pointer

Implements AbstractObjectStock.

Definition at line 311 of file ObjectStock.cxx.

References fvalue, fxmax, and fxmin.

virtual time_t BarStock::GetDate ( ) const
inlinevirtual

Definition at line 124 of file ObjectStock.h.

References fdate.

Referenced by MakeStringForStatusBar().

Here is the caller graph for this function:

void BarStock::GetExtrema ( double &  min,
double &  max 
) const
virtual

override abstract base function

override base function

Implements AbstractObjectStock.

Definition at line 279 of file ObjectStock.cxx.

References GetValues(), and values.

Here is the call graph for this function:

virtual std::string BarStock::GetNameObject ( ) const
inlinevirtual

pure-virtual access

Implements AbstractObjectStock.

Definition at line 118 of file ObjectStock.h.

Referenced by MakeStringForStatusBar().

Here is the caller graph for this function:

std::vector< float > BarStock::GetValues ( ) const
protected

return 1 one value in a vector used by MakeStringForStatus and GetExtrema

Definition at line 249 of file ObjectStock.cxx.

References fvalue, and values.

Referenced by GetExtrema(), and MakeStringForStatusBar().

Here is the caller graph for this function:

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

create the string for the StatusBar

Implements AbstractObjectStock.

Definition at line 257 of file ObjectStock.cxx.

References GetDate(), GetNameObject(), GetValues(), Utils::Time_tToString(), and values.

Here is the call graph for this function:

void BarStock::Paint ( const Option_t *  = "")
virtual

realize the painting, not setting the values

Implements AbstractObjectStock.

Definition at line 377 of file ObjectStock.cxx.

References fref0_value, fvalue, fxmax, and fxmin.

void BarStock::SetValues ( UInt_t  bin,
std::vector< double >  values,
Double_t  xmin,
Double_t  xmax,
time_t  date,
UInt_t  opt_value = 0 
)
virtual

Definition at line 294 of file ObjectStock.cxx.

References fdate, fvalue, fxmax, and fxmin.

Field Documentation

time_t BarStock::fdate
protected

Definition at line 99 of file ObjectStock.h.

Referenced by BarStock(), GetDate(), and SetValues().

bool BarStock::fref0_value
protected

Definition at line 104 of file ObjectStock.h.

Referenced by BarStock(), and Paint().

double BarStock::fvalue
protected
double BarStock::fxmax
protected

Definition at line 107 of file ObjectStock.h.

Referenced by BarStock(), DistancetoPrimitive(), Paint(), and SetValues().

double BarStock::fxmin
protected

Definition at line 107 of file ObjectStock.h.

Referenced by BarStock(), DistancetoPrimitive(), Paint(), and SetValues().


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