00001 // @(#)root/eve:$Id: TEvePlot3D.h 32478 2010-03-05 14:20:48Z matevz $ 00002 // Author: Matevz Tadel, 2009 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. * 00006 * All rights reserved. * 00007 * * 00008 * For the licensing terms see $ROOTSYS/LICENSE. * 00009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00010 *************************************************************************/ 00011 00012 #ifndef ROOT_TEvePlot3D 00013 #define ROOT_TEvePlot3D 00014 00015 #include "TEveElement.h" 00016 #include "TAttBBox.h" 00017 00018 class TEvePlot3D : public TEveElementList 00019 { 00020 friend class TEvePlot3DGL; 00021 00022 private: 00023 TEvePlot3D(const TEvePlot3D&); // Not implemented 00024 TEvePlot3D& operator=(const TEvePlot3D&); // Not implemented 00025 00026 protected: 00027 TObject *fPlot; // Plot object. 00028 TString fPlotOption; // Options for the plot-painter. 00029 00030 Bool_t fLogX; 00031 Bool_t fLogY; 00032 Bool_t fLogZ; 00033 00034 public: 00035 TEvePlot3D(const char* n="TEvePlot3D", const char* t=""); 00036 virtual ~TEvePlot3D() {} 00037 00038 void SetPlot(TObject* obj, const TString& opt) { fPlot = obj; fPlotOption = opt; } 00039 00040 TObject* GetPlot() const { return fPlot; } 00041 TString GetPlotOption() const { return fPlotOption; } 00042 00043 void SetLogXYZ(Bool_t lx, Bool_t ly, Bool_t lz) { fLogX = lx; fLogY = ly; fLogZ = lz; } 00044 00045 void SetLogX(Bool_t l) { fLogX = l; } 00046 void SetLogY(Bool_t l) { fLogY = l; } 00047 void SetLogZ(Bool_t l) { fLogZ = l; } 00048 00049 Bool_t GetLogX() const { return fLogX; } 00050 Bool_t GetLogY() const { return fLogY; } 00051 Bool_t GetLogZ() const { return fLogZ; } 00052 00053 virtual void Paint(Option_t* option=""); 00054 00055 ClassDef(TEvePlot3D, 0); // Short description. 00056 }; 00057 00058 #endif