Warning, file /include/root/TGLEmbeddedViewer.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROOT_TGLEmbeddedViewer
0013 #define ROOT_TGLEmbeddedViewer
0014
0015 #include "TGFrame.h"
0016
0017 #include "TGLViewer.h"
0018
0019 class TGLRenderArea;
0020 class TGLEventHandler;
0021 class TGedEditor;
0022
0023 class TGLEmbeddedViewer : public TGLViewer
0024 {
0025 private:
0026
0027 TGCompositeFrame *fFrame;
0028 Int_t fBorder;
0029
0030 void Init(const TGWindow *parent);
0031 void CreateFrames();
0032
0033 TGLEmbeddedViewer(const TGLEmbeddedViewer&) = delete;
0034 TGLEmbeddedViewer& operator=(const TGLEmbeddedViewer&) = delete;
0035
0036 public:
0037 TGLEmbeddedViewer(const TGWindow *parent, TVirtualPad *pad = nullptr, Int_t border=2);
0038 TGLEmbeddedViewer(const TGWindow *parent, TVirtualPad *pad, TGedEditor *ged, Int_t border=2);
0039 ~TGLEmbeddedViewer() override;
0040
0041 void CreateGLWidget() override;
0042 void DestroyGLWidget() override;
0043
0044 const char *GetName() const override { return "GLViewer"; }
0045
0046 TGCompositeFrame* GetFrame() const { return fFrame; }
0047
0048 TGLOrthoCamera *GetOrthoXOYCamera() { return &fOrthoXOYCamera; }
0049 TGLOrthoCamera *GetOrthoXOZCamera() { return &fOrthoXOZCamera; }
0050 TGLOrthoCamera *GetOrthoZOYCamera() { return &fOrthoZOYCamera; }
0051 TGLOrthoCamera *GetOrthoZOXCamera() { return &fOrthoZOXCamera; }
0052
0053 ClassDefOverride(TGLEmbeddedViewer, 0);
0054 };
0055
0056 #endif