Logo ROOT  
Reference Guide
TGeoBBoxEditor.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_TGeoBBoxEditor
12#define ROOT_TGeoBBoxEditor
13
14#include "TGWidget.h"
15#include "TGeoGedFrame.h"
16
17class TGeoBBox;
18class TGeoTabManager;
19class TGTextEntry;
20class TGNumberEntry;
21class TGTab;
22class TGComboBox;
23class TGTextButton;
24class TGCheckButton;
25class TString;
26
28
29protected:
30
31 Double_t fDxi; // Initial box dx
32 Double_t fDyi; // Initial box dy
33 Double_t fDzi; // Initial box dz
34 Double_t fOrigi[3]; // Initial origin
35 TString fNamei; // Initial name
36 TGeoBBox *fShape; // Shape object
37 Bool_t fIsModified; // Flag that volume was modified
38 Bool_t fIsShapeEditable; // Flag that the shape can be changed
39 TGTextEntry *fShapeName; // Shape name text entry
40 TGNumberEntry *fBoxDx; // Number entry for box DX
41 TGNumberEntry *fBoxDy; // Number entry for box DY
42 TGNumberEntry *fBoxDz; // Number entry for box DZ
43 TGNumberEntry *fBoxOx; // Number entry for box OX
44 TGNumberEntry *fBoxOy; // Number entry for box OY
45 TGNumberEntry *fBoxOz; // Number entry for box OZ
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 TGeoBBoxEditor(const TGWindow *p = nullptr,
55 Int_t width = 140, Int_t height = 30,
56 UInt_t options = kChildFrame,
58 virtual ~TGeoBBoxEditor();
59 virtual void SetModel(TObject *obj);
60
61 void DoDx();
62 void DoDy();
63 void DoDz();
64 void DoOx();
65 void DoOy();
66 void DoOz();
67 void DoModified();
68 void DoName();
69 void DoApply();
70 void DoUndo();
71
72 ClassDef(TGeoBBoxEditor,0) // TGeoBBox editor
73};
74
75#endif
@ 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 TGeoBBox.
void DoDy()
Slot for Dy modification.
TGTextButton * fUndo
TGNumberEntry * fBoxDx
TGNumberEntry * fBoxDy
TGTextEntry * fShapeName
TGNumberEntry * fBoxOy
void DoApply()
Slot for applying current parameters.
TGeoBBoxEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for volume editor.
void DoDz()
Slot for Dz modification.
virtual ~TGeoBBoxEditor()
Destructor.
TGeoBBox * fShape
TGCheckButton * fDelayed
void DoOz()
Slot for Oz modification.
TGNumberEntry * fBoxOx
virtual void SetModel(TObject *obj)
Update editor for a new selected box.
Double_t fOrigi[3]
void DoUndo()
Slot for undoing last operation.
void DoDx()
Slot for Dx modification.
Bool_t fIsShapeEditable
void DoName()
Slot for name.
void DoModified()
Slot for modifying current parameters.
void DoOx()
Slot for Ox modification.
void DoOy()
Slot for Oy modification.
Bool_t IsDelayed() const
Check if shape drawing is delayed.
virtual void ConnectSignals2Slots()
Connect signals to slots.
TGNumberEntry * fBoxOz
TGNumberEntry * fBoxDz
TGTextButton * fApply
Box class.
Definition: TGeoBBox.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