Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:11:58

0001 // @(#)root/gl:$Id$
0002 // Author:  Matevz Tadel, Jun 2007
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TGLClipSetEditor
0013 #define ROOT_TGLClipSetEditor
0014 
0015 #include "TGedFrame.h"
0016 #include "TGLUtil.h"
0017 
0018 #include "TGLClip.h"
0019 
0020 class TGButton;
0021 class TGCheckButton;
0022 class TGNumberEntry;
0023 class TGButtonGroup;
0024 
0025 
0026 class TGLClipSetSubEditor : public TGVerticalFrame
0027 {
0028 private:
0029    TGLClipSetSubEditor(const TGLClipSetSubEditor&) = delete;
0030    TGLClipSetSubEditor& operator=(const TGLClipSetSubEditor&) = delete;
0031 
0032 protected:
0033    TGLClipSet       *fM;
0034 
0035    TGLClip::EType    fCurrentClip;
0036    TGButtonGroup    *fTypeButtons;
0037 
0038    TGCompositeFrame *fPlanePropFrame;
0039    TGNumberEntry    *fPlaneProp[4];
0040 
0041    TGCompositeFrame *fBoxPropFrame;
0042    TGNumberEntry    *fBoxProp[6];
0043    TGCheckButton    *fClipInside;
0044    TGCheckButton    *fAutoUpdate;
0045    TGCheckButton    *fClipEdit;
0046    TGCheckButton    *fClipShow;
0047    TGButton         *fApplyButton;
0048    TGButton         *fResetButton;
0049 
0050 public:
0051    TGLClipSetSubEditor(const TGWindow* p);
0052    ~TGLClipSetSubEditor() override {}
0053 
0054    void SetModel(TGLClipSet* m);
0055 
0056    void Changed(); //*SIGNAL*
0057 
0058    //Clipping manipulation
0059    void ClipValueChanged();
0060    void ClipTypeChanged(Int_t);
0061    void UpdateViewerClip();
0062    void ResetViewerClip();
0063 
0064    ClassDefOverride(TGLClipSetSubEditor, 0); // Sub-editor for TGLClipSet.
0065 };
0066 
0067 
0068 class TGLClipSetEditor : public TGedFrame {
0069 
0070 private:
0071    TGLClipSetEditor(const TGLClipSetEditor&) = delete;
0072    TGLClipSetEditor& operator=(const TGLClipSetEditor&) = delete;
0073 
0074 protected:
0075    TGLClipSet           *fM;  // fModel dynamic-casted to TGLClipSet
0076    TGLClipSetSubEditor  *fSE;
0077 
0078 public:
0079    TGLClipSetEditor(const TGWindow *p = nullptr, Int_t width=170, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
0080    ~TGLClipSetEditor() override {}
0081 
0082    void SetModel(TObject* obj) override;
0083 
0084    ClassDefOverride(TGLClipSetEditor, 0); // GUI editor for TGLClipSet.
0085 };
0086 
0087 #endif