Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TEveProjectionAxesGL.h
Go to the documentation of this file.
1// @(#)root/eve:$Id$
2// Author: Alja Mrak-Tadel 2007
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_TEveProjectionAxesGL
13#define ROOT_TEveProjectionAxesGL
14
15#include "TGLObject.h"
16#include "TGLAxisPainter.h"
17
19class TEveProjection;
20
22{
23private:
24 TEveProjectionAxesGL(const TEveProjectionAxesGL&); // Not implemented
26
27 void GetRange(Int_t ax, Float_t frustMin, Float_t frustMax, Float_t& start, Float_t& en) const;
28 void SplitInterval(Float_t x1, Float_t x2, Int_t axis) const;
29 void SplitIntervalByPos(Float_t min, Float_t max, Int_t axis)const;
30 void SplitIntervalByVal(Float_t min, Float_t max, Int_t axis)const;
31 void FilterOverlappingLabels(Int_t idx, Float_t ref) const;
32protected:
33 TEveProjectionAxes *fM; // Model object.
34 mutable TEveProjection *fProjection; // Cached model projection
36
37public:
40
41 Bool_t SetModel(TObject* obj, const Option_t* opt = nullptr) override;
42 void SetBBox() override;
43 void Draw(TGLRnrCtx& rnrCtx) const override;
44 void DirectDraw(TGLRnrCtx & rnrCtx) const override;
45
46 Bool_t IgnoreSizeForOfInterest() const override { return kTRUE; }
47
48 ClassDefOverride(TEveProjectionAxesGL, 0); // GL renderer class for TEveProjectionAxes.
49};
50
51#endif
bool Bool_t
Definition RtypesCore.h:63
float Float_t
Definition RtypesCore.h:57
constexpr Bool_t kTRUE
Definition RtypesCore.h:93
const char Option_t
Definition RtypesCore.h:66
Option_t Option_t TPoint TPoint const char x2
Option_t Option_t TPoint TPoint const char x1
OpenGL renderer class for TEveProjectionAxes.
void SplitIntervalByVal(Float_t min, Float_t max, Int_t axis) const
Add tick-marks on fixed value step.
void SplitIntervalByPos(Float_t min, Float_t max, Int_t axis) const
Add tick-marks at equidistant position.
TEveProjection * fProjection
void FilterOverlappingLabels(Int_t idx, Float_t ref) const
Filter overlapping labels.
Bool_t IgnoreSizeForOfInterest() const override
Return true if size of this shape should be ignored when determining if the object should be drawn.
void GetRange(Int_t ax, Float_t frustMin, Float_t frustMax, Float_t &start, Float_t &en) const
Get range from bounding box of projection manager and frustum size.
ClassDefOverride(TEveProjectionAxesGL, 0)
TEveProjectionAxes * fM
void DirectDraw(TGLRnrCtx &rnrCtx) const override
Actual rendering code.
TEveProjectionAxesGL(const TEveProjectionAxesGL &)
void SetBBox() override
Fill the bounding-box data of the logical-shape.
Bool_t SetModel(TObject *obj, const Option_t *opt=nullptr) override
Set model object.
void SplitInterval(Float_t x1, Float_t x2, Int_t axis) const
Build an array of tick-mark position-value pairs.
TEveProjectionAxesGL & operator=(const TEveProjectionAxesGL &)
Axes for non-linear projections.
Base-class for non-linear projections.
Utility class to paint axis in GL.
Base-class for direct OpenGL renderers.
Definition TGLObject.h:22
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
Definition TGLRnrCtx.h:41
Mother of all ROOT objects.
Definition TObject.h:41
th1 Draw()