Logo ROOT  
Reference Guide
Go to the documentation of this file.
1// @(#):$Id$
2// Author: M.Gheata
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 *************************************************************************/
11#ifndef ROOT_TGeoEltuEditor
12#define ROOT_TGeoEltuEditor
14#include "TGWidget.h"
15#include "TGeoGedFrame.h"
17class TGeoEltu;
18class TGeoTabManager;
19class TGTextEntry;
20class TGNumberEntry;
21class TGTab;
22class TGComboBox;
23class TGTextButton;
24class TGCheckButton;
25class TString;
31 Double_t fAi; // Initial semi-axis of the ellipse along x
32 Double_t fBi; // Initial semi-axis of the ellipse along y
33 Double_t fDzi; // Initial half length in z
34 TString fNamei; // Initial name
35 TGeoEltu *fShape; // Shape object
36 Bool_t fIsModified; // Flag that volume was modified
37 Bool_t fIsShapeEditable; // Flag that the shape can be changed
39 TGTextEntry *fShapeName; // Shape name text entry
40 TGNumberEntry *fEA; // Number entry for A
41 TGNumberEntry *fEB; // Number entry for B
42 TGNumberEntry *fEDz; // Number entry for DZ
43 TGTextButton *fApply; // Apply-Button to accept changes
44 TGTextButton *fUndo; // Undo-Button
45 TGCheckButton *fDelayed; // Check button for delayed draw
47 virtual void ConnectSignals2Slots(); // Connect the signals to the slots
48 Bool_t IsDelayed() const;
51 TGeoEltuEditor(const TGWindow *p = nullptr,
52 Int_t width = 140, Int_t height = 30,
53 UInt_t options = kChildFrame,
55 virtual ~TGeoEltuEditor();
56 virtual void SetModel(TObject *obj);
58 void DoA();
59 void DoB();
60 void DoDz();
61 void DoModified();
62 void DoName();
63 void DoApply();
64 void DoUndo();
66 ClassDef(TGeoEltuEditor,0) // TGeoEltu editor
@ kChildFrame
Definition: GuiTypes.h:379
ULong_t Pixel_t
Pixel value.
Definition: GuiTypes.h:40
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
ClassDef(TGedFrame, 0)
Editor for a TGeoEltu.
TGTextButton * fApply
virtual ~TGeoEltuEditor()
virtual void SetModel(TObject *obj)
Connect to the selected object.
Bool_t fIsShapeEditable
TGTextButton * fUndo
TGNumberEntry * fEDz
void DoB()
Slot for B.
TGTextEntry * fShapeName
TGeoEltu * fShape
TGCheckButton * fDelayed
void DoDz()
Slot for Z.
void DoApply()
Slot for applying current settings.
TGNumberEntry * fEA
void DoName()
Slot for name.
TGeoEltuEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for para editor.
virtual void ConnectSignals2Slots()
Connect signals to slots.
void DoUndo()
Slot for undoing last operation.
TGNumberEntry * fEB
void DoModified()
Slot for notifying modifications.
Bool_t IsDelayed() const
Check if shape drawing is delayed.
void DoA()
Slot for A.
An elliptical tube is defined by the two semi-axes A and B.
Definition: TGeoEltu.h:18
Common base class for geombuilder editors.
Definition: TGeoGedFrame.h:13
Manager for all editor tabs.
Mother of all ROOT objects.
Definition: TObject.h:41
Basic string class.
Definition: TString.h:136