class TGLCameraOverlay: public TGLOverlayElement

 A GL overlay element which displays camera furstum.

Function Members (Methods)

public:
TGLCameraOverlay(Bool_t showOrtho = kTRUE, Bool_t showPersp = kFALSE)
virtual~TGLCameraOverlay()
static TClass*Class()
Float_tGetAxisExtend() const
Int_tGetOrthographicMode() const
Int_tGetPerspectiveMode() const
Bool_tGetShowOrthographic() const
Bool_tGetShowPerspective() const
Bool_tGetUseExternalRefPlane() const
virtual Bool_tTGLOverlayElement::Handle(TGLRnrCtx& rnrCtx, TGLOvlSelectRecord& selRec, Event_t* event)
virtual TClass*IsA() const
virtual Bool_tTGLOverlayElement::MouseEnter(TGLOvlSelectRecord& selRec)
virtual voidTGLOverlayElement::MouseLeave()
virtual Bool_tTGLOverlayElement::MouseStillInside(TGLOvlSelectRecord& selRec)
TGLAxisAttrib&RefAxisAttrib()
TGLPlane&RefExternalRefPlane()
virtual voidRender(TGLRnrCtx& rnrCtx)
voidSetAxisExtend(Float_t x)
voidSetOrthographicMode(TGLCameraOverlay::EMode m)
voidSetPerspectiveMode(TGLCameraOverlay::EMode m)
voidSetShowOrthographic(Bool_t x)
voidSetShowPerspective(Bool_t x)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
voidUseExternalRefPlane(Bool_t x)
protected:
voidRenderAxis(TGLRnrCtx& rnrCtx)
voidRenderBar(TGLRnrCtx& rnrCtx, const TGLFont& font)
voidRenderPlaneIntersect(TGLRnrCtx& rnrCtx, const TGLFont& font)
private:
TGLCameraOverlay(const TGLCameraOverlay&)
TGLCameraOverlay&operator=(const TGLCameraOverlay&)

Data Members

public:
enum EMode { kPlaneIntersect
kBar
kAxis
};
protected:
TGLAxisAttribfAxisAtt
Float_tfAxisExtend
TGLAxisPainterfAxisPainter
TGLPlanefExternalRefPlane
Double_tfFrustum[4]cached
TGLCameraOverlay::EModefOrthographicMode
TGLCameraOverlay::EModefPerspectiveMode
Bool_tfShowOrthographic
Bool_tfShowPerspective
Bool_tfUseExternalRefPlane

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGLCameraOverlay(Bool_t showOrtho = kTRUE, Bool_t showPersp = kFALSE)
 Constructor.
void RenderPlaneIntersect(TGLRnrCtx& rnrCtx, const TGLFont& font)
 Print corss section coordinates in top right corner of screen.
void RenderAxis(TGLRnrCtx& rnrCtx)
 Draw axis on four edges.
void RenderBar(TGLRnrCtx& rnrCtx, const TGLFont& font)
 Show frustum size with fixed screen line length and printed value.
void Render(TGLRnrCtx& rnrCtx)
 Display coodinates info of current frustum.
TGLCameraOverlay(const TGLCameraOverlay& )
TGLCameraOverlay& operator=(const TGLCameraOverlay& )
virtual ~TGLCameraOverlay()
{}
TGLAxisAttrib& RefAxisAttrib()
{ return fAxisAtt; }
Float_t GetAxisExtend()
{ return fAxisExtend; }
void SetAxisExtend(Float_t x)
{ fAxisExtend = x; }
TGLPlane& RefExternalRefPlane()
{ return fExternalRefPlane; }
void UseExternalRefPlane(Bool_t x)
{ fUseExternalRefPlane=x; }
Bool_t GetUseExternalRefPlane()
{ return fUseExternalRefPlane; }
Int_t GetPerspectiveMode()
{ return fPerspectiveMode;}
void SetPerspectiveMode(TGLCameraOverlay::EMode m)
{fPerspectiveMode = m;}
Int_t GetOrthographicMode()
{ return fOrthographicMode;}
void SetOrthographicMode(TGLCameraOverlay::EMode m)
{fOrthographicMode = m;}
Bool_t GetShowOrthographic()
{ return fShowOrthographic; }
void SetShowOrthographic(Bool_t x)
{fShowOrthographic =x;}
Bool_t GetShowPerspective()
{ return fShowPerspective; }
void SetShowPerspective(Bool_t x)
{fShowPerspective =x;}

Author: Matevz Tadel 2007
Last change: root/eve:$Id: TGLCameraOverlay.h 25881 2008-10-20 11:29:52Z matevz $
Last generated: 2008-10-21 09:17
Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.