ROOT
6.07/01
Reference Guide
|
Public Member Functions | |
TGLRect () | |
Positive width/height. More... | |
TGLRect (Int_t x, Int_t y, Int_t width, Int_t height) | |
Construct rect object, corner (x,y), dimensions 'width', 'height'. More... | |
TGLRect (Int_t x, Int_t y, UInt_t width, UInt_t height) | |
Construct rect object, corner (x,y), dimensions 'width', 'height'. More... | |
virtual | ~TGLRect () |
Destroy rect object. More... | |
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) |
Expand the rect to encompass point (x,y) More... | |
const Int_t * | CArr () const |
Int_t * | CArr () |
Int_t | X () const |
Int_t & | X () |
Int_t | Y () const |
Int_t & | Y () |
Int_t | Width () const |
Int_t & | Width () |
Int_t | Height () const |
Int_t & | Height () |
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 |
Return the diagonal of the rectangle. More... | |
Int_t | Longest () const |
Double_t | Aspect () const |
Rgl::EOverlap | Overlap (const TGLRect &other) const |
Return overlap result (kInside, kOutside, kPartial) of this rect with 'other'. More... | |
ClassDef (TGLRect, 0) | |
Private Attributes | |
Int_t | fX |
Int_t | fY |
Int_t | fWidth |
Corner. More... | |
Int_t | fHeight |
#include <TGLUtil.h>
TGLRect::TGLRect | ( | ) |
Positive width/height.
Construct empty rect object, corner (0,0), width/height 0.
Definition at line 259 of file TGLUtil.cxx.
Construct rect object, corner (x,y), dimensions 'width', 'height'.
Definition at line 267 of file TGLUtil.cxx.
Construct rect object, corner (x,y), dimensions 'width', 'height'.
Definition at line 275 of file TGLUtil.cxx.
|
virtual |
Destroy rect object.
Definition at line 284 of file TGLUtil.cxx.
|
inline |
Definition at line 505 of file TGLUtil.h.
Referenced by TGLPerspectiveCamera::Apply(), TGLViewer::DoDrawStereo(), TGLCameraGuide::Render(), TGLAnnotation::Render(), TEveCaloLegoOverlay::RenderPaletteScales(), and TGLPerspectiveCamera::Setup().
|
inline |
Definition at line 448 of file TGLUtil.h.
Referenced by TGLPerspectiveCamera::Apply(), TGLOrthoCamera::Apply(), TEveCaloLegoGL::DrawAxis3D(), TGLRnrCtx::ProjectionMatrixPushIdentity(), TGLOverlayButton::Render(), TEveCaloLegoOverlay::Render(), TGLCamera::ViewportRect(), TGLCamera::ViewportToWorld(), and TGLCamera::WorldToViewport().
TGLRect::ClassDef | ( | TGLRect | , |
0 | |||
) |
Int_t TGLRect::Diagonal | ( | ) | const |
Return the diagonal of the rectangle.
Definition at line 316 of file TGLUtil.cxx.
Referenced by TGLPhysicalShape::CalculateShapeLOD(), TEveCaloLegoGL::DrawAxis2D(), TEveCaloLegoGL::DrawAxis3D(), and TGLViewer::ViewportDiagonal().
Expand the rect to encompass point (x,y)
Definition at line 291 of file TGLUtil.cxx.
Referenced by TGLCamera::ViewportRect().
|
inline |
Definition at line 457 of file TGLUtil.h.
Referenced by TGLPerspectiveCamera::Apply(), TGLOrthoCamera::Apply(), TGLViewer::DoDraw(), TGLViewer::DoDrawStereo(), TGLPhysicalShape::Draw(), TGLPlotCamera::GetHeight(), TGLViewer::GetPictureUsingBB(), TGLViewer::GetPictureUsingFBO(), TGLCameraGuide::Handle(), TEveCaloLegoOverlay::Handle(), TGLAnnotation::Handle(), TGLEventHandler::HandleButton(), TGLHistPainter::PadToViewport(), TGLPlotCamera::Pan(), TGLRnrCtx::ProjectionMatrixPushIdentity(), TGLOverlayButton::Render(), TEveCaloLegoOverlay::Render(), TGLAnnotation::Render(), TGLCameraOverlay::RenderBar(), TEveCaloLegoOverlay::RenderHeader(), TEveCaloLegoOverlay::RenderLogaritmicScales(), TEveCaloLegoOverlay::RenderPaletteScales(), TEveCaloLegoOverlay::RenderPlaneInterface(), TGLCameraOverlay::RenderPlaneIntersect(), TEveLegoEventHandler::Rotate(), TGLCamera::Rotate(), TGLCamera::RotateArcBall(), TGLViewer::SavePicture(), TGLViewer::SavePictureHeight(), TGLViewer::SavePictureScale(), TGLViewer::SavePictureUsingBB(), TGLViewer::SavePictureUsingFBO(), TGLViewer::SavePictureWidth(), TGLPlotCamera::SetCamera(), TEveCaloLegoOverlay::SetSliderVal(), TGLViewer::SetStereo(), TGLPlotCamera::SetViewport(), TGLViewer::SetViewport(), TGLPlotCamera::StartPan(), TGLPerspectiveCamera::Truck(), TGLOrthoCamera::Truck(), and TGLCamera::WindowToViewport().
Rgl::EOverlap TGLRect::Overlap | ( | const TGLRect & | other | ) | const |
Return overlap result (kInside, kOutside, kPartial) of this rect with 'other'.
Definition at line 327 of file TGLUtil.cxx.
Referenced by TGLCamera::ViewportOverlap().
Definition at line 476 of file TGLUtil.h.
Referenced by TGLRnrCtx::BeginSelection(), TGLPlane::Set(), TGLViewer::SetViewport(), TGLMatrix::TGLMatrix(), and TGLPlane::TGLPlane().
Definition at line 485 of file TGLUtil.h.
Referenced by TGLCamera::ViewportRect().
|
inline |
Definition at line 455 of file TGLUtil.h.
Referenced by TGLPerspectiveCamera::Apply(), TGLOrthoCamera::Apply(), TGLViewer::DoDraw(), TGLViewer::DoDrawStereo(), TGLPhysicalShape::Draw(), TGLViewer::GetPictureUsingBB(), TGLViewer::GetPictureUsingFBO(), TGLPlotCamera::GetWidth(), TGLCameraGuide::Handle(), TEveCaloLegoOverlay::Handle(), TGLAnnotation::Handle(), TGLEventHandler::HandleButton(), TGLHistPainter::PadToViewport(), TGLPlotCamera::Pan(), TGLRnrCtx::ProjectionMatrixPushIdentity(), TGLOverlayButton::Render(), TEveCaloLegoOverlay::Render(), TGLAnnotation::Render(), TEveCaloLegoOverlay::RenderHeader(), TEveCaloLegoOverlay::RenderLogaritmicScales(), TGLCameraOverlay::RenderPlaneIntersect(), TGLCamera::Rotate(), TGLCamera::RotateArcBall(), TGLViewer::SavePicture(), TGLViewer::SavePictureHeight(), TGLViewer::SavePictureScale(), TGLViewer::SavePictureUsingBB(), TGLViewer::SavePictureUsingFBO(), TGLViewer::SavePictureWidth(), TGLPlotCamera::SetCamera(), TGLViewer::SetStereo(), TGLPlotCamera::SetViewport(), TGLViewer::SetViewport(), and TGLOrthoCamera::Truck().
|
inline |
Definition at line 451 of file TGLUtil.h.
Referenced by TGLPerspectiveCamera::Apply(), TGLOrthoCamera::Apply(), TGLPhysicalShape::Draw(), TGLPlotCamera::GetX(), TGLHistPainter::PadToViewport(), TGLRnrCtx::ProjectionMatrixPushIdentity(), TGLOverlayButton::Render(), TGLPlotCamera::SetCamera(), TGLViewer::SetStereo(), TGLPlotCamera::SetViewport(), and TGLViewer::SetViewport().
|
inline |
Definition at line 453 of file TGLUtil.h.
Referenced by TGLPerspectiveCamera::Apply(), TGLOrthoCamera::Apply(), TGLPhysicalShape::Draw(), TGLPlotCamera::GetY(), TGLHistPainter::PadToViewport(), TGLRnrCtx::ProjectionMatrixPushIdentity(), TGLOverlayButton::Render(), TGLPlotCamera::SetCamera(), TGLViewer::SetStereo(), TGLPlotCamera::SetViewport(), TGLViewer::SetViewport(), and TGLCamera::WindowToViewport().
|
private |
|
private |
|
private |
|
private |