Logo ROOT  
Reference Guide
TGLCameraGuide Class Reference

Draws arrows showing camera orientation in the overlay.

X, Y position is in range 0, 1.

Definition at line 17 of file TGLCameraGuide.h.

Public Member Functions

 TGLCameraGuide (Float_t x, Float_t y, Float_t s, ERole role=kUser, EState state=kActive)
 Constructor. More...
virtual ~TGLCameraGuide ()
virtual Bool_t Handle (TGLRnrCtx &rnrCtx, TGLOvlSelectRecord &selRec, Event_t *event)
 Handle overlay event. More...
virtual Bool_t MouseEnter (TGLOvlSelectRecord &selRec)
 Mouse has entered overlay area. More...
virtual void MouseLeave ()
 Mouse has left overlay area. More...
virtual void Render (TGLRnrCtx &rnrCtx)
 Render the camera axis arrows. More...
void SetSize (Float_t s)
void SetX (Float_t x)
void SetXY (Float_t x, Float_t y)
void SetY (Float_t y)
- Public Member Functions inherited from TGLOverlayElement
 TGLOverlayElement (ERole r=kUser, EState s=kActive)
virtual ~TGLOverlayElement ()
ERole GetRole () const
EState GetState () const
virtual Bool_t MouseStillInside (TGLOvlSelectRecord &selRec)
void SetBinaryState (Bool_t s)
void SetRole (ERole r)
void SetState (EState s)

Protected Attributes

Bool_t fInDrag
Int_t fSelAxis
Float_t fSize
Float_t fXPos
Float_t fYPos
- Protected Attributes inherited from TGLOverlayElement
ERole fRole
EState fState

Private Member Functions

 TGLCameraGuide (const TGLCameraGuide &)
TGLCameraGuideoperator= (const TGLCameraGuide &)

Additional Inherited Members

- Public Types inherited from TGLOverlayElement
enum  ERole { kUser, kViewer, kAnnotation, kAll }
enum  EState { kInvisible = 1, kDisabled = 2, kActive = 4, kAllVisible = kDisabled | kActive }
- Protected Member Functions inherited from TGLOverlayElement
void ProjectionMatrixPushIdentity ()

#include <TGLCameraGuide.h>

Inheritance diagram for TGLCameraGuide:

Constructor & Destructor Documentation

◆ TGLCameraGuide() [1/2]

TGLCameraGuide::TGLCameraGuide ( const TGLCameraGuide )

◆ TGLCameraGuide() [2/2]

TGLCameraGuide::TGLCameraGuide ( Float_t  x,
Float_t  y,
Float_t  s,
ERole  role = kUser,
EState  state = kActive 


Definition at line 32 of file TGLCameraGuide.cxx.

◆ ~TGLCameraGuide()

virtual TGLCameraGuide::~TGLCameraGuide ( )

Definition at line 34 of file TGLCameraGuide.h.

Member Function Documentation

◆ Handle()

Bool_t TGLCameraGuide::Handle ( TGLRnrCtx rnrCtx,
TGLOvlSelectRecord selRec,
Event_t event 

Handle overlay event.

Return TRUE if event was handled.

Reimplemented from TGLOverlayElement.

Definition at line 52 of file TGLCameraGuide.cxx.

◆ MouseEnter()

Bool_t TGLCameraGuide::MouseEnter ( TGLOvlSelectRecord selRec)

Mouse has entered overlay area.

Reimplemented from TGLOverlayElement.

Definition at line 43 of file TGLCameraGuide.cxx.

◆ MouseLeave()

void TGLCameraGuide::MouseLeave ( )

Mouse has left overlay area.

Reimplemented from TGLOverlayElement.

Definition at line 99 of file TGLCameraGuide.cxx.

◆ operator=()

TGLCameraGuide& TGLCameraGuide::operator= ( const TGLCameraGuide )

◆ Render()

void TGLCameraGuide::Render ( TGLRnrCtx rnrCtx)

Render the camera axis arrows.

Implements TGLOverlayElement.

Definition at line 108 of file TGLCameraGuide.cxx.

◆ SetSize()

void TGLCameraGuide::SetSize ( Float_t  s)

Definition at line 39 of file TGLCameraGuide.h.

◆ SetX()

void TGLCameraGuide::SetX ( Float_t  x)

Definition at line 36 of file TGLCameraGuide.h.

◆ SetXY()

void TGLCameraGuide::SetXY ( Float_t  x,
Float_t  y 

Definition at line 38 of file TGLCameraGuide.h.

◆ SetY()

void TGLCameraGuide::SetY ( Float_t  y)

Definition at line 37 of file TGLCameraGuide.h.

Member Data Documentation

◆ fInDrag

Bool_t TGLCameraGuide::fInDrag

Definition at line 29 of file TGLCameraGuide.h.

◆ fSelAxis

Int_t TGLCameraGuide::fSelAxis

Definition at line 28 of file TGLCameraGuide.h.

◆ fSize

Float_t TGLCameraGuide::fSize

Definition at line 26 of file TGLCameraGuide.h.

◆ fXPos

Float_t TGLCameraGuide::fXPos

Definition at line 24 of file TGLCameraGuide.h.

◆ fYPos

Float_t TGLCameraGuide::fYPos

Definition at line 25 of file TGLCameraGuide.h.

Libraries for TGLCameraGuide:

The documentation for this class was generated from the following files: