TEveProjectionAxesGL.h

Go to the documentation of this file.
00001 // @(#)root/eve:$Id: TEveProjectionAxesGL.h 28197 2009-04-14 13:59:27Z matevz $
00002 // Author: Alja Mrak-Tadel 2007
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_TEveProjectionAxesGL
00013 #define ROOT_TEveProjectionAxesGL
00014 
00015 #include "TGLObject.h"
00016 #include "TGLAxisPainter.h"
00017 
00018 class TEveProjectionAxes;
00019 class TEveProjection;
00020 
00021 class TEveProjectionAxesGL : public TGLObject
00022 {
00023 private:
00024    TEveProjectionAxesGL(const TEveProjectionAxesGL&);            // Not implemented
00025    TEveProjectionAxesGL& operator=(const TEveProjectionAxesGL&); // Not implemented
00026 
00027    void                 GetRange(Int_t ax, Float_t frustMin, Float_t frustMax, Float_t& start, Float_t& en) const;
00028    void                 SplitInterval(Float_t x1, Float_t x2, Int_t axis) const;
00029    void                 SplitIntervalByPos(Float_t min, Float_t max, Int_t axis)const;
00030    void                 SplitIntervalByVal(Float_t min, Float_t max, Int_t axis)const;
00031    void                 FilterOverlappingLabels(Int_t idx, Float_t ref) const;
00032 protected:
00033    TEveProjectionAxes     *fM;          // Model object.
00034    mutable TEveProjection *fProjection; // Cached model projection
00035    mutable TGLAxisPainter  fAxisPainter;
00036 
00037 public:
00038    TEveProjectionAxesGL();
00039    virtual ~TEveProjectionAxesGL() {}
00040 
00041    virtual Bool_t  SetModel(TObject* obj, const Option_t* opt = 0);
00042    virtual void    SetBBox();
00043    virtual void    Draw(TGLRnrCtx& rnrCtx) const;
00044    virtual void    DirectDraw(TGLRnrCtx & rnrCtx) const;
00045 
00046    Bool_t IgnoreSizeForOfInterest() const { return kTRUE; }
00047 
00048    ClassDef(TEveProjectionAxesGL, 0); // GL renderer class for TEveProjectionAxes.
00049 };
00050 
00051 #endif

Generated on Tue Jul 5 14:14:59 2011 for ROOT_528-00b_version by  doxygen 1.5.1