Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGeoTorusEditor.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_TGeoTorusEditor
12#define ROOT_TGeoTorusEditor
13
14#include "TGWidget.h"
15#include "TGeoGedFrame.h"
16
17class TGeoTorus;
18class TGeoTabManager;
19class TGTextEntry;
20class TGNumberEntry;
21class TGTab;
22class TGComboBox;
23class TGTextButton;
24class TGCheckButton;
25class TString;
26
28
29protected:
30 Double_t fRi; // Initial axial radius
31 Double_t fRmini; // Initial inner radius
32 Double_t fRmaxi; // Initial outer radius
33 Double_t fPhi1i; // Initial starting phi1
34 Double_t fDphii; // Initial phi extent
35 TString fNamei; // Initial name
36 TGeoTorus *fShape; // Shape object
37 Bool_t fIsModified; // Flag that volume was modified
38 Bool_t fIsShapeEditable; // Flag that the shape can be changed
39
40 TGTextEntry *fShapeName; // Shape name text entry
41 TGNumberEntry *fER; // Number entry for R
42 TGNumberEntry *fERmin; // Number entry for Rmin
43 TGNumberEntry *fERmax; // Number entry for Rmax
44 TGNumberEntry *fEPhi1; // Number entry for phi1
45 TGNumberEntry *fEDphi; // Number entry for Dphi
46 TGTextButton *fApply; // Apply-Button to accept changes
47 TGTextButton *fUndo; // Undo-Button
48 TGCheckButton *fDelayed; // Check button for delayed draw
49
50 virtual void ConnectSignals2Slots(); // Connect the signals to the slots
51 Bool_t IsDelayed() const;
52
53public:
54 TGeoTorusEditor(const TGWindow *p = nullptr, Int_t width = 140, Int_t height = 30, UInt_t options = kChildFrame,
56 ~TGeoTorusEditor() override;
57 void SetModel(TObject *obj) override;
58
59 void DoR();
60 void DoRmin();
61 void DoRmax();
62 void DoPhi1();
63 void DoDphi();
64 void DoModified();
65 void DoName();
66 void DoApply();
67 void DoUndo();
68
69 ClassDefOverride(TGeoTorusEditor, 0) // TGeoTorus editor
70};
71
72#endif
@ kChildFrame
Definition GuiTypes.h:379
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:40
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t width
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
Selects different options.
Definition TGButton.h:264
A combobox (also known as a drop down listbox) allows the selection of one item out of a list of item...
Definition TGComboBox.h:47
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition TGFrame.cxx:683
TGNumberEntry is a number entry input widget with up/down buttons.
A tab widget contains a set of composite frames each with a little tab with a name (like a set of fol...
Definition TGTab.h:46
Yield an action as soon as it is clicked.
Definition TGButton.h:142
A TGTextEntry is a one line text input widget.
Definition TGTextEntry.h:24
ROOT GUI Window base class.
Definition TGWindow.h:23
Common base class for geombuilder editors.
Manager for all editor tabs.
Editor for a TGeoTorus.
TGTextButton * fApply
void DoRmax()
Slot for Rmax.
void DoR()
Slot for R.
void DoPhi1()
Slot for phi.
void DoRmin()
Slot for Rmin.
TGNumberEntry * fEDphi
void DoUndo()
Slot for undoing last operation.
void DoName()
Slot for name.
TGNumberEntry * fEPhi1
TGTextButton * fUndo
TGNumberEntry * fER
TGCheckButton * fDelayed
void DoDphi()
Slot for Dphi.
~TGeoTorusEditor() override
Destructor.
void SetModel(TObject *obj) override
Connect to the selected object.
void DoApply()
Slot for applying current settings.
TGNumberEntry * fERmin
void DoModified()
Slot for notifying modifications.
TGTextEntry * fShapeName
TGNumberEntry * fERmax
TGeoTorus * fShape
virtual void ConnectSignals2Slots()
Connect signals to slots.
Bool_t IsDelayed() const
Check if shape drawing is delayed.
The torus is defined by its axial radius, its inner and outer radius.
Definition TGeoTorus.h:17
Mother of all ROOT objects.
Definition TObject.h:41
Basic string class.
Definition TString.h:139