ROOT
6.07/01
Reference Guide
|
Camera for TGLPlotPainter and sub-classes.
Definition at line 21 of file TGLPlotCamera.h.
Public Member Functions | |
TGLPlotCamera () | |
Construct camera for plot painters. More... | |
virtual | ~TGLPlotCamera () |
void | SetViewport (const TGLRect &vp) |
Setup viewport, if it was changed, plus reset arcball. More... | |
void | SetViewVolume (const TGLVertex3 *box) |
'box' is the TGLPlotPainter's back box's coordinates. More... | |
void | StartRotation (Int_t px, Int_t py) |
User clicks somewhere (px, py). More... | |
void | RotateCamera (Int_t px, Int_t py) |
Mouse movement. More... | |
void | StartPan (Int_t px, Int_t py) |
User clicks somewhere (px, py). More... | |
void | Pan (Int_t px, Int_t py) |
Pan camera. More... | |
void | ZoomIn () |
Zoom in. More... | |
void | ZoomOut () |
Zoom out. More... | |
void | SetCamera () const |
Viewport and projection. More... | |
void | Apply (Double_t phi, Double_t theta) const |
Applies rotations and translations before drawing. More... | |
Bool_t | ViewportChanged () const |
Int_t | GetX () const |
viewport[0] More... | |
Int_t | GetY () const |
viewport[1] More... | |
Int_t | GetWidth () const |
viewport[2] More... | |
Int_t | GetHeight () const |
viewport[3] More... | |
ClassDef (TGLPlotCamera, 0) | |
Protected Attributes | |
TGLRect | fViewport |
Double_t | fZoom |
Double_t | fShift |
Double_t | fOrthoBox [4] |
TGLVertex3 | fCenter |
TGLVector3 | fTruck |
TArcBall | fArcBall |
TPoint | fMousePos |
Bool_t | fVpChanged |
Private Member Functions | |
TGLPlotCamera (const TGLPlotCamera &) | |
TGLPlotCamera & | operator= (const TGLPlotCamera &) |
#include <TGLPlotCamera.h>
|
private |
TGLPlotCamera::TGLPlotCamera | ( | ) |
Construct camera for plot painters.
Definition at line 26 of file TGLPlotCamera.cxx.
|
inlinevirtual |
Definition at line 40 of file TGLPlotCamera.h.
Applies rotations and translations before drawing.
Definition at line 141 of file TGLPlotCamera.cxx.
Referenced by TGLVoxelPainter::DrawPalette(), TGLBoxPainter::DrawPalette(), TGLLegoPainter::DrawPalette(), TGLSurfacePainter::DrawPalette(), TGLPlotPainter::Paint(), TGLH2PolyPainter::Pan(), TGLVoxelPainter::Pan(), TGLTF3Painter::Pan(), TGLLegoPainter::Pan(), TGLBoxPainter::Pan(), TGLSurfacePainter::Pan(), TGLTH3CompositionPainter::Pan(), TGL5DPainter::Pan(), TGLIsoPainter::Pan(), TGLParametricPlot::Pan(), and TGLPlotPainter::PlotSelected().
TGLPlotCamera::ClassDef | ( | TGLPlotCamera | , |
0 | |||
) |
Int_t TGLPlotCamera::GetHeight | ( | ) | const |
viewport[3]
Definition at line 178 of file TGLPlotCamera.cxx.
Referenced by Rgl::DrawPalette(), Rgl::DrawPaletteAxis(), TGLPlotPainter::Paint(), TGLH2PolyPainter::Pan(), TGLVoxelPainter::Pan(), TGLTF3Painter::Pan(), TGLLegoPainter::Pan(), TGLBoxPainter::Pan(), TGLSurfacePainter::Pan(), TGLTH3CompositionPainter::Pan(), TGL5DPainter::Pan(), TGLParametricPlot::Pan(), TGLIsoPainter::Pan(), TGLPlotPainter::PlotSelected(), TGLH2PolyPainter::StartPan(), TGLVoxelPainter::StartPan(), TGLTF3Painter::StartPan(), TGLLegoPainter::StartPan(), TGLBoxPainter::StartPan(), TGLSurfacePainter::StartPan(), TGLTH3CompositionPainter::StartPan(), TGL5DPainter::StartPan(), TGLIsoPainter::StartPan(), TGLParametricPlot::StartPan(), and TGLSurfacePainter::WindowPointTo3DPoint().
Int_t TGLPlotCamera::GetWidth | ( | ) | const |
viewport[2]
Definition at line 170 of file TGLPlotCamera.cxx.
Referenced by Rgl::DrawPalette(), Rgl::DrawPaletteAxis(), TGLPlotPainter::Paint(), and TGLPlotPainter::PlotSelected().
Int_t TGLPlotCamera::GetX | ( | ) | const |
viewport[0]
Definition at line 154 of file TGLPlotCamera.cxx.
Referenced by TGLPlotPainter::Paint(), and TGLPlotPainter::PlotSelected().
Int_t TGLPlotCamera::GetY | ( | ) | const |
viewport[1]
Definition at line 162 of file TGLPlotCamera.cxx.
Referenced by TGLPlotPainter::Paint(), and TGLPlotPainter::PlotSelected().
|
private |
Pan camera.
Definition at line 96 of file TGLPlotCamera.cxx.
Referenced by TGLH2PolyPainter::Pan(), TGLVoxelPainter::Pan(), TGLTF3Painter::Pan(), TGLLegoPainter::Pan(), TGLBoxPainter::Pan(), TGLSurfacePainter::Pan(), TGLTH3CompositionPainter::Pan(), TGL5DPainter::Pan(), TGLIsoPainter::Pan(), and TGLParametricPlot::Pan().
Mouse movement.
Definition at line 79 of file TGLPlotCamera.cxx.
Referenced by TGLHistPainter::ExecuteEvent().
void TGLPlotCamera::SetCamera | ( | ) | const |
Viewport and projection.
Definition at line 119 of file TGLPlotCamera.cxx.
Referenced by TGLVoxelPainter::DrawPalette(), TGLBoxPainter::DrawPalette(), TGLLegoPainter::DrawPalette(), TGLSurfacePainter::DrawPalette(), TGLPlotPainter::Paint(), TGLH2PolyPainter::Pan(), TGLVoxelPainter::Pan(), TGLTF3Painter::Pan(), TGLLegoPainter::Pan(), TGLBoxPainter::Pan(), TGLSurfacePainter::Pan(), TGLTH3CompositionPainter::Pan(), TGL5DPainter::Pan(), TGLIsoPainter::Pan(), TGLParametricPlot::Pan(), and TGLPlotPainter::PlotSelected().
Setup viewport, if it was changed, plus reset arcball.
Definition at line 39 of file TGLPlotCamera.cxx.
Referenced by TGLHistPainter::PadToViewport().
void TGLPlotCamera::SetViewVolume | ( | const TGLVertex3 * | box | ) |
'box' is the TGLPlotPainter's back box's coordinates.
Definition at line 55 of file TGLPlotCamera.cxx.
Referenced by TGLVoxelPainter::InitGeometry(), TGLTF3Painter::InitGeometry(), TGLLegoPainter::InitGeometry(), TGLBoxPainter::InitGeometry(), TGLSurfacePainter::InitGeometry(), TGLTH3CompositionPainter::InitGeometry(), TGL5DPainter::InitGeometry(), TGLIsoPainter::InitGeometry(), TGLParametricPlot::InitGeometry(), and TGL5DPainter::ResetGeometryRanges().
User clicks somewhere (px, py).
Definition at line 87 of file TGLPlotCamera.cxx.
Referenced by TGLH2PolyPainter::StartPan(), TGLVoxelPainter::StartPan(), TGLTF3Painter::StartPan(), TGLLegoPainter::StartPan(), TGLBoxPainter::StartPan(), TGLSurfacePainter::StartPan(), TGLTH3CompositionPainter::StartPan(), TGL5DPainter::StartPan(), TGLIsoPainter::StartPan(), and TGLParametricPlot::StartPan().
User clicks somewhere (px, py).
Definition at line 71 of file TGLPlotCamera.cxx.
Referenced by TGLHistPainter::ExecuteEvent().
|
inline |
Definition at line 53 of file TGLPlotCamera.h.
Referenced by TGLHistPainter::PadToViewport().
void TGLPlotCamera::ZoomIn | ( | ) |
Zoom in.
Definition at line 186 of file TGLPlotCamera.cxx.
Referenced by TGLHistPainter::ExecuteEvent().
void TGLPlotCamera::ZoomOut | ( | ) |
Zoom out.
Definition at line 194 of file TGLPlotCamera.cxx.
Referenced by TGLHistPainter::ExecuteEvent().
|
protected |
Definition at line 34 of file TGLPlotCamera.h.
Referenced by Apply(), RotateCamera(), SetViewport(), and StartRotation().
|
protected |
Definition at line 32 of file TGLPlotCamera.h.
|
protected |
Definition at line 35 of file TGLPlotCamera.h.
Referenced by Pan(), and StartPan().
|
protected |
Definition at line 31 of file TGLPlotCamera.h.
Referenced by SetCamera(), and TGLPlotCamera().
|
protected |
Definition at line 30 of file TGLPlotCamera.h.
Referenced by Apply().
|
protected |
Definition at line 33 of file TGLPlotCamera.h.
|
protected |
Definition at line 28 of file TGLPlotCamera.h.
Referenced by GetHeight(), GetWidth(), GetX(), GetY(), Pan(), SetCamera(), SetViewport(), and StartPan().
|
protected |
Definition at line 36 of file TGLPlotCamera.h.
Referenced by SetViewport(), and ViewportChanged().
|
protected |
Definition at line 29 of file TGLPlotCamera.h.
Referenced by SetCamera(), ZoomIn(), and ZoomOut().