Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TEvePlot3D.h
Go to the documentation of this file.
1 // @(#)root/eve:$Id$
2 // Author: Matevz Tadel, 2009
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TEvePlot3D
13 #define ROOT_TEvePlot3D
14 
15 #include "TEveElement.h"
16 #include "TAttBBox.h"
17 
18 class TEvePlot3D : public TEveElementList
19 {
20  friend class TEvePlot3DGL;
21 
22 private:
23  TEvePlot3D(const TEvePlot3D&); // Not implemented
24  TEvePlot3D& operator=(const TEvePlot3D&); // Not implemented
25 
26 protected:
27  TObject *fPlot; // Plot object.
28  TString fPlotOption; // Options for the plot-painter.
29 
30  Bool_t fLogX;
31  Bool_t fLogY;
32  Bool_t fLogZ;
33 
34 public:
35  TEvePlot3D(const char* n="TEvePlot3D", const char* t="");
36  virtual ~TEvePlot3D() {}
37 
38  void SetPlot(TObject* obj, const TString& opt) { fPlot = obj; fPlotOption = opt; }
39 
40  TObject* GetPlot() const { return fPlot; }
41  TString GetPlotOption() const { return fPlotOption; }
42 
43  void SetLogXYZ(Bool_t lx, Bool_t ly, Bool_t lz) { fLogX = lx; fLogY = ly; fLogZ = lz; }
44 
45  void SetLogX(Bool_t l) { fLogX = l; }
46  void SetLogY(Bool_t l) { fLogY = l; }
47  void SetLogZ(Bool_t l) { fLogZ = l; }
48 
49  Bool_t GetLogX() const { return fLogX; }
50  Bool_t GetLogY() const { return fLogY; }
51  Bool_t GetLogZ() const { return fLogZ; }
52 
53  virtual void Paint(Option_t* option="");
54 
55  ClassDef(TEvePlot3D, 0); // Short description.
56 };
57 
58 #endif