#include <TGLOrthoCamera.h>
Inheritance diagram for TGLOrthoCamera:

Public Types | |
| enum | EType |
| enum | EType |
Public Member Functions | |
| TGLOrthoCamera (EType type, const TGLVector3 &hAxis, const TGLVector3 &vAxis) | |
| virtual | ~TGLOrthoCamera () |
| virtual Bool_t | IsOrthographic () const |
| virtual void | Setup (const TGLBoundingBox &box, Bool_t reset=kTRUE) |
| virtual void | Reset () |
| virtual Bool_t | Dolly (Int_t delta, Bool_t mod1, Bool_t mod2) |
| virtual Bool_t | Zoom (Int_t delta, Bool_t mod1, Bool_t mod2) |
| virtual Bool_t | Truck (Int_t xDelta, Int_t yDelta, Bool_t mod1, Bool_t mod2) |
| virtual Bool_t | Rotate (Int_t xDelta, Int_t yDelta, Bool_t mod1, Bool_t mod2) |
| virtual void | Apply (const TGLBoundingBox &sceneBox, const TGLRect *pickRect=0) const |
| virtual void | Configure (Double_t zoom, Double_t dolly, Double_t center[3], Double_t hRotate, Double_t vRotate) |
| void | SetEnableRotate (Bool_t x) |
| Bool_t | GetEnableRotate () const |
| Double_t | GetZoomMin () const |
| Double_t | GetZoomMax () const |
| void | SetZoomMin (Double_t z) |
| void | SetZoomMax (Double_t z) |
| void | SetZoomMinMax (Double_t min, Double_t max) |
| void | SetDollyToZoom (Bool_t x) |
| Bool_t | GetDollyToZoom () const |
| TGLOrthoCamera (EType type, const TGLVector3 &hAxis, const TGLVector3 &vAxis) | |
| virtual | ~TGLOrthoCamera () |
| virtual Bool_t | IsOrthographic () const |
| virtual void | Setup (const TGLBoundingBox &box, Bool_t reset=kTRUE) |
| virtual void | Reset () |
| virtual Bool_t | Dolly (Int_t delta, Bool_t mod1, Bool_t mod2) |
| virtual Bool_t | Zoom (Int_t delta, Bool_t mod1, Bool_t mod2) |
| virtual Bool_t | Truck (Int_t xDelta, Int_t yDelta, Bool_t mod1, Bool_t mod2) |
| virtual Bool_t | Rotate (Int_t xDelta, Int_t yDelta, Bool_t mod1, Bool_t mod2) |
| virtual void | Apply (const TGLBoundingBox &sceneBox, const TGLRect *pickRect=0) const |
| virtual void | Configure (Double_t zoom, Double_t dolly, Double_t center[3], Double_t hRotate, Double_t vRotate) |
| void | SetEnableRotate (Bool_t x) |
| Bool_t | GetEnableRotate () const |
| Double_t | GetZoomMin () const |
| Double_t | GetZoomMax () const |
| void | SetZoomMin (Double_t z) |
| void | SetZoomMax (Double_t z) |
| void | SetZoomMinMax (Double_t min, Double_t max) |
| void | SetDollyToZoom (Bool_t x) |
| Bool_t | GetDollyToZoom () const |
Private Attributes | |
| EType | fType |
| Bool_t | fEnableRotate |
| camera type | |
| Bool_t | fDollyToZoom |
| enable rotation | |
| Double_t | fZoomMin |
| zoom when dolly is requested | |
| Double_t | fZoomDefault |
| minimum zoom factor | |
| Double_t | fZoomMax |
| default zoom factor | |
| TGLBoundingBox | fVolume |
| maximum zoom factor | |
| Double_t | fDefXSize |
| scene volume | |
| Double_t | fDefYSize |
| Double_t | fZoom |
| x, y size of scene from camera view | |
Static Private Attributes | |
| static UInt_t | fgZoomDeltaSens |
| current zoom | |
Definition at line 35 of file TGLOrthoCamera.h.
Definition at line 38 of file TGLOrthoCamera.h.
Definition at line 38 of file TGLOrthoCamera.h.
| TGLOrthoCamera::TGLOrthoCamera | ( | EType | type, | |
| const TGLVector3 & | hAxis, | |||
| const TGLVector3 & | vAxis | |||
| ) |
| TGLOrthoCamera::~TGLOrthoCamera | ( | ) | [virtual] |
Definition at line 53 of file TGLOrthoCamera.cxx.
| TGLOrthoCamera::TGLOrthoCamera | ( | EType | type, | |
| const TGLVector3 & | hAxis, | |||
| const TGLVector3 & | vAxis | |||
| ) |
| virtual TGLOrthoCamera::~TGLOrthoCamera | ( | ) | [virtual] |
| virtual Bool_t TGLOrthoCamera::IsOrthographic | ( | ) | const [inline, virtual] |
| void TGLOrthoCamera::Setup | ( | const TGLBoundingBox & | box, | |
| Bool_t | reset = kTRUE | |||
| ) | [virtual] |
Implements TGLCamera.
Definition at line 59 of file TGLOrthoCamera.cxx.
References box(), TGLCamera::fExternalCenter, TGLCamera::fFDCenter, TGLCamera::fFixDefCenter, fVolume, Reset(), TGLCamera::SetCenterVec(), TGLVertex3::X(), TGLVertex3::Y(), and TGLVertex3::Z().
Referenced by TEveLegoEventHandler::Rotate(), and TGLViewer::SetupCameras().
| void TGLOrthoCamera::Reset | ( | ) | [virtual] |
Implements TGLCamera.
Definition at line 83 of file TGLOrthoCamera.cxx.
References TGLBoundingBox::Extents(), TGLCamera::fCamTrans, fDefXSize, fDefYSize, TGLCamera::fDollyDefault, TGLCamera::fDollyDistance, fType, fVolume, TGLCamera::IncTimeStamp(), kXnOY, kXnOZ, kXOY, kXOZ, kZnOY, kZOY, TGLVector3::Mag(), TGLMatrix::MoveLF(), TGLMatrix::SetIdentity(), TMath::Sqrt(), TGLVertex3::X(), TGLVertex3::Y(), and TGLVertex3::Z().
Referenced by Setup().
Reimplemented from TGLCamera.
Definition at line 123 of file TGLOrthoCamera.cxx.
References TGLCamera::Dolly(), fDollyToZoom, and Zoom().
Implements TGLCamera.
Definition at line 137 of file TGLOrthoCamera.cxx.
References TGLCamera::AdjustAndClampVal(), and TGLCamera::IncTimeStamp().
Referenced by Dolly().
Implements TGLCamera.
Definition at line 189 of file TGLOrthoCamera.cxx.
References TGLCamera::AdjustDelta(), TGLCamera::fProjM, TGLCamera::fViewport, TGLRect::Height(), and TGLRect::Width().
Referenced by TEveLegoEventHandler::Rotate().
Reimplemented from TGLCamera.
Definition at line 204 of file TGLOrthoCamera.cxx.
References fEnableRotate, and TGLCamera::Rotate().
| void TGLOrthoCamera::Apply | ( | const TGLBoundingBox & | sceneBox, | |
| const TGLRect * | pickRect = 0 | |||
| ) | const [virtual] |
Implements TGLCamera.
Definition at line 216 of file TGLOrthoCamera.cxx.
References TGLMatrix::Arr(), TGLRect::CArr(), TGLCamera::fCacheDirty, TGLCamera::fCamBase, TGLCamera::fCamTrans, fDefXSize, fDefYSize, TGLCamera::fDollyDefault, TGLCamera::fFarClip, TGLCamera::fLastNoPickProjM, TGLCamera::fNearClip, TGLCamera::fViewport, TGLMatrix::GetBaseVec(), TGLMatrix::GetTranslation(), GL_MODELVIEW, GL_PROJECTION, GL_PROJECTION_MATRIX, glGetDoublev(), glLoadIdentity(), glMatrixMode(), glOrtho(), glViewport(), TGLRect::Height(), TGLCamera::UpdateCache(), TGLRect::Width(), TGLCamera::WindowToViewport(), TGLRect::X(), and TGLRect::Y().
| void TGLOrthoCamera::Configure | ( | Double_t | zoom, | |
| Double_t | dolly, | |||
| Double_t | center[3], | |||
| Double_t | hRotate, | |||
| Double_t | vRotate | |||
| ) | [virtual] |
Implements TGLCamera.
Definition at line 290 of file TGLOrthoCamera.cxx.
References TGLCamera::fCamTrans, TGLCamera::IncTimeStamp(), TGLMatrix::MoveLF(), TGLCamera::RotateRad(), and TGLCamera::SetCenterVec().
Referenced by TEveLegoEventHandler::Rotate(), and TGLViewer::SetOrthoCamera().
| void TGLOrthoCamera::SetEnableRotate | ( | Bool_t | x | ) | [inline] |
Definition at line 79 of file TGLOrthoCamera.h.
References fEnableRotate.
Referenced by TGLSAViewer::ToggleOrthoRotate(), and SplitGLView::ToggleOrthoRotate().
| Bool_t TGLOrthoCamera::GetEnableRotate | ( | ) | const [inline] |
Definition at line 80 of file TGLOrthoCamera.h.
References fEnableRotate.
Referenced by SplitGLView::OnViewerActivated().
| Double_t TGLOrthoCamera::GetZoomMin | ( | ) | const [inline] |
| Double_t TGLOrthoCamera::GetZoomMax | ( | ) | const [inline] |
| void TGLOrthoCamera::SetZoomMin | ( | Double_t | z | ) |
Definition at line 163 of file TGLOrthoCamera.cxx.
References TGLCamera::IncTimeStamp().
Referenced by SetZoomMinMax().
| void TGLOrthoCamera::SetZoomMax | ( | Double_t | z | ) |
Definition at line 176 of file TGLOrthoCamera.cxx.
References TGLCamera::IncTimeStamp().
Referenced by SetZoomMinMax().
Definition at line 86 of file TGLOrthoCamera.h.
References SetZoomMax(), and SetZoomMin().
Referenced by projection(), and projection_prescale().
| void TGLOrthoCamera::SetDollyToZoom | ( | Bool_t | x | ) | [inline] |
Definition at line 88 of file TGLOrthoCamera.h.
References fDollyToZoom.
Referenced by SplitGLView::ToggleOrthoDolly(), and TGLSAViewer::ToggleOrthoDolly().
| Bool_t TGLOrthoCamera::GetDollyToZoom | ( | ) | const [inline] |
Definition at line 89 of file TGLOrthoCamera.h.
References fDollyToZoom.
Referenced by SplitGLView::OnViewerActivated().
| virtual Bool_t TGLOrthoCamera::IsOrthographic | ( | ) | const [inline, virtual] |
| virtual void TGLOrthoCamera::Setup | ( | const TGLBoundingBox & | box, | |
| Bool_t | reset = kTRUE | |||
| ) | [virtual] |
Implements TGLCamera.
| virtual void TGLOrthoCamera::Reset | ( | ) | [virtual] |
Implements TGLCamera.
Reimplemented from TGLCamera.
Implements TGLCamera.
| virtual Bool_t TGLOrthoCamera::Truck | ( | Int_t | xDelta, | |
| Int_t | yDelta, | |||
| Bool_t | mod1, | |||
| Bool_t | mod2 | |||
| ) | [virtual] |
Implements TGLCamera.
| virtual Bool_t TGLOrthoCamera::Rotate | ( | Int_t | xDelta, | |
| Int_t | yDelta, | |||
| Bool_t | mod1, | |||
| Bool_t | mod2 | |||
| ) | [virtual] |
Reimplemented from TGLCamera.
| virtual void TGLOrthoCamera::Apply | ( | const TGLBoundingBox & | sceneBox, | |
| const TGLRect * | pickRect = 0 | |||
| ) | const [virtual] |
Implements TGLCamera.
| virtual void TGLOrthoCamera::Configure | ( | Double_t | zoom, | |
| Double_t | dolly, | |||
| Double_t | center[3], | |||
| Double_t | hRotate, | |||
| Double_t | vRotate | |||
| ) | [virtual] |
Implements TGLCamera.
| void TGLOrthoCamera::SetEnableRotate | ( | Bool_t | x | ) | [inline] |
| Bool_t TGLOrthoCamera::GetEnableRotate | ( | ) | const [inline] |
| Double_t TGLOrthoCamera::GetZoomMin | ( | ) | const [inline] |
| Double_t TGLOrthoCamera::GetZoomMax | ( | ) | const [inline] |
| void TGLOrthoCamera::SetZoomMin | ( | Double_t | z | ) |
| void TGLOrthoCamera::SetZoomMax | ( | Double_t | z | ) |
| void TGLOrthoCamera::SetDollyToZoom | ( | Bool_t | x | ) | [inline] |
| Bool_t TGLOrthoCamera::GetDollyToZoom | ( | ) | const [inline] |
EType TGLOrthoCamera::fType [private] |
Bool_t TGLOrthoCamera::fEnableRotate [private] |
camera type
Definition at line 43 of file TGLOrthoCamera.h.
Referenced by GetEnableRotate(), Rotate(), and SetEnableRotate().
Bool_t TGLOrthoCamera::fDollyToZoom [private] |
enable rotation
Definition at line 44 of file TGLOrthoCamera.h.
Referenced by Dolly(), GetDollyToZoom(), and SetDollyToZoom().
Double_t TGLOrthoCamera::fZoomMin [private] |
zoom when dolly is requested
Definition at line 47 of file TGLOrthoCamera.h.
Referenced by GetZoomMin().
Double_t TGLOrthoCamera::fZoomDefault [private] |
Double_t TGLOrthoCamera::fZoomMax [private] |
TGLBoundingBox TGLOrthoCamera::fVolume [private] |
Double_t TGLOrthoCamera::fDefXSize [private] |
Double_t TGLOrthoCamera::fDefYSize [private] |
Double_t TGLOrthoCamera::fZoom [private] |
static UInt_t TGLOrthoCamera::fgZoomDeltaSens [static, private] |
1.5.1