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

Draw Jap. More...

#include <ObjectStock.h>

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

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 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 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
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

Draw Jap.

Candle
Derive from AbstractObjectStock directly
no need to store name !

Definition at line 34 of file ObjectStock.h.

Constructor & Destructor Documentation

CandleStock::CandleStock ( )
inline

Definition at line 48 of file ObjectStock.h.

References fclose, fdate, fhigh, flow, fopen, fxmax, and fxmin.

virtual CandleStock::~CandleStock ( )
inlinevirtual

Definition at line 53 of file ObjectStock.h.

Member Function Documentation

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

Set kPaint to false, keep in memory.

Implements AbstractObjectStock.

Definition at line 68 of file ObjectStock.h.

References AbstractObjectStock::kPaint.

int CandleStock::DistancetoPoint ( int  px,
int  py,
double &  yvalue,
int  bin = -1 
) const
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.

Parameters
px
py
yvalue
bin
Returns
Parameters
value_x,notused
value_y
yvalue
Returns
distance

Implements AbstractObjectStock.

Definition at line 175 of file ObjectStock.cxx.

References fclose, fhigh, flow, and fopen.

int CandleStock::DistancetoPrimitive ( Int_t  px,
Int_t  py,
AbstractObjectStock **   
)
virtual

always called from ListObjectStock, aadd **pointer to overide abstract base, but not used

Definition at line 107 of file ObjectStock.cxx.

References fclose, fopen, fxmax, and fxmin.

virtual time_t CandleStock::GetDate ( ) const
inlinevirtual

Definition at line 60 of file ObjectStock.h.

References fdate.

Referenced by MakeStringForStatusBar().

Here is the caller graph for this function:

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

Implements AbstractObjectStock.

Definition at line 91 of file ObjectStock.cxx.

References GetValues(), and values.

Here is the call graph for this function:

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

pure-virtual access

Implements AbstractObjectStock.

Definition at line 57 of file ObjectStock.h.

Referenced by MakeStringForStatusBar().

Here is the caller graph for this function:

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

return the 4 values of a candle use fby MakeStringForStatus and GetExtrema

Referenced by GetExtrema(), and MakeStringForStatusBar().

Here is the caller graph for this function:

std::vector< std::string > CandleStock::MakeStringForStatusBar ( int  ,
int   
) const
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.

Here is the call graph for this function:

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

Paint one candle.

Implements AbstractObjectStock.

Definition at line 200 of file ObjectStock.cxx.

References fclose, fhigh, flow, fopen, fxmax, and fxmin.

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

implementeation of pure virtual in Abstract, need double here

Set values for one Candle.

Definition at line 67 of file ObjectStock.cxx.

References fclose, fdate, fhigh, flow, fopen, fxmax, and fxmin.

Field Documentation

float CandleStock::fclose
protected

Definition at line 40 of file ObjectStock.h.

Referenced by CandleStock(), DistancetoPoint(), DistancetoPrimitive(), Paint(), and SetValues().

time_t CandleStock::fdate
protected

Definition at line 38 of file ObjectStock.h.

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

float CandleStock::fhigh
protected

Definition at line 40 of file ObjectStock.h.

Referenced by CandleStock(), DistancetoPoint(), Paint(), and SetValues().

float CandleStock::flow
protected

Definition at line 40 of file ObjectStock.h.

Referenced by CandleStock(), DistancetoPoint(), Paint(), and SetValues().

float CandleStock::fopen
protected

Definition at line 40 of file ObjectStock.h.

Referenced by CandleStock(), DistancetoPoint(), DistancetoPrimitive(), Paint(), and SetValues().

double CandleStock::fxmax
protected

Definition at line 41 of file ObjectStock.h.

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

double CandleStock::fxmin
protected

Definition at line 41 of file ObjectStock.h.

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


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