TGLRect Class Reference

#include <TGLUtil.h>

List of all members.

Public Member Functions

 TGLRect ()
 Positive width/height.
 TGLRect (Int_t x, Int_t y, Int_t width, Int_t height)
 TGLRect (Int_t x, Int_t y, UInt_t width, UInt_t height)
virtual ~TGLRect ()
void Set (Int_t x, Int_t y, Int_t width, Int_t height)
void SetCorner (Int_t x, Int_t y)
void Offset (Int_t dX, Int_t dY)
void Expand (Int_t x, Int_t y)
const Int_tCArr () const
Int_tCArr ()
Int_t X () const
Int_tX ()
Int_t Y () const
Int_tY ()
Int_t Width () const
Int_tWidth ()
Int_t Height () const
Int_tHeight ()
Int_t CenterX () const
Int_t CenterY () const
Int_t Left () const
Int_t Right () const
Int_t Top () const
Int_t Bottom () const
Int_t Diagonal () const
Int_t Longest () const
Double_t Aspect () const
EOverlap Overlap (const TGLRect &other) const
 ClassDef (TGLRect, 0)
 TGLRect ()
 Positive width/height.
 TGLRect (Int_t x, Int_t y, Int_t width, Int_t height)
 TGLRect (Int_t x, Int_t y, UInt_t width, UInt_t height)
virtual ~TGLRect ()
void Set (Int_t x, Int_t y, Int_t width, Int_t height)
void SetCorner (Int_t x, Int_t y)
void Offset (Int_t dX, Int_t dY)
void Expand (Int_t x, Int_t y)
const Int_tCArr () const
Int_tCArr ()
Int_t X () const
Int_tX ()
Int_t Y () const
Int_tY ()
Int_t Width () const
Int_tWidth ()
Int_t Height () const
Int_tHeight ()
Int_t CenterX () const
Int_t CenterY () const
Int_t Left () const
Int_t Right () const
Int_t Top () const
Int_t Bottom () const
Int_t Diagonal () const
Int_t Longest () const
Double_t Aspect () const
EOverlap Overlap (const TGLRect &other) const
 ClassDef (TGLRect, 0)

Private Attributes

Int_t fX
Int_t fY
Int_t fWidth
 Corner.
Int_t fHeight


Detailed Description

Definition at line 443 of file TGLUtil.h.


Constructor & Destructor Documentation

TGLRect::TGLRect (  ) 

Positive width/height.

Definition at line 245 of file TGLUtil.cxx.

TGLRect::TGLRect ( Int_t  x,
Int_t  y,
Int_t  width,
Int_t  height 
)

Definition at line 252 of file TGLUtil.cxx.

TGLRect::TGLRect ( Int_t  x,
Int_t  y,
UInt_t  width,
UInt_t  height 
)

Definition at line 259 of file TGLUtil.cxx.

TGLRect::~TGLRect (  )  [virtual]

Definition at line 267 of file TGLUtil.cxx.

TGLRect::TGLRect (  ) 

Positive width/height.

TGLRect::TGLRect ( Int_t  x,
Int_t  y,
Int_t  width,
Int_t  height 
)

TGLRect::TGLRect ( Int_t  x,
Int_t  y,
UInt_t  width,
UInt_t  height 
)

virtual TGLRect::~TGLRect (  )  [virtual]


Member Function Documentation

void TGLRect::Set ( Int_t  x,
Int_t  y,
Int_t  width,
Int_t  height 
) [inline]

Definition at line 493 of file TGLUtil.h.

References fHeight, fWidth, fX, and fY.

Referenced by TGLRnrCtx::BeginSelection(), and TGLViewer::SetViewport().

void TGLRect::SetCorner ( Int_t  x,
Int_t  y 
) [inline]

Definition at line 502 of file TGLUtil.h.

References fX, and fY.

Referenced by TGLCamera::ViewportRect().

void TGLRect::Offset ( Int_t  dX,
Int_t  dY 
) [inline]

Definition at line 509 of file TGLUtil.h.

References fX, and fY.

void TGLRect::Expand ( Int_t  x,
Int_t  y 
)

Definition at line 273 of file TGLUtil.cxx.

References fHeight, fWidth, fX, and fY.

Referenced by TGLCamera::ViewportRect().

const Int_t* TGLRect::CArr (  )  const [inline]

Definition at line 465 of file TGLUtil.h.

References fX.

Referenced by TGLPerspectiveCamera::Apply(), TGLOrthoCamera::Apply(), TGLRnrCtx::ProjectionMatrixPushIdentity(), TGLOverlayButton::Render(), TEveCaloLegoOverlay::Render(), TGLCamera::ViewportRect(), TGLCamera::ViewportToWorld(), and TGLCamera::WorldToViewport().

Int_t* TGLRect::CArr (  )  [inline]

Definition at line 466 of file TGLUtil.h.

References fX.

Int_t TGLRect::X (  )  const [inline]

Definition at line 468 of file TGLUtil.h.

References fX.

Referenced by TGLPerspectiveCamera::Apply(), TGLOrthoCamera::Apply(), TGLPlotCamera::GetX(), TGLRnrCtx::ProjectionMatrixPushIdentity(), TGLOverlayButton::Render(), TEveCaloLegoOverlay::Render(), TGLPlotCamera::SetCamera(), TGLPlotCamera::SetViewport(), and TGLViewer::SetViewport().

Int_t& TGLRect::X (  )  [inline]

Definition at line 469 of file TGLUtil.h.

References fX.

Int_t TGLRect::Y (  )  const [inline]

Definition at line 470 of file TGLUtil.h.

References fY.

Referenced by TGLPerspectiveCamera::Apply(), TGLOrthoCamera::Apply(), TGLPlotCamera::GetY(), TGLRnrCtx::ProjectionMatrixPushIdentity(), TGLOverlayButton::Render(), TEveCaloLegoOverlay::Render(), TGLPlotCamera::SetCamera(), TGLPlotCamera::SetViewport(), TGLViewer::SetViewport(), and TGLCamera::WindowToViewport().

Int_t& TGLRect::Y (  )  [inline]

Definition at line 471 of file TGLUtil.h.

References fY.

Int_t TGLRect::Width (  )  const [inline]

Definition at line 472 of file TGLUtil.h.

References fWidth.

Referenced by TGLPerspectiveCamera::Apply(), TGLOrthoCamera::Apply(), TGLViewer::DoDraw(), TGLPlotCamera::GetWidth(), TGLPlotCamera::Pan(), TGLRnrCtx::ProjectionMatrixPushIdentity(), TGLOverlayButton::Render(), TEveCaloLegoOverlay::Render(), TGLCamera::Rotate(), TGLViewer::SavePicture(), TGLViewer::SavePictureHeight(), TGLViewer::SavePictureScale(), TGLViewer::SavePictureUsingBB(), TGLViewer::SavePictureUsingFBO(), TGLViewer::SavePictureWidth(), TGLPlotCamera::SetCamera(), TGLPlotCamera::SetViewport(), TGLViewer::SetViewport(), and TGLOrthoCamera::Truck().

Int_t& TGLRect::Width (  )  [inline]

Definition at line 473 of file TGLUtil.h.

References fWidth.

Int_t TGLRect::Height (  )  const [inline]

Definition at line 474 of file TGLUtil.h.

References fHeight.

Referenced by TGLPerspectiveCamera::Apply(), TGLOrthoCamera::Apply(), TGLViewer::DoDraw(), TGLPlotCamera::GetHeight(), TGLPlotCamera::Pan(), TGLRnrCtx::ProjectionMatrixPushIdentity(), TGLOverlayButton::Render(), TEveCaloLegoOverlay::Render(), TEveCaloLegoOverlay::RenderPaletteScales(), TEveCaloLegoOverlay::RenderPlaneInterface(), TEveLegoEventHandler::Rotate(), TGLCamera::Rotate(), TGLViewer::SavePicture(), TGLViewer::SavePictureHeight(), TGLViewer::SavePictureScale(), TGLViewer::SavePictureUsingBB(), TGLViewer::SavePictureUsingFBO(), TGLViewer::SavePictureWidth(), TGLPlotCamera::SetCamera(), TEveCaloLegoOverlay::SetSliderVal(), TGLPlotCamera::SetViewport(), TGLViewer::SetViewport(), TGLPlotCamera::StartPan(), TGLOrthoCamera::Truck(), TGLPerspectiveCamera::Truck(), and TGLCamera::WindowToViewport().

Int_t& TGLRect::Height (  )  [inline]

Definition at line 475 of file TGLUtil.h.

References fHeight.

Int_t TGLRect::CenterX (  )  const [inline]

Definition at line 476 of file TGLUtil.h.

References fWidth, and fX.

Int_t TGLRect::CenterY (  )  const [inline]

Definition at line 477 of file TGLUtil.h.

References fHeight, and fY.

Int_t TGLRect::Left (  )  const [inline]

Definition at line 478 of file TGLUtil.h.

References fX.

Int_t TGLRect::Right (  )  const [inline]

Definition at line 479 of file TGLUtil.h.

References fWidth, and fX.

Int_t TGLRect::Top (  )  const [inline]

Definition at line 480 of file TGLUtil.h.

References fY.

Int_t TGLRect::Bottom (  )  const [inline]

Definition at line 481 of file TGLUtil.h.

References fHeight, and fY.

Int_t TGLRect::Diagonal (  )  const

Definition at line 297 of file TGLUtil.cxx.

References fHeight, fWidth, h, TMath::Nint(), TMath::Sqrt(), and w.

Referenced by TEveCaloLegoGL::DrawAxis2D(), and TGLViewer::ViewportDiagonal().

Int_t TGLRect::Longest (  )  const [inline]

Definition at line 516 of file TGLUtil.h.

References fHeight, and fWidth.

Double_t TGLRect::Aspect (  )  const [inline]

Definition at line 522 of file TGLUtil.h.

References fHeight, and fWidth.

Referenced by TGLPerspectiveCamera::Apply(), TGLViewer::DoDrawStereo(), TGLCameraGuide::Render(), and TGLPerspectiveCamera::Setup().

EOverlap TGLRect::Overlap ( const TGLRect other  )  const

Definition at line 307 of file TGLUtil.cxx.

References fHeight, fWidth, fX, fY, kInside, kOutside, and kPartial.

Referenced by TGLCamera::ViewportOverlap().

TGLRect::ClassDef ( TGLRect  ,
 
)

void TGLRect::Set ( Int_t  x,
Int_t  y,
Int_t  width,
Int_t  height 
)

void TGLRect::SetCorner ( Int_t  x,
Int_t  y 
)

void TGLRect::Offset ( Int_t  dX,
Int_t  dY 
)

void TGLRect::Expand ( Int_t  x,
Int_t  y 
)

const Int_t* TGLRect::CArr (  )  const [inline]

Definition at line 465 of file TGLUtil.h.

References fX.

Int_t* TGLRect::CArr (  )  [inline]

Definition at line 466 of file TGLUtil.h.

References fX.

Int_t TGLRect::X (  )  const [inline]

Definition at line 468 of file TGLUtil.h.

References fX.

Int_t& TGLRect::X (  )  [inline]

Definition at line 469 of file TGLUtil.h.

References fX.

Int_t TGLRect::Y (  )  const [inline]

Definition at line 470 of file TGLUtil.h.

References fY.

Int_t& TGLRect::Y (  )  [inline]

Definition at line 471 of file TGLUtil.h.

References fY.

Int_t TGLRect::Width (  )  const [inline]

Definition at line 472 of file TGLUtil.h.

References fWidth.

Int_t& TGLRect::Width (  )  [inline]

Definition at line 473 of file TGLUtil.h.

References fWidth.

Int_t TGLRect::Height (  )  const [inline]

Definition at line 474 of file TGLUtil.h.

References fHeight.

Int_t& TGLRect::Height (  )  [inline]

Definition at line 475 of file TGLUtil.h.

References fHeight.

Int_t TGLRect::CenterX (  )  const [inline]

Definition at line 476 of file TGLUtil.h.

References fWidth, and fX.

Int_t TGLRect::CenterY (  )  const [inline]

Definition at line 477 of file TGLUtil.h.

References fHeight, and fY.

Int_t TGLRect::Left (  )  const [inline]

Definition at line 478 of file TGLUtil.h.

References fX.

Int_t TGLRect::Right (  )  const [inline]

Definition at line 479 of file TGLUtil.h.

References fWidth, and fX.

Int_t TGLRect::Top (  )  const [inline]

Definition at line 480 of file TGLUtil.h.

References fY.

Int_t TGLRect::Bottom (  )  const [inline]

Definition at line 481 of file TGLUtil.h.

References fHeight, and fY.

Int_t TGLRect::Diagonal (  )  const

Int_t TGLRect::Longest (  )  const

Double_t TGLRect::Aspect (  )  const

EOverlap TGLRect::Overlap ( const TGLRect other  )  const

TGLRect::ClassDef ( TGLRect  ,
 
)


Member Data Documentation

Int_t TGLRect::fX [private]

Definition at line 447 of file TGLUtil.h.

Referenced by CArr(), CenterX(), Expand(), Left(), Offset(), Overlap(), Right(), Set(), SetCorner(), and X().

Int_t TGLRect::fY [private]

Definition at line 447 of file TGLUtil.h.

Referenced by Bottom(), CenterY(), Expand(), Offset(), Overlap(), Set(), SetCorner(), Top(), and Y().

Int_t TGLRect::fWidth [private]

Corner.

Definition at line 448 of file TGLUtil.h.

Referenced by Aspect(), CenterX(), Diagonal(), Expand(), Longest(), Overlap(), Right(), Set(), and Width().

Int_t TGLRect::fHeight [private]

Definition at line 448 of file TGLUtil.h.

Referenced by Aspect(), Bottom(), CenterY(), Diagonal(), Expand(), Height(), Longest(), Overlap(), and Set().


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