Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
TGLCameraOverlay Class Reference

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
}
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.
TAttAxisGetAttAxis ()
 Get axis attributes.
Int_t GetOrthographicMode () const
Int_t GetPerspectiveMode () const
ERole GetRole () const
Bool_t GetShowOrthographic () const
Bool_t GetShowPerspective () const
EState GetState () const
Bool_t GetUseExternalRefPlane () const
virtual Bool_t Handle (TGLRnrCtx &rnrCtx, TGLOvlSelectRecord &selRec, Event_t *event)
 Handle overlay event.
TClassIsA () const override
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)
TGLPlaneRefExternalRefPlane ()
void Render (TGLRnrCtx &rnrCtx) override
 Display coordinates info of current frustum.
void SetBinaryState (Bool_t s)
void SetFrustum (TGLCamera &cam)
 Set frustum values from given camera.
void SetOrthographicMode (EMode m)
void SetPerspectiveMode (EMode m)
void SetRole (ERole r)
void SetShowOrthographic (Bool_t x)
void SetShowPerspective (Bool_t x)
void SetState (EState s)
void Streamer (TBuffer &) override
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
void UseExternalRefPlane (Bool_t x)

Static Public Member Functions

static TClassClass ()
static const char * Class_Name ()
static constexpr Version_t Class_Version ()
static const char * DeclFileName ()

Protected Member Functions

void ProjectionMatrixPushIdentity ()
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 Attributes

TAxisfAxis
Float_t fAxisExtend
TGLAxisPainterfAxisPainter
TGLPlane fExternalRefPlane
Double_t fFrustum [4]
EMode fOrthographicMode
EMode fPerspectiveMode
ERole fRole
Bool_t fShowOrthographic
Bool_t fShowPerspective
EState fState
Bool_t fUseAxisColors
Bool_t fUseExternalRefPlane

Private Member Functions

 TGLCameraOverlay (const TGLCameraOverlay &)=delete
TGLCameraOverlayoperator= (const TGLCameraOverlay &)=delete

#include <TGLCameraOverlay.h>

Inheritance diagram for TGLCameraOverlay:
TGLOverlayElement TEveCaloLegoOverlay

Member Enumeration Documentation

◆ EMode

Enumerator
kPlaneIntersect 
kBar 
kAxis 
kGridFront 
kGridBack 

Definition at line 28 of file TGLCameraOverlay.h.

◆ ERole

enum TGLOverlayElement::ERole
inherited
Enumerator
kUser 
kViewer 
kAnnotation 
kAll 

Definition at line 25 of file TGLOverlay.h.

◆ EState

enum TGLOverlayElement::EState
inherited
Enumerator
kInvisible 
kDisabled 
kActive 
kAllVisible 

Definition at line 27 of file TGLOverlay.h.

Constructor & Destructor Documentation

◆ TGLCameraOverlay() [1/2]

TGLCameraOverlay::TGLCameraOverlay ( const TGLCameraOverlay & )
privatedelete

◆ TGLCameraOverlay() [2/2]

TGLCameraOverlay::TGLCameraOverlay ( Bool_t showOrtho = kTRUE,
Bool_t showPersp = kFALSE )

Definition at line 33 of file TGLCameraOverlay.cxx.

◆ ~TGLCameraOverlay()

TGLCameraOverlay::~TGLCameraOverlay ( )
override

Destructor.

Definition at line 69 of file TGLCameraOverlay.cxx.

Member Function Documentation

◆ Class()

TClass * TGLCameraOverlay::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

const char * TGLCameraOverlay::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

constexpr Version_t TGLCameraOverlay::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 81 of file TGLCameraOverlay.h.

◆ DeclFileName()

const char * TGLCameraOverlay::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 81 of file TGLCameraOverlay.h.

◆ GetAttAxis()

TAttAxis * TGLCameraOverlay::GetAttAxis ( )

Get axis attributes.

Definition at line 78 of file TGLCameraOverlay.cxx.

◆ GetOrthographicMode()

Int_t TGLCameraOverlay::GetOrthographicMode ( ) const
inline

Definition at line 69 of file TGLCameraOverlay.h.

◆ GetPerspectiveMode()

Int_t TGLCameraOverlay::GetPerspectiveMode ( ) const
inline

Definition at line 67 of file TGLCameraOverlay.h.

◆ GetRole()

ERole TGLOverlayElement::GetRole ( ) const
inlineinherited

Definition at line 53 of file TGLOverlay.h.

◆ GetShowOrthographic()

Bool_t TGLCameraOverlay::GetShowOrthographic ( ) const
inline

Definition at line 72 of file TGLCameraOverlay.h.

◆ GetShowPerspective()

Bool_t TGLCameraOverlay::GetShowPerspective ( ) const
inline

Definition at line 74 of file TGLCameraOverlay.h.

◆ GetState()

EState TGLOverlayElement::GetState ( ) const
inlineinherited

Definition at line 56 of file TGLOverlay.h.

◆ GetUseExternalRefPlane()

Bool_t TGLCameraOverlay::GetUseExternalRefPlane ( ) const
inline

Definition at line 65 of file TGLCameraOverlay.h.

◆ Handle()

Bool_t TGLOverlayElement::Handle ( TGLRnrCtx & rnrCtx,
TGLOvlSelectRecord & selRec,
Event_t * event )
virtualinherited

Handle overlay event.

Return TRUE if event was handled.

Reimplemented in TEveCaloLegoOverlay, TGLAnnotation, TGLCameraGuide, TGLClipSet, TGLManipSet, and TGLOverlayButton.

Definition at line 45 of file TGLOverlay.cxx.

◆ IsA()

TClass * TGLCameraOverlay::IsA ( ) const
inlineoverride
Returns
TClass describing current object

Definition at line 81 of file TGLCameraOverlay.h.

◆ MouseEnter()

Bool_t TGLOverlayElement::MouseEnter ( TGLOvlSelectRecord & selRec)
virtualinherited

Mouse has entered this element.

Return TRUE if you want additional events.

Reimplemented in TEveCaloLegoOverlay, TGLAnnotation, TGLCameraGuide, TGLClipSet, TGLManipSet, and TGLOverlayButton.

Definition at line 24 of file TGLOverlay.cxx.

◆ MouseLeave()

void TGLOverlayElement::MouseLeave ( )
virtualinherited

Mouse has left the element.

Reimplemented in TEveCaloLegoOverlay, TGLAnnotation, TGLCameraGuide, TGLClipSet, TGLManipSet, and TGLOverlayButton.

Definition at line 55 of file TGLOverlay.cxx.

◆ MouseStillInside()

Bool_t TGLOverlayElement::MouseStillInside ( TGLOvlSelectRecord & selRec)
virtualinherited

Reimplemented in TGLClipSet.

Definition at line 29 of file TGLOverlay.cxx.

◆ operator=()

TGLCameraOverlay & TGLCameraOverlay::operator= ( const TGLCameraOverlay & )
privatedelete

◆ ProjectionMatrixPushIdentity()

void TGLOverlayElement::ProjectionMatrixPushIdentity ( )
protectedinherited

◆ RefExternalRefPlane()

TGLPlane & TGLCameraOverlay::RefExternalRefPlane ( )
inline

Definition at line 63 of file TGLCameraOverlay.h.

◆ Render()

void TGLCameraOverlay::Render ( TGLRnrCtx & rnrCtx)
overridevirtual

Display coordinates info of current frustum.

Implements TGLOverlayElement.

Definition at line 460 of file TGLCameraOverlay.cxx.

◆ RenderAxis()

void TGLCameraOverlay::RenderAxis ( TGLRnrCtx & rnrCtx,
Bool_t drawGrid )
protected

Draw axis on four edges and a transparent grid.

Definition at line 167 of file TGLCameraOverlay.cxx.

◆ RenderBar()

void TGLCameraOverlay::RenderBar ( TGLRnrCtx & rnrCtx)
protected

Show frustum size with fixed screen line length and printed value.

Definition at line 376 of file TGLCameraOverlay.cxx.

◆ RenderGrid()

void TGLCameraOverlay::RenderGrid ( TGLRnrCtx & rnrCtx)
protected

◆ RenderPlaneIntersect()

void TGLCameraOverlay::RenderPlaneIntersect ( TGLRnrCtx & rnrCtx)
protected

Draw cross section coordinates in top right corner of screen.

Definition at line 103 of file TGLCameraOverlay.cxx.

◆ SetBinaryState()

void TGLOverlayElement::SetBinaryState ( Bool_t s)
inlineinherited

Definition at line 59 of file TGLOverlay.h.

◆ SetFrustum()

void TGLCameraOverlay::SetFrustum ( TGLCamera & cam)

Set frustum values from given camera.

Definition at line 86 of file TGLCameraOverlay.cxx.

◆ SetOrthographicMode()

void TGLCameraOverlay::SetOrthographicMode ( EMode m)
inline

Definition at line 70 of file TGLCameraOverlay.h.

◆ SetPerspectiveMode()

void TGLCameraOverlay::SetPerspectiveMode ( EMode m)
inline

Definition at line 68 of file TGLCameraOverlay.h.

◆ SetRole()

void TGLOverlayElement::SetRole ( ERole r)
inlineinherited

Definition at line 54 of file TGLOverlay.h.

◆ SetShowOrthographic()

void TGLCameraOverlay::SetShowOrthographic ( Bool_t x)
inline

Definition at line 73 of file TGLCameraOverlay.h.

◆ SetShowPerspective()

void TGLCameraOverlay::SetShowPerspective ( Bool_t x)
inline

Definition at line 75 of file TGLCameraOverlay.h.

◆ SetState()

void TGLOverlayElement::SetState ( EState s)
inlineinherited

Definition at line 57 of file TGLOverlay.h.

◆ Streamer()

void TGLCameraOverlay::Streamer ( TBuffer & )
override

◆ StreamerNVirtual()

void TGLCameraOverlay::StreamerNVirtual ( TBuffer & ClassDef_StreamerNVirtual_b)
inline

Definition at line 81 of file TGLCameraOverlay.h.

◆ UseExternalRefPlane()

void TGLCameraOverlay::UseExternalRefPlane ( Bool_t x)
inline

Definition at line 64 of file TGLCameraOverlay.h.

Member Data Documentation

◆ fAxis

TAxis* TGLCameraOverlay::fAxis
protected

Definition at line 42 of file TGLCameraOverlay.h.

◆ fAxisExtend

Float_t TGLCameraOverlay::fAxisExtend
protected

Definition at line 43 of file TGLCameraOverlay.h.

◆ fAxisPainter

TGLAxisPainter* TGLCameraOverlay::fAxisPainter
protected

Definition at line 41 of file TGLCameraOverlay.h.

◆ fExternalRefPlane

TGLPlane TGLCameraOverlay::fExternalRefPlane
protected

Definition at line 46 of file TGLCameraOverlay.h.

◆ fFrustum

Double_t TGLCameraOverlay::fFrustum[4]
protected

Definition at line 49 of file TGLCameraOverlay.h.

◆ fOrthographicMode

EMode TGLCameraOverlay::fOrthographicMode
protected

Definition at line 38 of file TGLCameraOverlay.h.

◆ fPerspectiveMode

EMode TGLCameraOverlay::fPerspectiveMode
protected

Definition at line 39 of file TGLCameraOverlay.h.

◆ fRole

ERole TGLOverlayElement::fRole
protectedinherited

Definition at line 35 of file TGLOverlay.h.

◆ fShowOrthographic

Bool_t TGLCameraOverlay::fShowOrthographic
protected

Definition at line 35 of file TGLCameraOverlay.h.

◆ fShowPerspective

Bool_t TGLCameraOverlay::fShowPerspective
protected

Definition at line 36 of file TGLCameraOverlay.h.

◆ fState

EState TGLOverlayElement::fState
protectedinherited

Definition at line 36 of file TGLOverlay.h.

◆ fUseAxisColors

Bool_t TGLCameraOverlay::fUseAxisColors
protected

Definition at line 44 of file TGLCameraOverlay.h.

◆ fUseExternalRefPlane

Bool_t TGLCameraOverlay::fUseExternalRefPlane
protected

Definition at line 47 of file TGLCameraOverlay.h.


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