Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TEveProjectionAxesGL.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: Alja Mrak-Tadel 2007
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_TEveProjectionAxesGL
0013 #define ROOT_TEveProjectionAxesGL
0014 
0015 #include "TGLObject.h"
0016 #include "TGLAxisPainter.h"
0017 
0018 class TEveProjectionAxes;
0019 class TEveProjection;
0020 
0021 class TEveProjectionAxesGL : public TGLObject
0022 {
0023 private:
0024    TEveProjectionAxesGL(const TEveProjectionAxesGL&);            // Not implemented
0025    TEveProjectionAxesGL& operator=(const TEveProjectionAxesGL&); // Not implemented
0026 
0027    void                 GetRange(Int_t ax, Float_t frustMin, Float_t frustMax, Float_t& start, Float_t& en) const;
0028    void                 SplitInterval(Float_t x1, Float_t x2, Int_t axis) const;
0029    void                 SplitIntervalByPos(Float_t min, Float_t max, Int_t axis)const;
0030    void                 SplitIntervalByVal(Float_t min, Float_t max, Int_t axis)const;
0031    void                 FilterOverlappingLabels(Int_t idx, Float_t ref) const;
0032 protected:
0033    TEveProjectionAxes     *fM;          // Model object.
0034    mutable TEveProjection *fProjection; // Cached model projection
0035    mutable TGLAxisPainter  fAxisPainter;
0036 
0037 public:
0038    TEveProjectionAxesGL();
0039    ~TEveProjectionAxesGL() override {}
0040 
0041    Bool_t  SetModel(TObject* obj, const Option_t* opt = nullptr) override;
0042    void    SetBBox() override;
0043    void    Draw(TGLRnrCtx& rnrCtx) const override;
0044    void    DirectDraw(TGLRnrCtx & rnrCtx) const override;
0045 
0046    Bool_t IgnoreSizeForOfInterest() const override { return kTRUE; }
0047 
0048    ClassDefOverride(TEveProjectionAxesGL, 0); // GL renderer class for TEveProjectionAxes.
0049 };
0050 
0051 #endif