Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGeoTrd1Editor.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_TGeoTrd1Editor
12#define ROOT_TGeoTrd1Editor
13
14#include "TGWidget.h"
15#include "TGeoGedFrame.h"
16
17class TGeoTrd1;
18class TGeoTabManager;
19class TGTextEntry;
20class TGNumberEntry;
21class TGTab;
22class TGComboBox;
23class TGTextButton;
24class TGCheckButton;
25class TString;
26
28
29protected:
30 Double_t fDxi1; // Initial dx1
31 Double_t fDxi2; // Initial dx2
32 Double_t fDyi; // Initial dy
33 Double_t fDzi; // Initial dz
34 TString fNamei; // Initial name
35 TGeoTrd1 *fShape; // Shape object
36 Bool_t fIsModified; // Flag that volume was modified
37 Bool_t fIsShapeEditable; // Flag that the shape can be changed
38
39 TGTextEntry *fShapeName; // Shape name text entry
40 TGNumberEntry *fEDx1; // Number entry for DX1
41 TGNumberEntry *fEDx2; // Number entry for DX2
42 TGNumberEntry *fEDy; // Number entry for DY
43 TGNumberEntry *fEDz; // Number entry for DZ
44 TGTextButton *fApply; // Apply-Button to accept changes
45 TGTextButton *fUndo; // Undo-Button
46 TGCheckButton *fDelayed; // Check button for delayed draw
47
48 virtual void ConnectSignals2Slots(); // Connect the signals to the slots
49 Bool_t IsDelayed() const;
50
51public:
52 TGeoTrd1Editor(const TGWindow *p = nullptr, Int_t width = 140, Int_t height = 30, UInt_t options = kChildFrame,
54 ~TGeoTrd1Editor() override;
55 void SetModel(TObject *obj) override;
56
57 void DoDx1();
58 void DoDx2();
59 void DoDy();
60 void DoDz();
61 void DoModified();
62 void DoName();
63 void DoApply();
64 void DoUndo();
65
66 ClassDefOverride(TGeoTrd1Editor, 0) // TGeoTrd1 editor
67};
68
69#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 TGeoTrd1.
void DoDx2()
Slot for dx2.
virtual void ConnectSignals2Slots()
Connect signals to slots.
void SetModel(TObject *obj) override
Connect to the selected object.
TGNumberEntry * fEDz
TGCheckButton * fDelayed
TGeoTrd1 * fShape
void DoDy()
Slot for dy.
void DoUndo()
Slot for undoing last operation.
void DoDx1()
Slot for dx1.
void DoModified()
Slot for signaling modifications.
TGNumberEntry * fEDx1
~TGeoTrd1Editor() override
Destructor.
void DoDz()
Slot for dz.
Bool_t fIsShapeEditable
TGNumberEntry * fEDy
TGTextButton * fUndo
void DoApply()
Slot for applying modifications.
TGTextButton * fApply
TGNumberEntry * fEDx2
void DoName()
Perform name change.
TGTextEntry * fShapeName
Bool_t IsDelayed() const
Check if shape drawing is delayed.
A trapezoid with only X varying with Z.
Definition TGeoTrd1.h:17
Mother of all ROOT objects.
Definition TObject.h:41
Basic string class.
Definition TString.h:139