A GL overlay element which displays camera furstum.
Definition at line 25 of file TGLCameraOverlay.h.
Public Types | |
enum | EMode { kPlaneIntersect , kBar , kAxis , kGridFront , kGridBack } |
Public Types inherited from TGLOverlayElement | |
enum | ERole { kUser , kViewer , kAnnotation , kAll } |
enum | EState { kInvisible = 1 , kDisabled = 2 , kActive = 4 , kAllVisible = kDisabled | kActive } |
Public Member Functions | |
TGLCameraOverlay (Bool_t showOrtho=kTRUE, Bool_t showPersp=kFALSE) | |
~TGLCameraOverlay () override | |
Destructor. | |
TAttAxis * | GetAttAxis () |
Get axis attributes. | |
Int_t | GetOrthographicMode () const |
Int_t | GetPerspectiveMode () const |
Bool_t | GetShowOrthographic () const |
Bool_t | GetShowPerspective () const |
Bool_t | GetUseExternalRefPlane () const |
TClass * | IsA () const override |
TGLPlane & | RefExternalRefPlane () |
void | Render (TGLRnrCtx &rnrCtx) override |
Display coordinates info of current frustum. | |
void | SetFrustum (TGLCamera &cam) |
Set frustum values from given camera. | |
void | SetOrthographicMode (EMode m) |
void | SetPerspectiveMode (EMode m) |
void | SetShowOrthographic (Bool_t x) |
void | SetShowPerspective (Bool_t x) |
void | Streamer (TBuffer &) override |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
void | UseExternalRefPlane (Bool_t x) |
Public Member Functions inherited from TGLOverlayElement | |
TGLOverlayElement (ERole r=kUser, EState s=kActive) | |
virtual | ~TGLOverlayElement () |
ERole | GetRole () const |
EState | GetState () const |
virtual Bool_t | Handle (TGLRnrCtx &rnrCtx, TGLOvlSelectRecord &selRec, Event_t *event) |
Handle overlay event. | |
virtual Bool_t | MouseEnter (TGLOvlSelectRecord &selRec) |
Mouse has entered this element. | |
virtual void | MouseLeave () |
Mouse has left the element. | |
virtual Bool_t | MouseStillInside (TGLOvlSelectRecord &selRec) |
void | SetBinaryState (Bool_t s) |
void | SetRole (ERole r) |
void | SetState (EState s) |
Static Public Member Functions | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Protected Member Functions | |
void | RenderAxis (TGLRnrCtx &rnrCtx, Bool_t drawGrid) |
Draw axis on four edges and a transparent grid. | |
void | RenderBar (TGLRnrCtx &rnrCtx) |
Show frustum size with fixed screen line length and printed value. | |
void | RenderGrid (TGLRnrCtx &rnrCtx) |
void | RenderPlaneIntersect (TGLRnrCtx &rnrCtx) |
Draw cross section coordinates in top right corner of screen. | |
Protected Member Functions inherited from TGLOverlayElement | |
void | ProjectionMatrixPushIdentity () |
Protected Attributes | |
TAxis * | fAxis |
Float_t | fAxisExtend |
TGLAxisPainter * | fAxisPainter |
TGLPlane | fExternalRefPlane |
Double_t | fFrustum [4] |
EMode | fOrthographicMode |
EMode | fPerspectiveMode |
Bool_t | fShowOrthographic |
Bool_t | fShowPerspective |
Bool_t | fUseAxisColors |
Bool_t | fUseExternalRefPlane |
Protected Attributes inherited from TGLOverlayElement | |
ERole | fRole |
EState | fState |
Private Member Functions | |
TGLCameraOverlay (const TGLCameraOverlay &)=delete | |
TGLCameraOverlay & | operator= (const TGLCameraOverlay &)=delete |
#include <TGLCameraOverlay.h>
Enumerator | |
---|---|
kPlaneIntersect | |
kBar | |
kAxis | |
kGridFront | |
kGridBack |
Definition at line 28 of file TGLCameraOverlay.h.
|
privatedelete |
Definition at line 34 of file TGLCameraOverlay.cxx.
|
override |
Destructor.
Definition at line 70 of file TGLCameraOverlay.cxx.
|
static |
|
inlinestaticconstexpr |
Definition at line 81 of file TGLCameraOverlay.h.
|
inlinestatic |
Definition at line 81 of file TGLCameraOverlay.h.
TAttAxis * TGLCameraOverlay::GetAttAxis | ( | ) |
Get axis attributes.
Definition at line 79 of file TGLCameraOverlay.cxx.
|
inline |
Definition at line 69 of file TGLCameraOverlay.h.
|
inline |
Definition at line 67 of file TGLCameraOverlay.h.
|
inline |
Definition at line 72 of file TGLCameraOverlay.h.
|
inline |
Definition at line 74 of file TGLCameraOverlay.h.
|
inline |
Definition at line 65 of file TGLCameraOverlay.h.
|
inlineoverride |
Definition at line 81 of file TGLCameraOverlay.h.
|
privatedelete |
|
inline |
Definition at line 63 of file TGLCameraOverlay.h.
|
overridevirtual |
Display coordinates info of current frustum.
Implements TGLOverlayElement.
Definition at line 461 of file TGLCameraOverlay.cxx.
Draw axis on four edges and a transparent grid.
Definition at line 168 of file TGLCameraOverlay.cxx.
|
protected |
Show frustum size with fixed screen line length and printed value.
Definition at line 377 of file TGLCameraOverlay.cxx.
|
protected |
|
protected |
Draw cross section coordinates in top right corner of screen.
Definition at line 104 of file TGLCameraOverlay.cxx.
void TGLCameraOverlay::SetFrustum | ( | TGLCamera & | cam | ) |
Set frustum values from given camera.
Definition at line 87 of file TGLCameraOverlay.cxx.
|
inline |
Definition at line 70 of file TGLCameraOverlay.h.
|
inline |
Definition at line 68 of file TGLCameraOverlay.h.
|
inline |
Definition at line 73 of file TGLCameraOverlay.h.
|
inline |
Definition at line 75 of file TGLCameraOverlay.h.
|
override |
|
inline |
Definition at line 81 of file TGLCameraOverlay.h.
|
inline |
Definition at line 64 of file TGLCameraOverlay.h.
|
protected |
Definition at line 42 of file TGLCameraOverlay.h.
|
protected |
Definition at line 43 of file TGLCameraOverlay.h.
|
protected |
Definition at line 41 of file TGLCameraOverlay.h.
|
protected |
Definition at line 46 of file TGLCameraOverlay.h.
|
protected |
Definition at line 49 of file TGLCameraOverlay.h.
|
protected |
Definition at line 38 of file TGLCameraOverlay.h.
|
protected |
Definition at line 39 of file TGLCameraOverlay.h.
|
protected |
Definition at line 35 of file TGLCameraOverlay.h.
|
protected |
Definition at line 36 of file TGLCameraOverlay.h.
|
protected |
Definition at line 44 of file TGLCameraOverlay.h.
|
protected |
Definition at line 47 of file TGLCameraOverlay.h.