Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGeoHypeEditor.h
Go to the documentation of this file.
1// @(#):$Id$
2// Author: M.Gheata
3/*************************************************************************
4 * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers. *
5 * All rights reserved. *
6 * *
7 * For the licensing terms see $ROOTSYS/LICENSE. *
8 * For the list of contributors see $ROOTSYS/README/CREDITS. *
9 *************************************************************************/
10
11#ifndef ROOT_TGeoHypeEditor
12#define ROOT_TGeoHypeEditor
13
14#include "TGWidget.h"
15#include "TGeoGedFrame.h"
16
17class TGeoHype;
18class TGeoTabManager;
19class TGTextEntry;
20class TGNumberEntry;
21class TGTab;
22class TGComboBox;
23class TGTextButton;
24class TGCheckButton;
25class TString;
26
28
29protected:
30
31 Double_t fRini; // Initial inner radius
32 Double_t fRouti; // Initial outer radius
33 Double_t fDzi; // Initial half length Dz
34 Double_t fStIni; // Initial stereo angle for inner surface
35 Double_t fStOuti; // Initial stereo angle for outer surface
36 TString fNamei; // Initial name
37 TGeoHype *fShape; // Shape object
38 Bool_t fIsModified; // Flag that volume was modified
39 Bool_t fIsShapeEditable; // Flag that the shape can be changed
40
41 TGTextEntry *fShapeName; // Shape name text entry
42 TGNumberEntry *fERin; // Number entry for Rin
43 TGNumberEntry *fERout; // Number entry for Rout
44 TGNumberEntry *fEDz; // Number entry for Dz
45 TGNumberEntry *fEStIn; // Number entry for StIn
46 TGNumberEntry *fEStOut; // Number entry for StOut
47 TGTextButton *fApply; // Apply-Button to accept changes
48 TGTextButton *fUndo; // Undo-Button
49 TGCheckButton *fDelayed; // Check button for delayed draw
50
51 virtual void ConnectSignals2Slots(); // Connect the signals to the slots
52 Bool_t IsDelayed() const;
53
54public:
55 TGeoHypeEditor(const TGWindow *p = 0,
56 Int_t width = 140, Int_t height = 30,
57 UInt_t options = kChildFrame,
59 virtual ~TGeoHypeEditor();
60 virtual void SetModel(TObject *obj);
61
62 void DoRin();
63 void DoRout();
64 void DoDz();
65 void DoStIn();
66 void DoStOut();
67 void DoModified();
68 void DoName();
69 void DoApply();
70 void DoUndo();
71
72 ClassDef(TGeoHypeEditor,0) // TGeoHype editor
73};
74
75#endif
@ kChildFrame
Definition GuiTypes.h:379
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:40
double Double_t
Definition RtypesCore.h:59
#define ClassDef(name, id)
Definition Rtypes.h:325
include TDocParser_001 C image html pict1_TDocParser_001 png width
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition TGFrame.cxx:668
Definition TGTab.h:62
Common base class for geombuilder editors.
Editor for a TGeoHype.
void DoUndo()
Slot for undoing last operation.
TGTextEntry * fShapeName
Bool_t IsDelayed() const
Check if shape drawing is delayed.
virtual void ConnectSignals2Slots()
Connect signals to slots.
virtual void SetModel(TObject *obj)
Connect to the selected object.
TGeoHype * fShape
TGCheckButton * fDelayed
TGNumberEntry * fEStIn
void DoRin()
Slot for Rin.
TGTextButton * fUndo
void DoRout()
Slot for Rout.
void DoModified()
Slot for notifying modifications.
TGNumberEntry * fEStOut
void DoStOut()
Slot for StOut.
TGTextButton * fApply
TGNumberEntry * fERout
void DoName()
Slot for name.
TGNumberEntry * fEDz
void DoDz()
Slot for Z.
void DoStIn()
Slot for StIn.
Bool_t fIsShapeEditable
void DoApply()
Slot for applying current settings.
TGNumberEntry * fERin
virtual ~TGeoHypeEditor()
Destructor.
Hyperboloid class defined by 5 parameters.
Definition TGeoHype.h:18
Manager for all editor tabs.
Mother of all ROOT objects.
Definition TObject.h:37
Basic string class.
Definition TString.h:136