ROOT logo
// @(#):$Id: TGeoHypeEditor.h 20882 2007-11-19 11:31:26Z rdm $
// Author: M.Gheata 
/*************************************************************************
 * Copyright (C) 1995-2002, 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_TGeoHypeEditor
#define ROOT_TGeoHypeEditor

//////////////////////////////////////////////////////////////////////////
//                                                                      //
//  TGeoHypeEditor                                                      //
//                                                                      //
//  Editor for a TGeoHype.                                              //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_TGButton
#include "TGWidget.h"
#endif
#ifndef ROOT_TGeoGedFrame
#include "TGeoGedFrame.h"
#endif

class TGeoHype;
class TGeoTabManager;
class TGTextEntry;
class TGNumberEntry;
class TGTab;
class TGComboBox;
class TGTextButton;
class TGCheckButton;
class TString;

class TGeoHypeEditor : public TGeoGedFrame {

protected:

   Double_t             fRini;              // Initial  inner radius 
   Double_t             fRouti;             // Initial  outer radius 
   Double_t             fDzi;               // Initial  half length Dz
   Double_t             fStIni;             // Initial  stereo angle for inner surface
   Double_t             fStOuti;            // Initial  stereo angle for outer surface
   TString              fNamei;             // Initial name
   TGeoHype            *fShape;             // Shape object
   Bool_t               fIsModified;        // Flag that volume was modified
   Bool_t               fIsShapeEditable;   // Flag that the shape can be changed

   TGTextEntry         *fShapeName;         // Shape name text entry
   TGNumberEntry       *fERin;              // Number entry for  Rin
   TGNumberEntry       *fERout;             // Number entry for  Rout
   TGNumberEntry       *fEDz;               // Number entry for  Dz
   TGNumberEntry       *fEStIn;             // Number entry for  StIn
   TGNumberEntry       *fEStOut;            // Number entry for  StOut
   TGTextButton        *fApply;             // Apply-Button to accept changes
   TGTextButton        *fUndo;              // Undo-Button
   TGCheckButton       *fDelayed;           // Check button for delayed draw

   virtual void ConnectSignals2Slots();   // Connect the signals to the slots
   Bool_t       IsDelayed() const;   

public:
   TGeoHypeEditor(const TGWindow *p = 0,
                   Int_t width = 140, Int_t height = 30,
                   UInt_t options = kChildFrame,
                   Pixel_t back = GetDefaultFrameBackground());
   virtual ~TGeoHypeEditor();
   virtual void   SetModel(TObject *obj);

   void           DoRin();
   void           DoRout();
   void           DoDz();
   void           DoStIn();
   void           DoStOut();
   void           DoModified();
   void           DoName();
   void           DoApply();
   void           DoUndo();
   
   ClassDef(TGeoHypeEditor,0)   // TGeoHype editor
};   
  
#endif                    
 TGeoHypeEditor.h:1
 TGeoHypeEditor.h:2
 TGeoHypeEditor.h:3
 TGeoHypeEditor.h:4
 TGeoHypeEditor.h:5
 TGeoHypeEditor.h:6
 TGeoHypeEditor.h:7
 TGeoHypeEditor.h:8
 TGeoHypeEditor.h:9
 TGeoHypeEditor.h:10
 TGeoHypeEditor.h:11
 TGeoHypeEditor.h:12
 TGeoHypeEditor.h:13
 TGeoHypeEditor.h:14
 TGeoHypeEditor.h:15
 TGeoHypeEditor.h:16
 TGeoHypeEditor.h:17
 TGeoHypeEditor.h:18
 TGeoHypeEditor.h:19
 TGeoHypeEditor.h:20
 TGeoHypeEditor.h:21
 TGeoHypeEditor.h:22
 TGeoHypeEditor.h:23
 TGeoHypeEditor.h:24
 TGeoHypeEditor.h:25
 TGeoHypeEditor.h:26
 TGeoHypeEditor.h:27
 TGeoHypeEditor.h:28
 TGeoHypeEditor.h:29
 TGeoHypeEditor.h:30
 TGeoHypeEditor.h:31
 TGeoHypeEditor.h:32
 TGeoHypeEditor.h:33
 TGeoHypeEditor.h:34
 TGeoHypeEditor.h:35
 TGeoHypeEditor.h:36
 TGeoHypeEditor.h:37
 TGeoHypeEditor.h:38
 TGeoHypeEditor.h:39
 TGeoHypeEditor.h:40
 TGeoHypeEditor.h:41
 TGeoHypeEditor.h:42
 TGeoHypeEditor.h:43
 TGeoHypeEditor.h:44
 TGeoHypeEditor.h:45
 TGeoHypeEditor.h:46
 TGeoHypeEditor.h:47
 TGeoHypeEditor.h:48
 TGeoHypeEditor.h:49
 TGeoHypeEditor.h:50
 TGeoHypeEditor.h:51
 TGeoHypeEditor.h:52
 TGeoHypeEditor.h:53
 TGeoHypeEditor.h:54
 TGeoHypeEditor.h:55
 TGeoHypeEditor.h:56
 TGeoHypeEditor.h:57
 TGeoHypeEditor.h:58
 TGeoHypeEditor.h:59
 TGeoHypeEditor.h:60
 TGeoHypeEditor.h:61
 TGeoHypeEditor.h:62
 TGeoHypeEditor.h:63
 TGeoHypeEditor.h:64
 TGeoHypeEditor.h:65
 TGeoHypeEditor.h:66
 TGeoHypeEditor.h:67
 TGeoHypeEditor.h:68
 TGeoHypeEditor.h:69
 TGeoHypeEditor.h:70
 TGeoHypeEditor.h:71
 TGeoHypeEditor.h:72
 TGeoHypeEditor.h:73
 TGeoHypeEditor.h:74
 TGeoHypeEditor.h:75
 TGeoHypeEditor.h:76
 TGeoHypeEditor.h:77
 TGeoHypeEditor.h:78
 TGeoHypeEditor.h:79
 TGeoHypeEditor.h:80
 TGeoHypeEditor.h:81
 TGeoHypeEditor.h:82
 TGeoHypeEditor.h:83
 TGeoHypeEditor.h:84
 TGeoHypeEditor.h:85
 TGeoHypeEditor.h:86
 TGeoHypeEditor.h:87