TGeoHypeEditor.h

Go to the documentation of this file.
00001 // @(#):$Id: TGeoHypeEditor.h 20882 2007-11-19 11:31:26Z rdm $
00002 // Author: M.Gheata 
00003 /*************************************************************************
00004  * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers.               *
00005  * All rights reserved.                                                  *
00006  *                                                                       *
00007  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00008  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00009  *************************************************************************/
00010 
00011 #ifndef ROOT_TGeoHypeEditor
00012 #define ROOT_TGeoHypeEditor
00013 
00014 //////////////////////////////////////////////////////////////////////////
00015 //                                                                      //
00016 //  TGeoHypeEditor                                                      //
00017 //                                                                      //
00018 //  Editor for a TGeoHype.                                              //
00019 //                                                                      //
00020 //////////////////////////////////////////////////////////////////////////
00021 
00022 #ifndef ROOT_TGButton
00023 #include "TGWidget.h"
00024 #endif
00025 #ifndef ROOT_TGeoGedFrame
00026 #include "TGeoGedFrame.h"
00027 #endif
00028 
00029 class TGeoHype;
00030 class TGeoTabManager;
00031 class TGTextEntry;
00032 class TGNumberEntry;
00033 class TGTab;
00034 class TGComboBox;
00035 class TGTextButton;
00036 class TGCheckButton;
00037 class TString;
00038 
00039 class TGeoHypeEditor : public TGeoGedFrame {
00040 
00041 protected:
00042 
00043    Double_t             fRini;              // Initial  inner radius 
00044    Double_t             fRouti;             // Initial  outer radius 
00045    Double_t             fDzi;               // Initial  half length Dz
00046    Double_t             fStIni;             // Initial  stereo angle for inner surface
00047    Double_t             fStOuti;            // Initial  stereo angle for outer surface
00048    TString              fNamei;             // Initial name
00049    TGeoHype            *fShape;             // Shape object
00050    Bool_t               fIsModified;        // Flag that volume was modified
00051    Bool_t               fIsShapeEditable;   // Flag that the shape can be changed
00052 
00053    TGTextEntry         *fShapeName;         // Shape name text entry
00054    TGNumberEntry       *fERin;              // Number entry for  Rin
00055    TGNumberEntry       *fERout;             // Number entry for  Rout
00056    TGNumberEntry       *fEDz;               // Number entry for  Dz
00057    TGNumberEntry       *fEStIn;             // Number entry for  StIn
00058    TGNumberEntry       *fEStOut;            // Number entry for  StOut
00059    TGTextButton        *fApply;             // Apply-Button to accept changes
00060    TGTextButton        *fUndo;              // Undo-Button
00061    TGCheckButton       *fDelayed;           // Check button for delayed draw
00062 
00063    virtual void ConnectSignals2Slots();   // Connect the signals to the slots
00064    Bool_t       IsDelayed() const;   
00065 
00066 public:
00067    TGeoHypeEditor(const TGWindow *p = 0,
00068                    Int_t width = 140, Int_t height = 30,
00069                    UInt_t options = kChildFrame,
00070                    Pixel_t back = GetDefaultFrameBackground());
00071    virtual ~TGeoHypeEditor();
00072    virtual void   SetModel(TObject *obj);
00073 
00074    void           DoRin();
00075    void           DoRout();
00076    void           DoDz();
00077    void           DoStIn();
00078    void           DoStOut();
00079    void           DoModified();
00080    void           DoName();
00081    void           DoApply();
00082    void           DoUndo();
00083    
00084    ClassDef(TGeoHypeEditor,0)   // TGeoHype editor
00085 };   
00086   
00087 #endif                    

Generated on Tue Jul 5 14:13:00 2011 for ROOT_528-00b_version by  doxygen 1.5.1