#ifndef REVEGUI_ReveBrowser_H
#define REVEGUI_ReveBrowser_H

#include <TGFrame.h>
#include <TGButton.h>
#include <TGListTree.h>
#include <TGNumberEntry.h>
#include <TGColorSelect.h>

#include <TParticle.h>
#include <TTree.h>
#include <TCanvas.h>
#include <TGeoVolume.h>

namespace ReveGui {

class ReveValuator : public TGNumberEntry
{
protected:
  void* fUserData;

public:
  ReveValuator(const TGWindow* parent = 0, Double_t val = 0, Int_t digitwidth = 5, Int_t id = -1, TGNumberFormat::EStyle style = kNESReal, TGNumberFormat::EAttribute attr = kNEAAnyNumber, TGNumberFormat::ELimit limits = kNELNoLimits, Double_t min = 0, Double_t max = 1) :
    TGNumberEntry(parent, val, digitwidth, id, style, attr, limits, min, max),
    fUserData(0)
  {}
  virtual ~ReveValuator();

  void* GetUserData() const   { return fUserData; }
  void  SetUserData(void* ud) { fUserData = ud; }

  ClassDef(ReveValuator, 1);
};


class ReveColorSelect: public TGColorSelect
{
 public:
  ReveColorSelect(const TGWindow* p = 0, Pixel_t color = 0, Int_t id = -1) :
    TGColorSelect(p, color,id)
  {}
  virtual ~ReveColorSelect() {}

  void UpdateColor(Pixel_t col){
    fColor=col; 
    fDrawGC.SetForeground(col);  
    gClient->NeedRedraw(this);
  }

  ClassDef(ReveColorSelect, 1);
};


class ReveBrowser : public TGCompositeFrame
{
 private:
  TGCompositeFrame* fDisplayFrame;
  TGListTree*       fListTree;
 public:
  ReveBrowser(const TGWindow *p,UInt_t w,UInt_t h);
  virtual ~ReveBrowser() {}

  void RedrawListTree();

  void DisplayChildren(TGListTreeItem *entry, Int_t btn);

  void SetVolumeColor(UInt_t col);
  void NodeVis(Bool_t vis);
  void VolumeDaughterVis(Bool_t vis);

  void DbClickListItem(TGListTreeItem* item, Int_t btn);
  void UpdateListItems(TGListTreeItem* item, Int_t btn);
  void SetTransparency(Long_t val);

  // GuiTrackRnrStyle
  void SetMaxR(Long_t);
  void SetMaxZ(Long_t);
  void SetMaxOrbs(Long_t);

  // GuiPOintRnrStyle
  void   SetMarkerStyle(Long_t style);


  TGListTree* GetListTree(){return fListTree;}

  ClassDef(ReveBrowser, 1);
};

} // namespace ReveGui

#endif


ROOT page - Class index - Class Hierarchy - 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.