Logo ROOT  
Reference Guide
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:
20 TGLCameraGuide(const TGLCameraGuide&); // Not implemented
21 TGLCameraGuide& operator=(const TGLCameraGuide&); // Not implemented
22
23protected:
27
30
31public:
33 ERole role=kUser, EState state=kActive);
34 virtual ~TGLCameraGuide() {}
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 virtual Bool_t MouseEnter(TGLOvlSelectRecord& selRec);
42 virtual Bool_t Handle(TGLRnrCtx& rnrCtx, TGLOvlSelectRecord& selRec,
43 Event_t* event);
44 virtual void MouseLeave();
45
46 virtual void Render(TGLRnrCtx& rnrCtx);
47
48 ClassDef(TGLCameraGuide, 0); // Short description.
49};
50
51#endif
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
float Float_t
Definition: RtypesCore.h:53
#define ClassDef(name, id)
Definition: Rtypes.h:326
Draws arrows showing camera orientation in the overlay.
virtual void Render(TGLRnrCtx &rnrCtx)
Render the camera axis arrows.
virtual Bool_t MouseEnter(TGLOvlSelectRecord &selRec)
Mouse has entered overlay area.
virtual Bool_t Handle(TGLRnrCtx &rnrCtx, TGLOvlSelectRecord &selRec, Event_t *event)
Handle overlay event.
void SetY(Float_t y)
virtual void MouseLeave()
Mouse has left overlay area.
void SetXY(Float_t x, Float_t y)
void SetX(Float_t x)
TGLCameraGuide(const TGLCameraGuide &)
virtual ~TGLCameraGuide()
TGLCameraGuide & operator=(const TGLCameraGuide &)
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
static constexpr double s