/usr/include/root/TGLViewerEditor.h is in libroot-graf3d-gl-dev 5.34.14-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 | // @(#)root/gl:$Id$
// Author: Alja Mrak-Tadel, Matevz Tadel, Timur Pocheptsov 08/03/2006
/*************************************************************************
* Copyright (C) 1995-2006, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TGLViewerEditor
#define ROOT_TGLViewerEditor
#include <memory>
#ifndef ROOT_TGedFrame
#include "TGedFrame.h"
#endif
#ifndef ROOT_TGLUtil
#include "TGLUtil.h"
#endif
class TGCheckButton;
class TGNumberEntry;
class TGButtonGroup;
class TGroupFrame;
class TGRadioButton;
class TGColorSelect;
class TGComboBox;
class TGButton;
class TGTextEntry;
class TGLViewer;
class TGTab;
class TGLLightSetSubEditor;
class TGLClipSetSubEditor;
class TGLViewerEditor : public TGedFrame
{
private:
//Pointers to manipulate with tabs
TGCompositeFrame *fGuidesFrame;
TGCompositeFrame *fClipFrame;
TGCompositeFrame *fStereoFrame;
TGLLightSetSubEditor *fLightSet;
TGColorSelect *fClearColor;
TGCheckButton *fIgnoreSizesOnUpdate;
TGCheckButton *fResetCamerasOnUpdate;
TGTextButton *fUpdateScene;
TGTextButton *fCameraHome;
TGNumberEntry *fMaxSceneDrawTimeHQ;
TGNumberEntry *fMaxSceneDrawTimeLQ;
TGNumberEntry *fPointSizeScale;
TGNumberEntry *fLineWidthScale;
TGCheckButton *fPointSmooth;
TGCheckButton *fLineSmooth;
TGNumberEntry *fWFLineWidth;
TGNumberEntry *fOLLineWidth;
//"Guides" tab's controls
TGCheckButton *fCameraCenterExt;
TGTextButton *fCaptureCenter;
TGCheckButton *fDrawCameraCenter;
TGNumberEntry *fCameraCenterX;
TGNumberEntry *fCameraCenterY;
TGNumberEntry *fCameraCenterZ;
TGCheckButton* fCaptureAnnotate;
Int_t fAxesType;
TGButtonGroup *fAxesContainer;
TGRadioButton *fAxesNone;
TGRadioButton *fAxesEdge;
TGRadioButton *fAxesOrigin;
TGCheckButton *fAxesDepthTest;
TGGroupFrame *fRefContainer;
TGCheckButton *fReferenceOn;
TGNumberEntry *fReferencePosX;
TGNumberEntry *fReferencePosY;
TGNumberEntry *fReferencePosZ;
TGGroupFrame *fCamContainer;
TGComboBox* fCamMode;
TGCheckButton* fCamOverlayOn;
TGLClipSetSubEditor *fClipSet;
TGNumberEntry *fARotDt, *fARotWPhi;
TGNumberEntry *fARotATheta, *fARotWTheta;
TGNumberEntry *fARotADolly, *fARotWDolly;
TGTextEntry *fASavImageGUIBaseName;
TGButtonGroup *fASavImageGUIOutMode;
TGNumberEntry *fStereoZeroParallax;
TGNumberEntry *fStereoEyeOffsetFac;
TGNumberEntry *fStereoFrustumAsymFac;
// Model
TGLViewer *fViewer;
Bool_t fIsInPad;
void ConnectSignals2Slots();
TGLViewerEditor(const TGLViewerEditor &);
TGLViewerEditor &operator = (const TGLViewerEditor &);
void CreateStyleTab();
void CreateGuidesTab();
void CreateClippingTab();
void CreateExtrasTab();
void UpdateReferencePosState();
public:
TGLViewerEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30,
UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
~TGLViewerEditor();
virtual void ViewerRedraw();
virtual void SetModel(TObject* obj);
void SetGuides();
void DoClearColor(Pixel_t color);
void DoIgnoreSizesOnUpdate();
void DoResetCamerasOnUpdate();
void DoUpdateScene();
void DoCameraHome();
void UpdateMaxDrawTimes();
void UpdatePointLineStuff();
void DoCameraCenterExt();
void DoCaptureCenter();
void DoAnnotation();
void DoDrawCameraCenter();
void UpdateCameraCenter();
// Axis manipulation
void UpdateViewerAxes(Int_t id);
void UpdateViewerReference();
void DoCameraOverlay();
// Extras
void UpdateRotator();
void DoRotatorStart();
void DoRotatorStop();
void DoASavImageGUIBaseName(const char* t);
void DoASavImageGUIOutMode(Int_t m);
void DoASavImageStart();
void DoASavImageStop();
void UpdateStereo();
void DetachFromPad(){fIsInPad = kFALSE;}
static TGNumberEntry* MakeLabeledNEntry(TGCompositeFrame* p, const char* name,
Int_t labelw, Int_t nd=7, Int_t s=5);
ClassDef(TGLViewerEditor, 0); //GUI for editing TGLViewer attributes
};
#endif
|