Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGeoParaEditor.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_TGeoParaEditor
12#define ROOT_TGeoParaEditor
13
14#include "TGWidget.h"
15#include "TGeoGedFrame.h"
16
17class TGeoPara;
18class TGeoTabManager;
19class TGTextEntry;
20class TGNumberEntry;
21class TGTab;
22class TGComboBox;
23class TGTextButton;
24class TGCheckButton;
25class TString;
26
28
29protected:
30 Double_t fXi; // Initial X
31 Double_t fYi; // Initial Y
32 Double_t fZi; // Initial Z
33 Double_t fAlphai; // Initial alpha
34 Double_t fThetai; // Initial theta
35 Double_t fPhii; // Initial phi
36 TString fNamei; // Initial name
37 TGeoPara *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 *fEDx; // Number entry for DX2
43 TGNumberEntry *fEDy; // Number entry for DY
44 TGNumberEntry *fEDz; // Number entry for DZ
45 TGNumberEntry *fEAlpha; // Number entry for Alpha
46 TGNumberEntry *fETheta; // Number entry for Theta
47 TGNumberEntry *fEPhi; // Number entry for Theta
48 TGTextButton *fApply; // Apply-Button to accept changes
49 TGTextButton *fUndo; // Undo-Button
50 TGCheckButton *fDelayed; // Check button for delayed draw
51
52 virtual void ConnectSignals2Slots(); // Connect the signals to the slots
53 Bool_t IsDelayed() const;
54
55public:
56 TGeoParaEditor(const TGWindow *p = nullptr, Int_t width = 140, Int_t height = 30, UInt_t options = kChildFrame,
58 ~TGeoParaEditor() override;
59 void SetModel(TObject *obj) override;
60
61 void DoX();
62 void DoY();
63 void DoZ();
64 void DoAlpha();
65 void DoTheta();
66 void DoPhi();
67 void DoModified();
68 void DoName();
69 void DoApply();
70 void DoUndo();
71
72 ClassDefOverride(TGeoParaEditor, 0) // TGeoPara editor
73};
74
75#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
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 TGeoPara.
void DoName()
Slot for name.
void DoX()
Slot for X.
TGNumberEntry * fETheta
TGNumberEntry * fEDy
void DoPhi()
Slot for phi.
TGNumberEntry * fEPhi
TGTextEntry * fShapeName
~TGeoParaEditor() override
Destructor.
Bool_t IsDelayed() const
Check if shape drawing is delayed.
TGTextButton * fApply
TGCheckButton * fDelayed
TGNumberEntry * fEDz
void SetModel(TObject *obj) override
Connect to the selected object.
void DoZ()
Slot for Z.
void DoAlpha()
Slot for alpha.
TGNumberEntry * fEDx
void DoUndo()
Slot for undoing last operation.
TGeoPara * fShape
void DoY()
Slot for Y.
void DoModified()
Slot for notifying modifications.
Bool_t fIsShapeEditable
void DoTheta()
Slot for theta.
TGNumberEntry * fEAlpha
void DoApply()
Slot for applying current settings.
TGTextButton * fUndo
virtual void ConnectSignals2Slots()
Connect signals to slots.
Manager for all editor tabs.
Mother of all ROOT objects.
Definition TObject.h:41
Basic string class.
Definition TString.h:139