Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGeoSphereEditor.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_TGeoSphereEditor
12#define ROOT_TGeoSphereEditor
13
14#include "TGWidget.h"
15#include "TGeoGedFrame.h"
16
17class TGeoSphere;
18class TGeoTabManager;
19class TGTextEntry;
20class TGNumberEntry;
21class TGTab;
22class TGComboBox;
23class TGDoubleVSlider;
24class TGTextButton;
25class TGCheckButton;
26class TString;
27
29
30protected:
31 Double_t fRmini; // Initial inner radius
32 Double_t fRmaxi; // Initial outer radius
33 Double_t fTheta1i; // Initial lower theta limit
34 Double_t fTheta2i; // Initial higher theta limit
35 Double_t fPhi1i; // Initial lower phi limit
36 Double_t fPhi2i; // Initial higher phi limit
37 TString fNamei; // Initial name
38 TGeoSphere *fShape; // Shape object
39 Bool_t fIsModified; // Flag that volume was modified
40 Bool_t fIsShapeEditable; // Flag that the shape can be changed
41 Bool_t fLock; // Lock
42
43 TGTextEntry *fShapeName; // Shape name text entry
44 TGNumberEntry *fERmin; // Number entry for rmin
45 TGNumberEntry *fERmax; // Number entry for rmax
46 TGNumberEntry *fETheta1; // Number entry for Theta1
47 TGNumberEntry *fETheta2; // Number entry for Theta2
48 TGNumberEntry *fEPhi1; // Number entry for phi1
49 TGNumberEntry *fEPhi2; // Number entry for phi2
50 TGDoubleVSlider *fSPhi; // Phi slider
51 TGDoubleVSlider *fSTheta; // Theta slider
52 TGTextButton *fApply; // Apply-Button to accept changes
53 TGTextButton *fUndo; // Undo-Button
54 TGCheckButton *fDelayed; // Check button for delayed draw
55
56 virtual void ConnectSignals2Slots(); // Connect the signals to the slots
57 Bool_t IsDelayed() const;
58
59public:
60 TGeoSphereEditor(const TGWindow *p = nullptr, Int_t width = 140, Int_t height = 30, UInt_t options = kChildFrame,
62 ~TGeoSphereEditor() override;
63 void SetModel(TObject *obj) override;
64
65 void DoRmin();
66 void DoRmax();
67 void DoPhi();
68 void DoTheta();
69 void DoTheta1();
70 void DoTheta2();
71 void DoPhi1();
72 void DoPhi2();
73 void DoModified();
74 void DoName();
75 virtual void DoApply();
76 virtual void DoUndo();
77
78 ClassDefOverride(TGeoSphereEditor, 0) // TGeoSphere editor
79};
80
81#endif
@ kChildFrame
Definition GuiTypes.h:379
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:40
#define ClassDefOverride(name, id)
Definition Rtypes.h:346
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
Dragging the slider will generate the event:
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.
Editor for a TGeoSphere.
TGNumberEntry * fEPhi2
TGCheckButton * fDelayed
virtual void ConnectSignals2Slots()
Connect signals to slots.
TGNumberEntry * fERmax
void DoTheta1()
Slot for theta1.
void DoRmin()
Slot for Rmin.
TGNumberEntry * fETheta1
TGNumberEntry * fETheta2
void DoName()
Slot for name.
TGNumberEntry * fERmin
void DoPhi2()
Slot for phi2.
TGDoubleVSlider * fSPhi
Bool_t IsDelayed() const
Check if shape drawing is delayed.
void DoTheta()
Slot for theta slider.
void DoModified()
Slot for signaling modifications.
void DoTheta2()
Slot for theta2.
TGTextEntry * fShapeName
void DoPhi()
Slot for phi slider.
TGeoSphere * fShape
void SetModel(TObject *obj) override
Connect to a given sphere.
TGNumberEntry * fEPhi1
TGDoubleVSlider * fSTheta
void DoPhi1()
Slot for phi1.
void DoRmax()
Slot for Rmax.
virtual void DoUndo()
Slot for undoing last operation.
TGTextButton * fUndo
~TGeoSphereEditor() override
Destructor.
virtual void DoApply()
Slot for applying modifications.
TGTextButton * fApply
Manager for all editor tabs.
Mother of all ROOT objects.
Definition TObject.h:41
Basic string class.
Definition TString.h:139