Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TEvePlot3D.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/eve:$Id$
0002 // Author: Matevz Tadel, 2009
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TEvePlot3D
0013 #define ROOT_TEvePlot3D
0014 
0015 #include "TEveElement.h"
0016 #include "TAttBBox.h"
0017 
0018 class TEvePlot3D : public TEveElementList
0019 {
0020    friend class TEvePlot3DGL;
0021 
0022 private:
0023    TEvePlot3D(const TEvePlot3D&);            // Not implemented
0024    TEvePlot3D& operator=(const TEvePlot3D&); // Not implemented
0025 
0026 protected:
0027    TObject     *fPlot;       // Plot object.
0028    TString      fPlotOption; // Options for the plot-painter.
0029 
0030    Bool_t       fLogX;
0031    Bool_t       fLogY;
0032    Bool_t       fLogZ;
0033 
0034 public:
0035    TEvePlot3D(const char* n="TEvePlot3D", const char* t="");
0036    ~TEvePlot3D() override {}
0037 
0038    void SetPlot(TObject* obj, const TString& opt) { fPlot = obj; fPlotOption = opt; }
0039 
0040    TObject* GetPlot()       const { return fPlot;   }
0041    TString  GetPlotOption() const { return fPlotOption; }
0042 
0043    void     SetLogXYZ(Bool_t lx, Bool_t ly, Bool_t lz) { fLogX = lx; fLogY = ly; fLogZ = lz; }
0044 
0045    void     SetLogX(Bool_t l) { fLogX = l; }
0046    void     SetLogY(Bool_t l) { fLogY = l; }
0047    void     SetLogZ(Bool_t l) { fLogZ = l; }
0048 
0049    Bool_t   GetLogX() const { return fLogX; }
0050    Bool_t   GetLogY() const { return fLogY; }
0051    Bool_t   GetLogZ() const { return fLogZ; }
0052 
0053    void Paint(Option_t* option="") override;
0054 
0055    ClassDefOverride(TEvePlot3D, 0); // Short description.
0056 };
0057 
0058 #endif