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. | |
~TGLCameraGuide () override | |
ClassDefOverride (TGLCameraGuide, 0) | |
Bool_t | Handle (TGLRnrCtx &rnrCtx, TGLOvlSelectRecord &selRec, Event_t *event) override |
Handle overlay event. | |
Bool_t | MouseEnter (TGLOvlSelectRecord &selRec) override |
Mouse has entered overlay area. | |
void | MouseLeave () override |
Mouse has left overlay area. | |
void | Render (TGLRnrCtx &rnrCtx) override |
Render the camera axis arrows. | |
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 &)=delete | |
TGLCameraGuide & | operator= (const TGLCameraGuide &)=delete |
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>
|
privatedelete |
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.
|
inlineoverride |
Definition at line 34 of file TGLCameraGuide.h.
TGLCameraGuide::ClassDefOverride | ( | TGLCameraGuide | , |
0 | |||
) |
|
overridevirtual |
Handle overlay event.
Return TRUE if event was handled.
Reimplemented from TGLOverlayElement.
Definition at line 52 of file TGLCameraGuide.cxx.
|
overridevirtual |
Mouse has entered overlay area.
Reimplemented from TGLOverlayElement.
Definition at line 43 of file TGLCameraGuide.cxx.
|
overridevirtual |
Mouse has left overlay area.
Reimplemented from TGLOverlayElement.
Definition at line 99 of file TGLCameraGuide.cxx.
|
privatedelete |
|
overridevirtual |
Render the camera axis arrows.
Implements TGLOverlayElement.
Definition at line 108 of file TGLCameraGuide.cxx.
|
inline |
Definition at line 39 of file TGLCameraGuide.h.
|
inline |
Definition at line 36 of file TGLCameraGuide.h.
Definition at line 38 of file TGLCameraGuide.h.
|
inline |
Definition at line 37 of file TGLCameraGuide.h.
|
protected |
Definition at line 29 of file TGLCameraGuide.h.
|
protected |
Definition at line 28 of file TGLCameraGuide.h.
|
protected |
Definition at line 26 of file TGLCameraGuide.h.
|
protected |
Definition at line 24 of file TGLCameraGuide.h.
|
protected |
Definition at line 25 of file TGLCameraGuide.h.