Logo ROOT  
Reference Guide
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
}
 
- 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)
 
virtual ~TGLCameraOverlay ()
 Destructor. More...
 
TAttAxisGetAttAxis ()
 Get axis attributes. More...
 
Int_t GetOrthographicMode () const
 
Int_t GetPerspectiveMode () const
 
Bool_t GetShowOrthographic () const
 
Bool_t GetShowPerspective () const
 
Bool_t GetUseExternalRefPlane () const
 
TGLPlaneRefExternalRefPlane ()
 
virtual void Render (TGLRnrCtx &rnrCtx)
 Display coordinates info of current frustum. More...
 
void SetFrustum (TGLCamera &cam)
 Set frustum values from given camera. More...
 
void SetOrthographicMode (EMode m)
 
void SetPerspectiveMode (EMode m)
 
void SetShowOrthographic (Bool_t x)
 
void SetShowPerspective (Bool_t x)
 
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. More...
 
virtual Bool_t MouseEnter (TGLOvlSelectRecord &selRec)
 Mouse has entered this element. More...
 
virtual void MouseLeave ()
 Mouse has left the element. More...
 
virtual Bool_t MouseStillInside (TGLOvlSelectRecord &selRec)
 
virtual void Render (TGLRnrCtx &rnrCtx)=0
 
void SetBinaryState (Bool_t s)
 
void SetRole (ERole r)
 
void SetState (EState s)
 

Protected Member Functions

void RenderAxis (TGLRnrCtx &rnrCtx, Bool_t drawGrid)
 Draw axis on four edges and a transparent grid. More...
 
void RenderBar (TGLRnrCtx &rnrCtx)
 Show frustum size with fixed screen line length and printed value. More...
 
void RenderGrid (TGLRnrCtx &rnrCtx)
 
void RenderPlaneIntersect (TGLRnrCtx &rnrCtx)
 Draw cross section coordinates in top right corner of screen. More...
 
- Protected Member Functions inherited from TGLOverlayElement
void ProjectionMatrixPushIdentity ()
 

Protected Attributes

TAxisfAxis
 
Float_t fAxisExtend
 
TGLAxisPainterfAxisPainter
 
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 &)
 
TGLCameraOverlayoperator= (const TGLCameraOverlay &)
 

#include <TGLCameraOverlay.h>

Inheritance diagram for TGLCameraOverlay:
[legend]

Member Enumeration Documentation

◆ EMode

Enumerator
kPlaneIntersect 
kBar 
kAxis 
kGridFront 
kGridBack 

Definition at line 28 of file TGLCameraOverlay.h.

Constructor & Destructor Documentation

◆ TGLCameraOverlay() [1/2]

TGLCameraOverlay::TGLCameraOverlay ( const TGLCameraOverlay )
private

◆ TGLCameraOverlay() [2/2]

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

Definition at line 34 of file TGLCameraOverlay.cxx.

◆ ~TGLCameraOverlay()

TGLCameraOverlay::~TGLCameraOverlay ( )
virtual

Destructor.

Definition at line 70 of file TGLCameraOverlay.cxx.

Member Function Documentation

◆ GetAttAxis()

TAttAxis * TGLCameraOverlay::GetAttAxis ( )

Get axis attributes.

Definition at line 79 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.

◆ 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.

◆ GetUseExternalRefPlane()

Bool_t TGLCameraOverlay::GetUseExternalRefPlane ( ) const
inline

Definition at line 65 of file TGLCameraOverlay.h.

◆ operator=()

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

◆ RefExternalRefPlane()

TGLPlane & TGLCameraOverlay::RefExternalRefPlane ( )
inline

Definition at line 63 of file TGLCameraOverlay.h.

◆ Render()

void TGLCameraOverlay::Render ( TGLRnrCtx rnrCtx)
virtual

Display coordinates info of current frustum.

Implements TGLOverlayElement.

Reimplemented in TEveCaloLegoOverlay.

Definition at line 461 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 168 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 377 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 104 of file TGLCameraOverlay.cxx.

◆ SetFrustum()

void TGLCameraOverlay::SetFrustum ( TGLCamera cam)

Set frustum values from given camera.

Definition at line 87 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.

◆ 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.

◆ 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.

◆ 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.

◆ 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.

Libraries for TGLCameraOverlay:
[legend]

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