Logo ROOT   6.12/07
Reference Guide
List of all members | Public Member Functions | Protected Attributes | Private Member Functions | List of all members
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:
[legend]

Constructor & Destructor Documentation

◆ TGLCameraGuide() [1/2]

TGLCameraGuide::TGLCameraGuide ( const TGLCameraGuide )
private

◆ TGLCameraGuide() [2/2]

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

Constructor.

Definition at line 32 of file TGLCameraGuide.cxx.

◆ ~TGLCameraGuide()

virtual TGLCameraGuide::~TGLCameraGuide ( )
inlinevirtual

Definition at line 34 of file TGLCameraGuide.h.

Member Function Documentation

◆ Handle()

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

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)
virtual

Mouse has entered overlay area.

Reimplemented from TGLOverlayElement.

Definition at line 43 of file TGLCameraGuide.cxx.

◆ MouseLeave()

void TGLCameraGuide::MouseLeave ( )
virtual

Mouse has left overlay area.

Reimplemented from TGLOverlayElement.

Definition at line 99 of file TGLCameraGuide.cxx.

◆ operator=()

TGLCameraGuide& TGLCameraGuide::operator= ( const TGLCameraGuide )
private

◆ Render()

void TGLCameraGuide::Render ( TGLRnrCtx rnrCtx)
virtual

Render the camera axis arrows.

Implements TGLOverlayElement.

Definition at line 108 of file TGLCameraGuide.cxx.

◆ SetSize()

void TGLCameraGuide::SetSize ( Float_t  s)
inline

Definition at line 39 of file TGLCameraGuide.h.

◆ SetX()

void TGLCameraGuide::SetX ( Float_t  x)
inline

Definition at line 36 of file TGLCameraGuide.h.

◆ SetXY()

void TGLCameraGuide::SetXY ( Float_t  x,
Float_t  y 
)
inline

Definition at line 38 of file TGLCameraGuide.h.

◆ SetY()

void TGLCameraGuide::SetY ( Float_t  y)
inline

Definition at line 37 of file TGLCameraGuide.h.

Member Data Documentation

◆ fInDrag

Bool_t TGLCameraGuide::fInDrag
protected

Definition at line 29 of file TGLCameraGuide.h.

◆ fSelAxis

Int_t TGLCameraGuide::fSelAxis
protected

Definition at line 28 of file TGLCameraGuide.h.

◆ fSize

Float_t TGLCameraGuide::fSize
protected

Definition at line 26 of file TGLCameraGuide.h.

◆ fXPos

Float_t TGLCameraGuide::fXPos
protected

Definition at line 24 of file TGLCameraGuide.h.

◆ fYPos

Float_t TGLCameraGuide::fYPos
protected

Definition at line 25 of file TGLCameraGuide.h.

Libraries for TGLCameraGuide:
[legend]

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