3 #ifndef REVE_GuiPointSet_H
4 #define REVE_GuiPointSet_H
7 #include <Reve/RenderElement.h>
9 #include <TPointSet3D.h>
17 class PointSet : public TPointSet3D, public RenderElement
19 friend class PointSetArray;
28 enum TreeVarType_e { TVT_XYZ, TVT_RPhiZ };
30 PointSet(Int_t n_points=0);
31 PointSet(const Text_t* name, Int_t n_points=0);
32 PointSet(const Text_t* name, TTree* tree,
33 TreeVarType_e tv_type=TVT_XYZ);
35 void Reset(Int_t n_points=0);
37 virtual const Text_t* GetTitle() const { return fTitle; }
38 virtual void SetTitle(const Text_t* t) { fTitle = t; }
40 virtual void SetMarkerColor(Color_t col)
41 { SetMainColor(col); }
43 virtual void Paint(Option_t* option="");
45 ClassDef(PointSet, 1);
46 }; // endclass GuiPointSet
48 /**************************************************************************/
50 class PointSetArray : public TNamed, public RenderElementListBase
55 Double_t fMin, fCurMin;
56 Double_t fMax, fCurMax;
63 enum TreeVarType_e { TVT_XYZ, TVT_RPhiZ };
65 PointSetArray(const Text_t* name="PointSetArray",
66 const Text_t* title="");
67 virtual ~PointSetArray();
69 virtual Bool_t CanEditMainColor() { return true; }
70 virtual void Paint(Option_t* option = "") { PaintElements(option); }
72 void InitBins(TGListTreeItem* tree_item, const Text_t* quant_name,
73 Int_t nbins, Double_t min, Double_t max);
74 void Fill(Double_t quant, Double_t x, Double_t y, Double_t z);
75 void Fill(TF3* formula, TTree* tree, TreeVarType_e tv_type=TVT_XYZ);
76 void CloseBins(Int_t mark_style, Float_t mark_size);
78 Double_t GetMin() const { return fMin; }
79 Double_t GetCurMin() const { return fCurMin; }
80 Double_t GetMax() const { return fMax; }
81 Double_t GetCurMax() const { return fCurMax; }
83 void SetRange(Double_t min, Double_t max);
85 void MakeScrollbar(); // *MENU*
86 void HandleScrollEvent();
88 ClassDef(PointSetArray, 1);