ROOT logo
ROOT » GRAF3D » GL » TGLCameraOverlay

class TGLCameraOverlay: public TGLOverlayElement

 A GL overlay element which displays camera furstum.

Function Members (Methods)

protected:
voidRenderAxis(TGLRnrCtx& rnrCtx)
voidRenderBar(TGLRnrCtx& rnrCtx)
voidRenderPlaneIntersect(TGLRnrCtx& rnrCtx)

Data Members

private:
enum EMode { kPlaneIntersect
kBar
kAxis
};
protected:
TAxis*fAxis
Float_tfAxisExtend
TGLAxisPainter*fAxisPainter
TGLPlanefExternalRefPlane
TGLCameraOverlay::EModefOrthographicMode
TGLCameraOverlay::EModefPerspectiveMode
Bool_tfShowOrthographic
Bool_tfShowPerspective
Bool_tfUseExternalRefPlane
private:
Double_tfFrustum[4]

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGLCameraOverlay(Bool_t showOrtho = kTRUE, Bool_t showPersp = kFALSE)
 Constructor.
~TGLCameraOverlay()
 Destructor.
TAttAxis* GetAttAxis()
void RenderPlaneIntersect(TGLRnrCtx& rnrCtx)
 Print corss section coordinates in top right corner of screen.
void RenderAxis(TGLRnrCtx& rnrCtx)
 Draw axis on four edges.
void RenderBar(TGLRnrCtx& rnrCtx)
 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& )
TGLPlane& RefExternalRefPlane()
{ return fExternalRefPlane; }
void UseExternalRefPlane(Bool_t x)
Bool_t GetUseExternalRefPlane() const
Int_t GetPerspectiveMode() const
{ return fPerspectiveMode;}
void SetPerspectiveMode(TGLCameraOverlay::EMode m)
Int_t GetOrthographicMode() const
void SetOrthographicMode(TGLCameraOverlay::EMode m)
Bool_t GetShowOrthographic() const
{ return fShowOrthographic; }
void SetShowOrthographic(Bool_t x)
Bool_t GetShowPerspective() const
{ return fShowPerspective; }
void SetShowPerspective(Bool_t x)