TDrawPanelHist


class description - source file - inheritance tree

class TDrawPanelHist : public TDialogCanvas


    public:
TDrawPanelHist TDrawPanelHist() TDrawPanelHist TDrawPanelHist(const Text_t* name, const Text_t* title, UInt_t ww = 500, UInt_t wh = 600) virtual void ~TDrawPanelHist() virtual void AddOption(Option_t* option) virtual void Apply(const Text_t* action) virtual void BuildStandardButtons() TClass* Class() virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py) TObject* GetHistogram() virtual TClass* IsA() const virtual void SavePrimitive(ofstream& out, Option_t* option) virtual void SetDefaults() virtual void SetSame() virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b)

Data Members

protected:
TString fOption Fitting options TSlider* fSlider Pointer to fitpanel slider TObject* fHistogram Pointer to histogram

Class Description

  A TDrawPanelHist is a TDialogCanvas specialized to control
  histogram drawing options.
   With the mouse, the user can control:
     - the drawing range in X and Y
     - the drawing options
   When the DRAW button is executed, the selected histogram is drawn
   with the current parameters.

   Use the slider to control the range of the histogram to be drawn.

   The options are documented in TH1::Draw.

/*

*/



TDrawPanelHist() : TDialogCanvas()
 DrawPanelHist default constructor.

TDrawPanelHist(const Text_t *name, const Text_t *title, UInt_t ww, UInt_t wh) : TDialogCanvas(name, title,ww,wh)
 DrawPanelHist constructor.

~TDrawPanelHist()
 DrawPanelHist destructor.

void AddOption(Option_t *option)
 Add option to the current list of options.

void Apply(const Text_t *action)
 Collect all options and draw histogram.

void BuildStandardButtons()
 Create Draw, Defaults and Close buttons.

void ExecuteEvent(Int_t event, Int_t px, Int_t py)
 Control mousse events when slider is used in a drawpanel

 This function is called by TPad::ExecuteEvent or TSliderBox::ExecuteEvent
 We return in the first case.
 When called by the slider,  px = 0 and py = 0

void SavePrimitive(ofstream &, Option_t *)
 Save this drawpanel in a macro.

void SetDefaults()
 Set default draw panel options.

void SetSame()
 Set graphics option "same".



Inline Functions


           TObject* GetHistogram()
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)


Author: Rene Brun 26/11/96
Last update: 2.23/04 28/09/99 20.31.48 by Rene Brun
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *


ROOT page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.