12#ifndef ROOT_TGLOrthoCamera
13#define ROOT_TGLOrthoCamera
66 void Reset()
override;
#define ClassDefOverride(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
Concrete class describing an orientated (free) or axis aligned box of 8 vertices.
Abstract base camera class - concrete classes for orthographic and perspective cameras derive from it...
virtual Bool_t Truck(Double_t xDelta, Double_t yDelta)
Truck the camera - 'move camera parallel to film plane'.
Orthographic projection camera.
~TGLOrthoCamera() override
Destroy orthographic camera.
void SetZoomMax(Double_t z)
Set maximum zoom factor.
Bool_t GetDollyToZoom() const
Bool_t Rotate(Int_t xDelta, Int_t yDelta, Bool_t mod1, Bool_t mod2) override
Rotate the camera - 'swivel round the view volume center'.
void SetDollyToZoom(Bool_t x)
Bool_t Zoom(Int_t delta, Bool_t mod1, Bool_t mod2) override
Zoom the camera - 'adjust lens focal length, retaining camera position'.
Double_t fZoom
x, y size of scene from camera view
Bool_t Truck(Int_t xDelta, Int_t yDelta, Bool_t mod1, Bool_t mod2) override
Truck the camera - 'move camera parallel to film plane'.
Bool_t GetEnableRotate() const
void SetEnableRotate(Bool_t x)
Double_t GetZoomMax() const
static UInt_t fgZoomDeltaSens
Bool_t Dolly(Int_t delta, Bool_t mod1, Bool_t mod2) override
Dolly the camera.
Double_t GetZoomMin() const
void Apply(const TGLBoundingBox &sceneBox, const TGLRect *pickRect=nullptr) const override
Apply the camera to the current GL context, setting the viewport, projection and modelview matrices.
void Reset() override
Reset the camera to defaults - trucking, zooming to reframe the world volume established in Setup().
void SetZoomMinMax(Double_t min, Double_t max)
Bool_t IsOrthographic() const override
TGLOrthoCamera()
Construct kXOY orthographic camera.
Double_t fDefXSize
scene volume
void Setup(const TGLBoundingBox &box, Bool_t reset=kTRUE) override
Setup camera limits suitable to view the world volume defined by 'box' and call Reset() to initialise...
void SetZoomMin(Double_t z)
Set minimum zoom factor.
void Configure(Double_t zoom, Double_t dolly, Double_t center[3], Double_t hRotate, Double_t vRotate) override
Configure the camera state.
Viewport (pixel base) 2D rectangle class.
3 component (x/y/z) vector class.
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)