Logo ROOT  
Reference Guide
TGLCameraOverlay.h
Go to the documentation of this file.
1// @(#)root/gl:$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_TGLCameraOverlay
13#define ROOT_TGLCameraOverlay
14
15#include "TAttAxis.h"
16#include "TGLOverlay.h"
17#include "TGLUtil.h"
18
19class TGLAxisPainter;
20class TGLFont;
21
22class TAttAxis;
23class TAxis;
24
26{
27public:
29
30private:
31 TGLCameraOverlay(const TGLCameraOverlay&); // Not implemented
32 TGLCameraOverlay& operator=(const TGLCameraOverlay&); // Not implemented
33
34protected:
37
40
45
48
50
51
52 void RenderPlaneIntersect(TGLRnrCtx& rnrCtx);
53 void RenderAxis(TGLRnrCtx& rnrCtx, Bool_t drawGrid);
54 void RenderGrid(TGLRnrCtx& rnrCtx);
55 void RenderBar(TGLRnrCtx& rnrCtx);
56
57public:
58 TGLCameraOverlay(Bool_t showOrtho=kTRUE, Bool_t showPersp=kFALSE);
59 virtual ~TGLCameraOverlay();
60
61 virtual void Render(TGLRnrCtx& rnrCtx);
62
66
71
76
77 void SetFrustum(TGLCamera& cam);
78
80
81 ClassDef(TGLCameraOverlay, 1); // Show coorinates of current camera frustum.
82};
83
84#endif
int Int_t
Definition: RtypesCore.h:41
const Bool_t kFALSE
Definition: RtypesCore.h:88
bool Bool_t
Definition: RtypesCore.h:59
double Double_t
Definition: RtypesCore.h:55
float Float_t
Definition: RtypesCore.h:53
const Bool_t kTRUE
Definition: RtypesCore.h:87
#define ClassDef(name, id)
Definition: Rtypes.h:326
Manages histogram axis attributes.
Definition: TAttAxis.h:18
Class to manage histogram axis.
Definition: TAxis.h:30
A GL overlay element which displays camera furstum.
void UseExternalRefPlane(Bool_t x)
void SetShowPerspective(Bool_t x)
void RenderAxis(TGLRnrCtx &rnrCtx, Bool_t drawGrid)
Draw axis on four edges and a transparent grid.
Int_t GetPerspectiveMode() const
TGLAxisPainter * fAxisPainter
TGLPlane fExternalRefPlane
Double_t fFrustum[4]
void SetFrustum(TGLCamera &cam)
Set frustum values from given camera.
void SetShowOrthographic(Bool_t x)
virtual void Render(TGLRnrCtx &rnrCtx)
Display coordinates info of current frustum.
Int_t GetOrthographicMode() const
Bool_t GetShowPerspective() const
void RenderPlaneIntersect(TGLRnrCtx &rnrCtx)
Draw cross section coordinates in top right corner of screen.
TAttAxis * GetAttAxis()
Get axis attributes.
Bool_t GetShowOrthographic() const
TGLCameraOverlay(const TGLCameraOverlay &)
void SetPerspectiveMode(EMode m)
void SetOrthographicMode(EMode m)
void RenderBar(TGLRnrCtx &rnrCtx)
Show frustum size with fixed screen line length and printed value.
TGLCameraOverlay & operator=(const TGLCameraOverlay &)
TGLPlane & RefExternalRefPlane()
void RenderGrid(TGLRnrCtx &rnrCtx)
virtual ~TGLCameraOverlay()
Destructor.
Bool_t GetUseExternalRefPlane() const
Abstract base camera class - concrete classes for orthographic and perspective cameras derive from it...
Definition: TGLCamera.h:44
A wrapper class for FTFont.
An overlay element.
Definition: TGLOverlay.h:23
3D plane class - of format Ax + By + Cz + D = 0
Definition: TGLUtil.h:524
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
Definition: TGLRnrCtx.h:41
Double_t x[n]
Definition: legend1.C:17
auto * m
Definition: textangle.C:8