TPaveVar


class description - source file - inheritance tree

class TPaveVar : public TPaveLabel


    protected:
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py) public:
TPaveVar TPaveVar() TPaveVar TPaveVar(Double_t x1, Double_t y1, Double_t x2, Double_t y2, const char* label, TTreeViewer* viewer) TPaveVar TPaveVar(const TPaveVar& PaveVar) virtual void ~TPaveVar() static TClass* Class() virtual void Copy(TObject& PaveVar) TTreeViewer* GetViewer() virtual TClass* IsA() const virtual void Merge(Option_t* option = AND) virtual void SavePrimitive(ofstream& out, Option_t* option) virtual void SetViewer(TTreeViewer* viewer) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b)

Data Members

protected:
TTreeViewer* fViewer Pointer to the TTreeViewer referencing this object public:
static const enum TObject:: kBranchObject

Class Description

  A PaveVar is a TPaveLabel  specialized to process
  variables and cuts inside a TTreeViewer.
   A TPaveVar object is used by the TTreeViewer to represent
     - a TTree variable
     - a selection expression.
   A TPavevar has the same graphical representation as a TPaveLabel.
   One can only resize the left or right borders (not top/bottom).
   The context menu allows merging (and/or) overlapping TPaveVars.


TPaveVar(): TPaveLabel()
*-*-*-*-*-*-*-*-*-*-*PaveVar default constructor*-*-*-*-*-*-*-*-*-*-*-*-*

TPaveVar(Double_t x1, Double_t y1,Double_t x2, Double_t y2, const char *label, TTreeViewer *viewer) :TPaveLabel(x1,y1,x2,y2,label,"br")
*-*-*-*-*-*-*-*-*-*-*PaveVar normal constructor*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  ============================

~TPaveVar()
*-*-*-*-*-*-*-*-*-*-*PaveVar default destructor*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  ============================

TPaveVar(const TPaveVar &PaveVar)

void Copy(TObject &obj)
*-*-*-*-*-*-*-*-*-*-*Copy this PaveVar to PaveVar*-*-*-*-*-*-*-*-*-*-*-*
*-*                  ================================

void ExecuteEvent(Int_t event, Int_t px, Int_t py)
*-*-*-*-*-*-*-*-*-*-*Execute action corresponding to one event*-*-*-*
*-*                  =========================================
  This member function is called when a TPaveVar object is clicked.

  If the mouse is clicked inside the box, the box is moved.

  If the mouse is clicked on the 2 edges (L,R), the box is rscaled
  parallel to this edge.

    PA                    T                       PB
     +--------------------------------------------+
     |                                            |
     |                                            |
     |                                            |
    L|                  INSIDE                    |R
     |                                            |
     |                                            |
     |                                            |
     |                                            |
     +--------------------------------------------+
    PD                    B                      PC


void Merge(Option_t *option)
  Merge all TPaveVars overlapping with this TPaveVar on the TTeeeViewer
     option = "AND" all paves are ANDed in a new TPaveVar
     option = "OR"  all paves are ORed in a new TPaveVar

void SavePrimitive(ofstream &out, Option_t *)
 Save primitive as a C++ statement(s) on output stream out



Inline Functions


        TTreeViewer* GetViewer()
                void SetViewer(TTreeViewer* viewer)
             TClass* Class()
             TClass* IsA() const
                void ShowMembers(TMemberInspector& insp, char* parent)
                void Streamer(TBuffer& b)


Author: Rene Brun 08/12/98
Last update: root/treeviewer:$Name: $:$Id: TPaveVar.cxx,v 1.2 2000/06/13 13:59:21 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


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.