ROOT  6.06/09
Reference Guide
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
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...
 
virtual void Render (TGLRnrCtx &rnrCtx)
 Display coordinates info of current frustum. More...
 
TGLPlaneRefExternalRefPlane ()
 
void UseExternalRefPlane (Bool_t x)
 
Bool_t GetUseExternalRefPlane () const
 
Int_t GetPerspectiveMode () const
 
void SetPerspectiveMode (EMode m)
 
Int_t GetOrthographicMode () const
 
void SetOrthographicMode (EMode m)
 
Bool_t GetShowOrthographic () const
 
void SetShowOrthographic (Bool_t x)
 
Bool_t GetShowPerspective () const
 
void SetShowPerspective (Bool_t x)
 
void SetFrustum (TGLCamera &cam)
 Set frustum values from given camera. More...
 
TAttAxisGetAttAxis ()
 Get axis attributes. More...
 
 ClassDef (TGLCameraOverlay, 1)
 
- Public Member Functions inherited from TGLOverlayElement
 TGLOverlayElement (ERole r=kUser, EState s=kActive)
 
virtual ~TGLOverlayElement ()
 
virtual Bool_t MouseEnter (TGLOvlSelectRecord &selRec)
 Mouse has entered this element. More...
 
virtual Bool_t MouseStillInside (TGLOvlSelectRecord &selRec)
 
virtual Bool_t Handle (TGLRnrCtx &rnrCtx, TGLOvlSelectRecord &selRec, Event_t *event)
 Handle overlay event. More...
 
virtual void MouseLeave ()
 Mouse has left the element. More...
 
ERole GetRole () const
 
void SetRole (ERole r)
 
EState GetState () const
 
void SetState (EState s)
 
void SetBinaryState (Bool_t s)
 

Protected Member Functions

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

Protected Attributes

Bool_t fShowOrthographic
 
Bool_t fShowPerspective
 
EMode fOrthographicMode
 
EMode fPerspectiveMode
 
TGLAxisPainterfAxisPainter
 
TAxisfAxis
 
Float_t fAxisExtend
 
Bool_t fUseAxisColors
 
TGLPlane fExternalRefPlane
 
Bool_t fUseExternalRefPlane
 
Double_t fFrustum [4]
 
- 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:
+ Collaboration diagram for TGLCameraOverlay:

Member Enumeration Documentation

Enumerator
kPlaneIntersect 
kBar 
kAxis 
kGridFront 
kGridBack 

Definition at line 28 of file TGLCameraOverlay.h.

Constructor & Destructor Documentation

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

Definition at line 34 of file TGLCameraOverlay.cxx.

TGLCameraOverlay::~TGLCameraOverlay ( )
virtual

Destructor.

Definition at line 70 of file TGLCameraOverlay.cxx.

Member Function Documentation

TGLCameraOverlay::ClassDef ( TGLCameraOverlay  ,
 
)
TAttAxis * TGLCameraOverlay::GetAttAxis ( )

Get axis attributes.

Definition at line 79 of file TGLCameraOverlay.cxx.

Referenced by TEveCaloLegoOverlay::RenderPlaneInterface().

Int_t TGLCameraOverlay::GetOrthographicMode ( ) const
inline

Definition at line 69 of file TGLCameraOverlay.h.

Referenced by TGLViewerEditor::SetGuides().

Int_t TGLCameraOverlay::GetPerspectiveMode ( ) const
inline

Definition at line 67 of file TGLCameraOverlay.h.

Referenced by TGLViewerEditor::SetGuides().

Bool_t TGLCameraOverlay::GetShowOrthographic ( ) const
inline

Definition at line 72 of file TGLCameraOverlay.h.

Referenced by TGLViewerEditor::SetGuides().

Bool_t TGLCameraOverlay::GetShowPerspective ( ) const
inline

Definition at line 74 of file TGLCameraOverlay.h.

Referenced by TGLViewerEditor::SetGuides().

Bool_t TGLCameraOverlay::GetUseExternalRefPlane ( ) const
inline

Definition at line 65 of file TGLCameraOverlay.h.

TGLCameraOverlay& TGLCameraOverlay::operator= ( const TGLCameraOverlay )
private
TGLPlane& TGLCameraOverlay::RefExternalRefPlane ( )
inline

Definition at line 63 of file TGLCameraOverlay.h.

void TGLCameraOverlay::Render ( TGLRnrCtx rnrCtx)
virtual

Display coordinates info of current frustum.

Implements TGLOverlayElement.

Reimplemented in TEveCaloLegoOverlay.

Definition at line 463 of file TGLCameraOverlay.cxx.

Referenced by TEveCaloLegoOverlay::Render().

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.

Referenced by Render().

void TGLCameraOverlay::RenderBar ( TGLRnrCtx rnrCtx)
protected

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

Definition at line 379 of file TGLCameraOverlay.cxx.

Referenced by Render().

void TGLCameraOverlay::RenderGrid ( TGLRnrCtx rnrCtx)
protected
void TGLCameraOverlay::RenderPlaneIntersect ( TGLRnrCtx rnrCtx)
protected

Draw cross section coordinates in top right corner of screen.

Definition at line 104 of file TGLCameraOverlay.cxx.

Referenced by Render().

void TGLCameraOverlay::SetFrustum ( TGLCamera cam)

Set frustum values from given camera.

Definition at line 87 of file TGLCameraOverlay.cxx.

Referenced by Render(), and TEveCaloLegoOverlay::Render().

void TGLCameraOverlay::SetOrthographicMode ( EMode  m)
inline

Definition at line 70 of file TGLCameraOverlay.h.

Referenced by TGLViewerEditor::DoCameraOverlay().

void TGLCameraOverlay::SetPerspectiveMode ( EMode  m)
inline

Definition at line 68 of file TGLCameraOverlay.h.

Referenced by TGLViewerEditor::DoCameraOverlay().

void TGLCameraOverlay::SetShowOrthographic ( Bool_t  x)
inline

Definition at line 73 of file TGLCameraOverlay.h.

Referenced by TGLViewerEditor::DoCameraOverlay().

void TGLCameraOverlay::SetShowPerspective ( Bool_t  x)
inline

Definition at line 75 of file TGLCameraOverlay.h.

Referenced by TGLViewerEditor::DoCameraOverlay().

void TGLCameraOverlay::UseExternalRefPlane ( Bool_t  x)
inline

Definition at line 64 of file TGLCameraOverlay.h.

Member Data Documentation

TAxis* TGLCameraOverlay::fAxis
protected

Definition at line 42 of file TGLCameraOverlay.h.

Referenced by GetAttAxis(), RenderAxis(), TGLCameraOverlay(), and ~TGLCameraOverlay().

Float_t TGLCameraOverlay::fAxisExtend
protected

Definition at line 43 of file TGLCameraOverlay.h.

TGLAxisPainter* TGLCameraOverlay::fAxisPainter
protected
TGLPlane TGLCameraOverlay::fExternalRefPlane
protected

Definition at line 46 of file TGLCameraOverlay.h.

Referenced by RefExternalRefPlane(), and RenderPlaneIntersect().

Double_t TGLCameraOverlay::fFrustum[4]
protected
EMode TGLCameraOverlay::fOrthographicMode
protected

Definition at line 38 of file TGLCameraOverlay.h.

Referenced by GetOrthographicMode(), and Render().

EMode TGLCameraOverlay::fPerspectiveMode
protected

Definition at line 39 of file TGLCameraOverlay.h.

Referenced by GetPerspectiveMode().

Bool_t TGLCameraOverlay::fShowOrthographic
protected

Definition at line 35 of file TGLCameraOverlay.h.

Referenced by GetShowOrthographic(), and Render().

Bool_t TGLCameraOverlay::fShowPerspective
protected

Definition at line 36 of file TGLCameraOverlay.h.

Referenced by GetShowPerspective(), and Render().

Bool_t TGLCameraOverlay::fUseAxisColors
protected

Definition at line 44 of file TGLCameraOverlay.h.

Referenced by RenderAxis().

Bool_t TGLCameraOverlay::fUseExternalRefPlane
protected

Definition at line 47 of file TGLCameraOverlay.h.

Referenced by GetUseExternalRefPlane(), and RenderPlaneIntersect().


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