139 std::pair<Bool_t, TGLVertex3> intersection;
void SetAligned(const TGLVertex3 &lowVertex, const TGLVertex3 &highVertex)
Set ALIGNED box from two low/high vertices.
ClassImp(TEveLegoEventHandler)
A base class of TGLEventHandler.
Abstract base camera class - concrete classes for orthographic and perspective cameras derive from it...
TGLVector3 GetTranslation() const
Return the translation component of matrix.
16 component (4x4) transform matrix - column MAJOR as per GL.
const Double_t * CArr() const
Double_t AdjustDelta(Double_t screenShift, Double_t deltaFactor, Bool_t mod1, Bool_t mod2) const
Adjust a passed screen value and apply modifiers.
TGLRnrCtx * GetRnrCtx() const
Double_t GetTheta() const
Get angle between camera up axis.
TGLVertex3 Center() const
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Perspective projection camera - with characteristic foreshortening.
const TGLMatrix & GetCamBase() const
TEveLegoEventHandler(const TEveLegoEventHandler &)
virtual Bool_t IsOrthographic() const
void Transform(const TGLMatrix &matrix)
Transform all vertices with matrix.
3 component (x/y/z) vertex class.
void Sort(Index n, const Element *a, Index *index, Bool_t down=kTRUE)
const TGLMatrix & GetCamTrans() const
virtual Bool_t Rotate(Int_t xDelta, Int_t yDelta, Bool_t mod1, Bool_t mod2)
Rotate the camera round view volume center established in Setup().
3 component (x/y/z) vector class.
void SetCenterVecWarp(Double_t x, Double_t y, Double_t z)
Set camera center vector and do not keep the same combined camera transformation matrix.
TGLVector3 Extents() const
virtual Bool_t HandleKey(Event_t *event)
Virtual from TGLEventHandler.
virtual void Setup(const TGLBoundingBox &box, Bool_t reset=kTRUE)
Setup camera limits suitable to view the world volume defined by 'box' and call Reset() to initialise...
virtual void Setup(const TGLBoundingBox &box, Bool_t reset=kTRUE)
Setup camera limits suitable to view the world volume defined by 'box' and call Reset() to initialise...
TGLVector3 GetBaseVec(Int_t b) const
TGLCamera & CurrentCamera() const
3D space, fixed length, line class, with direction / length 'vector', passing through point 'vertex'...
virtual Bool_t Truck(Int_t xDelta, Int_t yDelta, Bool_t mod1, Bool_t mod2)
Truck the camera - 'move camera parallel to film plane'.
Visualization of calorimeter data as eta/phi histogram.
Float_t GetVAxisMinAngle()
virtual void Configure(Double_t fov, Double_t dolly, Double_t center[3], Double_t hRotate, Double_t vRotate)
Configure the camera state.
virtual Bool_t Rotate(Int_t xDelta, Int_t yDelta, Bool_t mod1, Bool_t mod2)
Method to handle action TGLViewer::kDragCameraRotate.
Base-class and default implementation of event-handler for TGLViewer.
void SetCurrentCamera(ECameraType camera)
Set current active camera - 'cameraType' one of: kCameraPerspX, kCameraPerspY, kCameraPerspZ, kCameraOrthoXOY, kCameraOrthoXOZ, kCameraOrthoZOY, kCameraOrthoXnOY, kCameraOrthoXnOZ, kCameraOrthoZnOY.
Double_t Hypot(Double_t x, Double_t y)
virtual void Configure(Double_t zoom, Double_t dolly, Double_t center[3], Double_t hRotate, Double_t vRotate)
Configure the camera state.
Orthographic projection camera.
Mother of all ROOT objects.
Concrete class describing an orientated (free) or axis aligned box of 8 vertices. ...
virtual TEveTrans & RefMainTrans()
Return reference to main transformation.
virtual Bool_t Rotate(Int_t xDelta, Int_t yDelta, Bool_t mod1, Bool_t mod2)
Method to handle action TGLViewer::kDragCameraRotate.
const TGLPlane & FrustumPlane(EFrustumPlane plane) const
3D plane class - of format Ax + By + Cz + D = 0
virtual Bool_t HandleKey(Event_t *event)
Handle keyboard 'event'.
std::pair< Bool_t, TGLLine3 > Intersection(const TGLPlane &p1, const TGLPlane &p2)
Find 3D line interestion of this plane with 'other'.