TGLOrthoCamera Class Reference

#include <TGLOrthoCamera.h>

Inheritance diagram for TGLOrthoCamera:

TGLCamera TGLCamera List of all members.

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

Detailed Description

Definition at line 35 of file TGLOrthoCamera.h.


Member Enumeration Documentation

enum TGLOrthoCamera::EType

Definition at line 38 of file TGLOrthoCamera.h.

enum TGLOrthoCamera::EType

Definition at line 38 of file TGLOrthoCamera.h.


Constructor & Destructor Documentation

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]


Member Function Documentation

virtual Bool_t TGLOrthoCamera::IsOrthographic (  )  const [inline, virtual]

Reimplemented from TGLCamera.

Definition at line 62 of file TGLOrthoCamera.h.

References kTRUE.

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().

Bool_t TGLOrthoCamera::Dolly ( Int_t  delta,
Bool_t  mod1,
Bool_t  mod2 
) [virtual]

Reimplemented from TGLCamera.

Definition at line 123 of file TGLOrthoCamera.cxx.

References TGLCamera::Dolly(), fDollyToZoom, and Zoom().

Bool_t TGLOrthoCamera::Zoom ( Int_t  delta,
Bool_t  mod1,
Bool_t  mod2 
) [virtual]

Implements TGLCamera.

Definition at line 137 of file TGLOrthoCamera.cxx.

References TGLCamera::AdjustAndClampVal(), and TGLCamera::IncTimeStamp().

Referenced by Dolly().

Bool_t TGLOrthoCamera::Truck ( Int_t  xDelta,
Int_t  yDelta,
Bool_t  mod1,
Bool_t  mod2 
) [virtual]

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().

Bool_t TGLOrthoCamera::Rotate ( Int_t  xDelta,
Int_t  yDelta,
Bool_t  mod1,
Bool_t  mod2 
) [virtual]

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]

Definition at line 82 of file TGLOrthoCamera.h.

References fZoomMin.

Double_t TGLOrthoCamera::GetZoomMax (  )  const [inline]

Definition at line 83 of file TGLOrthoCamera.h.

References fZoomMax.

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().

void TGLOrthoCamera::SetZoomMinMax ( Double_t  min,
Double_t  max 
) [inline]

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]

Reimplemented from TGLCamera.

Definition at line 62 of file TGLOrthoCamera.h.

References kTRUE.

virtual void TGLOrthoCamera::Setup ( const TGLBoundingBox box,
Bool_t  reset = kTRUE 
) [virtual]

Implements TGLCamera.

virtual void TGLOrthoCamera::Reset (  )  [virtual]

Implements TGLCamera.

virtual Bool_t TGLOrthoCamera::Dolly ( Int_t  delta,
Bool_t  mod1,
Bool_t  mod2 
) [virtual]

Reimplemented from TGLCamera.

virtual Bool_t TGLOrthoCamera::Zoom ( Int_t  delta,
Bool_t  mod1,
Bool_t  mod2 
) [virtual]

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]

Definition at line 79 of file TGLOrthoCamera.h.

References fEnableRotate.

Bool_t TGLOrthoCamera::GetEnableRotate (  )  const [inline]

Definition at line 80 of file TGLOrthoCamera.h.

References fEnableRotate.

Double_t TGLOrthoCamera::GetZoomMin (  )  const [inline]

Definition at line 82 of file TGLOrthoCamera.h.

References fZoomMin.

Double_t TGLOrthoCamera::GetZoomMax (  )  const [inline]

Definition at line 83 of file TGLOrthoCamera.h.

References fZoomMax.

void TGLOrthoCamera::SetZoomMin ( Double_t  z  ) 

void TGLOrthoCamera::SetZoomMax ( Double_t  z  ) 

void TGLOrthoCamera::SetZoomMinMax ( Double_t  min,
Double_t  max 
) [inline]

Definition at line 86 of file TGLOrthoCamera.h.

References SetZoomMax(), and SetZoomMin().

void TGLOrthoCamera::SetDollyToZoom ( Bool_t  x  )  [inline]

Definition at line 88 of file TGLOrthoCamera.h.

References fDollyToZoom.

Bool_t TGLOrthoCamera::GetDollyToZoom (  )  const [inline]

Definition at line 89 of file TGLOrthoCamera.h.

References fDollyToZoom.


Member Data Documentation

EType TGLOrthoCamera::fType [private]

Definition at line 42 of file TGLOrthoCamera.h.

Referenced by Reset().

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]

minimum zoom factor

Definition at line 48 of file TGLOrthoCamera.h.

Double_t TGLOrthoCamera::fZoomMax [private]

default zoom factor

Definition at line 49 of file TGLOrthoCamera.h.

Referenced by GetZoomMax().

TGLBoundingBox TGLOrthoCamera::fVolume [private]

maximum zoom factor

Definition at line 50 of file TGLOrthoCamera.h.

Referenced by Reset(), and Setup().

Double_t TGLOrthoCamera::fDefXSize [private]

scene volume

Definition at line 53 of file TGLOrthoCamera.h.

Referenced by Apply(), and Reset().

Double_t TGLOrthoCamera::fDefYSize [private]

Definition at line 53 of file TGLOrthoCamera.h.

Referenced by Apply(), and Reset().

Double_t TGLOrthoCamera::fZoom [private]

x, y size of scene from camera view

Definition at line 54 of file TGLOrthoCamera.h.

static UInt_t TGLOrthoCamera::fgZoomDeltaSens [static, private]

current zoom

Definition at line 56 of file TGLOrthoCamera.h.


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