Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGLCameraGuide.h
Go to the documentation of this file.
1// @(#)root/eve:$Id$
2// Author: Matevz 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_TGLCameraGuide
13#define ROOT_TGLCameraGuide
14
15#include "TGLOverlay.h"
16
18{
19private:
22
23protected:
27
30
31public:
33 ERole role=kUser, EState state=kActive);
34 ~TGLCameraGuide() override {}
35
36 void SetX(Float_t x) { fXPos = x; }
37 void SetY(Float_t y) { fYPos = y; }
38 void SetXY(Float_t x, Float_t y) { fXPos = x; fYPos = y; }
39 void SetSize(Float_t s) { fSize = s; }
40
41 Bool_t MouseEnter(TGLOvlSelectRecord& selRec) override;
43 Event_t* event) override;
44 void MouseLeave() override;
45
46 void Render(TGLRnrCtx& rnrCtx) override;
47
48 ClassDefOverride(TGLCameraGuide, 0); // Short description.
49};
50
51#endif
bool Bool_t
Definition RtypesCore.h:63
float Float_t
Definition RtypesCore.h:57
Draws arrows showing camera orientation in the overlay.
void Render(TGLRnrCtx &rnrCtx) override
Render the camera axis arrows.
Bool_t MouseEnter(TGLOvlSelectRecord &selRec) override
Mouse has entered overlay area.
void SetY(Float_t y)
void MouseLeave() override
Mouse has left overlay area.
void SetXY(Float_t x, Float_t y)
TGLCameraGuide & operator=(const TGLCameraGuide &)=delete
void SetX(Float_t x)
~TGLCameraGuide() override
TGLCameraGuide(const TGLCameraGuide &)=delete
Bool_t Handle(TGLRnrCtx &rnrCtx, TGLOvlSelectRecord &selRec, Event_t *event) override
Handle overlay event.
ClassDefOverride(TGLCameraGuide, 0)
void SetSize(Float_t s)
An overlay element.
Definition TGLOverlay.h:23
Selection record for overlay objects.
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
Definition TGLRnrCtx.h:41
Double_t y[n]
Definition legend1.C:17
Double_t x[n]
Definition legend1.C:17
Event structure.
Definition GuiTypes.h:174