Warning, file /include/root/TScatter.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROOT_TScatter
0013 #define ROOT_TScatter
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024 #include "TNamed.h"
0025 #include "TAttLine.h"
0026 #include "TAttFill.h"
0027 #include "TAttMarker.h"
0028 #include "TGraph.h"
0029
0030 class TH2F;
0031
0032 class TScatter : public TNamed, public TAttLine, public TAttFill, public TAttMarker {
0033
0034 protected:
0035 Int_t fMaxSize{-1};
0036 Int_t fNpoints{-1};
0037 TH2F *fHistogram{nullptr};
0038 TGraph *fGraph{nullptr};
0039 Double_t *fColor{nullptr};
0040 Double_t *fSize{nullptr};
0041 Double_t fMaxMarkerSize{5.};
0042 Double_t fMinMarkerSize{1.};
0043 Double_t fMargin{.1};
0044
0045 public:
0046 TScatter();
0047 TScatter(Int_t n);
0048 TScatter(Int_t n, const Double_t *x, const Double_t *y, const Double_t *col = nullptr, const Double_t *size = nullptr);
0049 ~TScatter() override;
0050
0051 Int_t DistancetoPrimitive(Int_t px, Int_t py) override;
0052 void ExecuteEvent(Int_t event, Int_t px, Int_t py) override;
0053 Double_t *GetColor() const {return fColor;}
0054 Double_t *GetSize() const {return fSize;}
0055 Double_t GetMargin() const {return fMargin;}
0056 Double_t GetMaxMarkerSize() const {return fMaxMarkerSize;}
0057 Double_t GetMinMarkerSize() const {return fMinMarkerSize;}
0058 TGraph *GetGraph() const {return fGraph;}
0059 TH2F *GetHistogram() const;
0060
0061 void SetMaxMarkerSize(Double_t max) {fMaxMarkerSize = max;}
0062 void SetMinMarkerSize(Double_t min) {fMinMarkerSize = min;}
0063 void SetMargin(Double_t);
0064 void SetHistogram(TH2F *h) {fHistogram = h;}
0065 void Print(Option_t *chopt="") const override;
0066 void SavePrimitive(std::ostream &out, Option_t *option = "") override;
0067 void Paint(Option_t *chopt="") override;
0068
0069
0070 ClassDefOverride(TScatter,2)
0071 };
0072 #endif
0073