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, Bool_t drawGrid)
voidRenderBar(TGLRnrCtx& rnrCtx)
voidRenderGrid(TGLRnrCtx& rnrCtx)
voidRenderPlaneIntersect(TGLRnrCtx& rnrCtx)

Data Members

public:
enum EMode { kPlaneIntersect
kBar
kAxis
kGridFront
kGridBack
};
enum TGLOverlayElement::ERole { kUser
kViewer
kAnnotation
kAll
};
protected:
TAxis*fAxis
Float_tfAxisExtend
TGLAxisPainter*fAxisPainter
TGLPlanefExternalRefPlane
TGLCameraOverlay::EModefOrthographicMode
TGLCameraOverlay::EModefPerspectiveMode
TGLOverlayElement::ERoleTGLOverlayElement::fRole
Bool_tfShowOrthographic
Bool_tfShowPerspective
Bool_tfUseAxisColors
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, 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 Render(TGLRnrCtx& rnrCtx)
 Display coodinates info of current frustum.
TGLCameraOverlay(const TGLCameraOverlay& )
TGLCameraOverlay& operator=(const TGLCameraOverlay& )
void RenderGrid(TGLRnrCtx& rnrCtx)
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)