TGLCameraOverlay Class Reference

#include <TGLCameraOverlay.h>

Inheritance diagram for TGLCameraOverlay:

TGLOverlayElement TGLOverlayElement TEveCaloLegoOverlay TEveCaloLegoOverlay List of all members.

Public Types

enum  EMode
enum  EMode

Public Member Functions

 TGLCameraOverlay (Bool_t showOrtho=kTRUE, Bool_t showPersp=kFALSE)
virtual ~TGLCameraOverlay ()
virtual void Render (TGLRnrCtx &rnrCtx)
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)
TAttAxisGetAttAxis ()
 ClassDef (TGLCameraOverlay, 1)
 TGLCameraOverlay (Bool_t showOrtho=kTRUE, Bool_t showPersp=kFALSE)
virtual ~TGLCameraOverlay ()
virtual void Render (TGLRnrCtx &rnrCtx)
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)
TAttAxisGetAttAxis ()
 ClassDef (TGLCameraOverlay, 1)

Protected Member Functions

void RenderPlaneIntersect (TGLRnrCtx &rnrCtx)
void RenderAxis (TGLRnrCtx &rnrCtx, Bool_t drawGrid)
void RenderGrid (TGLRnrCtx &rnrCtx)
void RenderBar (TGLRnrCtx &rnrCtx)
void RenderPlaneIntersect (TGLRnrCtx &rnrCtx)
void RenderAxis (TGLRnrCtx &rnrCtx, Bool_t drawGrid)
void RenderGrid (TGLRnrCtx &rnrCtx)
void RenderBar (TGLRnrCtx &rnrCtx)

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]
TGLAxisPainterfAxisPainter
TAxisfAxis

Private Member Functions

 TGLCameraOverlay (const TGLCameraOverlay &)
TGLCameraOverlayoperator= (const TGLCameraOverlay &)
 TGLCameraOverlay (const TGLCameraOverlay &)
TGLCameraOverlayoperator= (const TGLCameraOverlay &)

Detailed Description

Definition at line 25 of file TGLCameraOverlay.h.


Member Enumeration Documentation

enum TGLCameraOverlay::EMode

Definition at line 28 of file TGLCameraOverlay.h.

enum TGLCameraOverlay::EMode

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 32 of file TGLCameraOverlay.cxx.

References fAxis, fAxisPainter, fFrustum, TGLFont::kBitmap, kFALSE, kGray, TAttAxis::SetAxisColor(), TGLAxisPainter::SetFontMode(), TAttAxis::SetLabelColor(), TAttAxis::SetLabelOffset(), TAttAxis::SetLabelSize(), TAttAxis::SetNdivisions(), and TGLAxisPainter::SetUseAxisColors().

TGLCameraOverlay::~TGLCameraOverlay (  )  [virtual]

Definition at line 66 of file TGLCameraOverlay.cxx.

References fAxis, and fAxisPainter.

TGLCameraOverlay::TGLCameraOverlay ( const TGLCameraOverlay  )  [private]

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

virtual TGLCameraOverlay::~TGLCameraOverlay (  )  [virtual]


Member Function Documentation

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

void TGLCameraOverlay::RenderPlaneIntersect ( TGLRnrCtx rnrCtx  )  [protected]

Definition at line 100 of file TGLCameraOverlay.cxx.

References TGLUtil::Color(), TGLRnrCtx::ColorSet(), d, fExternalRefPlane, Form(), fUseExternalRefPlane, TGLMatrix::GetBaseVec(), TGLCamera::GetCamBase(), TGLRnrCtx::GetCamera(), TGLCamera::GetCamTrans(), TGLMatrix::GetTranslation(), GL_LINES, GL_MODELVIEW, GL_PROJECTION, glBegin(), glEnd(), glLoadIdentity(), glMatrixMode(), glPopMatrix(), glPushMatrix(), glVertex2f(), h, Intersection(), TGLFont::kBottom, TGLFont::kPixmap, kRed, TGLFont::kRight, kTRUE, line, TGLColorSet::Markup(), TMath::Nint(), p, TGLRnrCtx::RefCamera(), TGLCamera::RefViewport(), TGLRnrCtx::RegisterFontNoScale(), TGLFont::Render(), TMath::Sqrt(), vp, and w.

Referenced by Render().

void TGLCameraOverlay::RenderAxis ( TGLRnrCtx rnrCtx,
Bool_t  drawGrid 
) [protected]

Definition at line 164 of file TGLCameraOverlay.cxx.

References TGLVertex3::Arr(), TGLRnrCtx::ColorSet(), TGLUtil::ColorTransparency(), fAxis, fAxisPainter, fFrustum, fUseAxisColors, TAttAxis::GetAxisColor(), TGLMatrix::GetBaseVec(), TGLCamera::GetCamBase(), TGLColor::GetColorIndex(), TAttAxis::GetLabelSize(), TAttAxis::GetNdivisions(), GL_ENABLE_BIT, GL_LINE_BIT, GL_LINE_STIPPLE, GL_LINES, GL_VIEWPORT, glBegin(), glEnable(), glEnd(), glGetIntegerv(), glLineStipple(), glPopAttrib(), glPopMatrix(), glPushAttrib(), glPushMatrix(), glTranslated(), glVertex3dv(), i, k, TGLFont::kBottom, TGLFont::kCenterH, TGLFont::kCenterV, TGLFont::kLeft, TGLFont::kRight, TGLFont::kTop, TGLUtil::LineWidth(), TGLColorSet::Markup(), maxX, maxY, minX, minY, TGLVertex3::Negate(), TGLVector3::Normalise(), THLimitsFinder::Optimize(), TGLAxisPainter::PaintAxis(), TGLRnrCtx::RefCamera(), TGLAxisPainter::RefDir(), TGLAxisPainter::RefLabVec(), TGLAxisPainter::RefTMOff(), TGLAxisPainter::RnrLabels(), TGLAxisPainter::RnrLines(), TGLAxisPainter::SetAttAxis(), TGLAxisPainter::SetLabelAlign(), TGLAxisPainter::SetLabelPixelFontSize(), TAxis::SetLimits(), TAttAxis::SetTickLength(), TGLAxisPainter::SetUseAxisColors(), TMath::Sqrt(), val, vp, TGLVertex3::X(), TGLVertex3::Y(), and TGLVertex3::Z().

Referenced by Render().

void TGLCameraOverlay::RenderGrid ( TGLRnrCtx rnrCtx  )  [protected]

void TGLCameraOverlay::RenderBar ( TGLRnrCtx rnrCtx  )  [protected]

Definition at line 376 of file TGLCameraOverlay.cxx.

References TMath::Abs(), TGLFont::BBox(), TGLUtil::Color(), TGLRnrCtx::ColorSet(), exp(), fFrustum, TMath::Floor(), TGLColorSet::Foreground(), Form(), TGLMatrix::GetBaseVec(), TGLCamera::GetCamBase(), TGLRnrCtx::GetCamera(), GL_ENABLE_BIT, GL_LINE_BIT, GL_LINES, glBegin(), glEnd(), glPopAttrib(), glPopMatrix(), glPushAttrib(), glPushMatrix(), glRasterPos2i(), glTranslated(), glVertex3d(), glVertex3dv(), TGLFont::kPixmap, kRed, TGLUtil::LineWidth(), TMath::Log10(), TGLVector3::Normalise(), TMath::Power(), red, TGLRnrCtx::RefCamera(), TGLCamera::RefViewport(), TGLRnrCtx::RegisterFont(), TGLFont::Render(), and vp.

Referenced by Render().

void TGLCameraOverlay::Render ( TGLRnrCtx rnrCtx  )  [virtual]

Implements TGLOverlayElement.

Definition at line 460 of file TGLCameraOverlay.cxx.

References TGLUtil::Color(), TGLRnrCtx::ColorSet(), fOrthographicMode, fShowOrthographic, fShowPerspective, GL_BLEND, GL_DEPTH_RANGE, GL_ENABLE_BIT, GL_LIGHTING, GL_LINE_BIT, GL_ONE_MINUS_SRC_ALPHA, GL_SRC_ALPHA, glBlendFunc(), glDepthRange(), glEnable(), glGetFloatv(), glPopAttrib(), glPushAttrib(), TGLCamera::IsOrthographic(), TGLCamera::IsPerspective(), kAxis, kBar, kFALSE, kGridBack, kGridFront, kTRUE, TGLColorSet::Markup(), TGLRnrCtx::RefCamera(), RenderAxis(), RenderBar(), RenderPlaneIntersect(), TGLRnrCtx::Selection(), and SetFrustum().

Referenced by TEveCaloLegoOverlay::Render().

TGLPlane& TGLCameraOverlay::RefExternalRefPlane (  )  [inline]

Definition at line 63 of file TGLCameraOverlay.h.

References fExternalRefPlane.

void TGLCameraOverlay::UseExternalRefPlane ( Bool_t  x  )  [inline]

Definition at line 64 of file TGLCameraOverlay.h.

References fUseExternalRefPlane.

Bool_t TGLCameraOverlay::GetUseExternalRefPlane (  )  const [inline]

Definition at line 65 of file TGLCameraOverlay.h.

References fUseExternalRefPlane.

Int_t TGLCameraOverlay::GetPerspectiveMode (  )  const [inline]

Definition at line 67 of file TGLCameraOverlay.h.

References fPerspectiveMode.

Referenced by TGLViewerEditor::SetGuides().

void TGLCameraOverlay::SetPerspectiveMode ( EMode  m  )  [inline]

Definition at line 68 of file TGLCameraOverlay.h.

References fPerspectiveMode.

Referenced by TGLViewerEditor::DoCameraOverlay().

Int_t TGLCameraOverlay::GetOrthographicMode (  )  const [inline]

Definition at line 69 of file TGLCameraOverlay.h.

References fOrthographicMode.

Referenced by TGLViewerEditor::SetGuides().

void TGLCameraOverlay::SetOrthographicMode ( EMode  m  )  [inline]

Definition at line 70 of file TGLCameraOverlay.h.

References fOrthographicMode.

Referenced by TGLViewerEditor::DoCameraOverlay(), and quadset().

Bool_t TGLCameraOverlay::GetShowOrthographic (  )  const [inline]

Definition at line 72 of file TGLCameraOverlay.h.

References fShowOrthographic.

Referenced by TGLViewerEditor::SetGuides().

void TGLCameraOverlay::SetShowOrthographic ( Bool_t  x  )  [inline]

Definition at line 73 of file TGLCameraOverlay.h.

References fShowOrthographic.

Referenced by TGLViewerEditor::DoCameraOverlay(), and quadset().

Bool_t TGLCameraOverlay::GetShowPerspective (  )  const [inline]

Definition at line 74 of file TGLCameraOverlay.h.

References fShowPerspective.

Referenced by TGLViewerEditor::SetGuides().

void TGLCameraOverlay::SetShowPerspective ( Bool_t  x  )  [inline]

Definition at line 75 of file TGLCameraOverlay.h.

References fShowPerspective.

Referenced by TGLViewerEditor::DoCameraOverlay().

void TGLCameraOverlay::SetFrustum ( TGLCamera cam  ) 

Definition at line 83 of file TGLCameraOverlay.cxx.

References b, TGLPlane::D(), Dot(), fFrustum, TGLCamera::FrustumPlane(), TGLMatrix::GetBaseVec(), TGLCamera::GetCamBase(), TGLCamera::kBottom, TGLCamera::kLeft, TGLCamera::kRight, TGLCamera::kTop, l, and t.

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

TAttAxis * TGLCameraOverlay::GetAttAxis (  ) 

Definition at line 75 of file TGLCameraOverlay.cxx.

References fAxis.

Referenced by TEveCaloLegoOverlay::RenderPlaneInterface().

TGLCameraOverlay::ClassDef ( TGLCameraOverlay  ,
 
)

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

void TGLCameraOverlay::RenderPlaneIntersect ( TGLRnrCtx rnrCtx  )  [protected]

void TGLCameraOverlay::RenderAxis ( TGLRnrCtx rnrCtx,
Bool_t  drawGrid 
) [protected]

void TGLCameraOverlay::RenderGrid ( TGLRnrCtx rnrCtx  )  [protected]

void TGLCameraOverlay::RenderBar ( TGLRnrCtx rnrCtx  )  [protected]

virtual void TGLCameraOverlay::Render ( TGLRnrCtx rnrCtx  )  [virtual]

Implements TGLOverlayElement.

TGLPlane& TGLCameraOverlay::RefExternalRefPlane (  )  [inline]

Definition at line 63 of file TGLCameraOverlay.h.

References fExternalRefPlane.

void TGLCameraOverlay::UseExternalRefPlane ( Bool_t  x  )  [inline]

Definition at line 64 of file TGLCameraOverlay.h.

References fUseExternalRefPlane.

Bool_t TGLCameraOverlay::GetUseExternalRefPlane (  )  const [inline]

Definition at line 65 of file TGLCameraOverlay.h.

References fUseExternalRefPlane.

Int_t TGLCameraOverlay::GetPerspectiveMode (  )  const [inline]

Definition at line 67 of file TGLCameraOverlay.h.

References fPerspectiveMode.

void TGLCameraOverlay::SetPerspectiveMode ( EMode  m  )  [inline]

Definition at line 68 of file TGLCameraOverlay.h.

References fPerspectiveMode.

Int_t TGLCameraOverlay::GetOrthographicMode (  )  const [inline]

Definition at line 69 of file TGLCameraOverlay.h.

References fOrthographicMode.

void TGLCameraOverlay::SetOrthographicMode ( EMode  m  )  [inline]

Definition at line 70 of file TGLCameraOverlay.h.

References fOrthographicMode.

Bool_t TGLCameraOverlay::GetShowOrthographic (  )  const [inline]

Definition at line 72 of file TGLCameraOverlay.h.

References fShowOrthographic.

void TGLCameraOverlay::SetShowOrthographic ( Bool_t  x  )  [inline]

Definition at line 73 of file TGLCameraOverlay.h.

References fShowOrthographic.

Bool_t TGLCameraOverlay::GetShowPerspective (  )  const [inline]

Definition at line 74 of file TGLCameraOverlay.h.

References fShowPerspective.

void TGLCameraOverlay::SetShowPerspective ( Bool_t  x  )  [inline]

Definition at line 75 of file TGLCameraOverlay.h.

References fShowPerspective.

void TGLCameraOverlay::SetFrustum ( TGLCamera cam  ) 

TAttAxis* TGLCameraOverlay::GetAttAxis (  ) 

TGLCameraOverlay::ClassDef ( TGLCameraOverlay  ,
 
)


Member Data Documentation

Bool_t TGLCameraOverlay::fShowOrthographic [protected]

Definition at line 35 of file TGLCameraOverlay.h.

Referenced by GetShowOrthographic(), Render(), and SetShowOrthographic().

Bool_t TGLCameraOverlay::fShowPerspective [protected]

Definition at line 36 of file TGLCameraOverlay.h.

Referenced by GetShowPerspective(), Render(), and SetShowPerspective().

EMode TGLCameraOverlay::fOrthographicMode [protected]

Definition at line 38 of file TGLCameraOverlay.h.

Referenced by GetOrthographicMode(), Render(), and SetOrthographicMode().

EMode TGLCameraOverlay::fPerspectiveMode [protected]

Definition at line 39 of file TGLCameraOverlay.h.

Referenced by GetPerspectiveMode(), and SetPerspectiveMode().

TGLAxisPainter* TGLCameraOverlay::fAxisPainter [protected]

Definition at line 41 of file TGLCameraOverlay.h.

Referenced by RenderAxis(), TEveCaloLegoOverlay::RenderPaletteScales(), TEveCaloLegoOverlay::RenderPlaneInterface(), TGLCameraOverlay(), and ~TGLCameraOverlay().

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.

Bool_t TGLCameraOverlay::fUseAxisColors [protected]

Definition at line 44 of file TGLCameraOverlay.h.

Referenced by RenderAxis().

TGLPlane TGLCameraOverlay::fExternalRefPlane [protected]

Definition at line 46 of file TGLCameraOverlay.h.

Referenced by RefExternalRefPlane(), and RenderPlaneIntersect().

Bool_t TGLCameraOverlay::fUseExternalRefPlane [protected]

Definition at line 47 of file TGLCameraOverlay.h.

Referenced by GetUseExternalRefPlane(), RenderPlaneIntersect(), and UseExternalRefPlane().

Double_t TGLCameraOverlay::fFrustum [protected]

Definition at line 49 of file TGLCameraOverlay.h.

Referenced by TEveCaloLegoOverlay::Render(), RenderAxis(), RenderBar(), SetFrustum(), and TGLCameraOverlay().

TGLAxisPainter* TGLCameraOverlay::fAxisPainter [protected]

Definition at line 41 of file TGLCameraOverlay.h.

TAxis* TGLCameraOverlay::fAxis [protected]

Definition at line 42 of file TGLCameraOverlay.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:39:58 2011 for ROOT_528-00b_version by  doxygen 1.5.1