ROOT
v6-30
Reference Guide
Loading...
Searching...
No Matches
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
17
class
TGeoBBox
;
18
class
TGeoTabManager
;
19
class
TGTextEntry
;
20
class
TGNumberEntry
;
21
class
TGTab
;
22
class
TGComboBox
;
23
class
TGTextButton
;
24
class
TGCheckButton
;
25
class
TString
;
26
27
class
TGeoBBoxEditor
:
public
TGeoGedFrame
{
28
29
protected
:
30
Double_t
fDxi
;
// Initial box dx
31
Double_t
fDyi
;
// Initial box dy
32
Double_t
fDzi
;
// Initial box dz
33
Double_t
fOrigi
[3];
// Initial origin
34
TString
fNamei
;
// Initial name
35
TGeoBBox
*
fShape
;
// Shape object
36
Bool_t
fIsModified
;
// Flag that volume was modified
37
Bool_t
fIsShapeEditable
;
// Flag that the shape can be changed
38
TGTextEntry
*
fShapeName
;
// Shape name text entry
39
TGNumberEntry
*
fBoxDx
;
// Number entry for box DX
40
TGNumberEntry
*
fBoxDy
;
// Number entry for box DY
41
TGNumberEntry
*
fBoxDz
;
// Number entry for box DZ
42
TGNumberEntry
*
fBoxOx
;
// Number entry for box OX
43
TGNumberEntry
*
fBoxOy
;
// Number entry for box OY
44
TGNumberEntry
*
fBoxOz
;
// Number entry for box OZ
45
TGTextButton
*
fApply
;
// Apply-Button to accept changes
46
TGTextButton
*
fUndo
;
// Undo-Button
47
TGCheckButton
*
fDelayed
;
// Check button for delayed draw
48
49
virtual
void
ConnectSignals2Slots
();
// Connect the signals to the slots
50
Bool_t
IsDelayed
()
const
;
51
52
public
:
53
TGeoBBoxEditor
(
const
TGWindow
*
p
=
nullptr
,
Int_t
width
= 140,
Int_t
height
= 30,
UInt_t
options =
kChildFrame
,
54
Pixel_t
back =
GetDefaultFrameBackground
());
55
~TGeoBBoxEditor
()
override
;
56
void
SetModel
(
TObject
*obj)
override
;
57
58
void
DoDx
();
59
void
DoDy
();
60
void
DoDz
();
61
void
DoOx
();
62
void
DoOy
();
63
void
DoOz
();
64
void
DoModified
();
65
void
DoName
();
66
void
DoApply
();
67
void
DoUndo
();
68
69
ClassDefOverride
(
TGeoBBoxEditor
, 0)
// TGeoBBox editor
70
};
71
72
#endif
kChildFrame
@ kChildFrame
Definition
GuiTypes.h:379
Pixel_t
ULong_t Pixel_t
Pixel value.
Definition
GuiTypes.h:40
ClassDefOverride
#define ClassDefOverride(name, id)
Definition
Rtypes.h:341
TGWidget.h
p
winID h TVirtualViewer3D TVirtualGLPainter p
Definition
TGWin32VirtualGLProxy.cxx:51
width
Option_t Option_t width
Definition
TGWin32VirtualXProxy.cxx:56
height
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
Definition
TGWin32VirtualXProxy.cxx:164
TGeoGedFrame.h
TGCheckButton
Selects different options.
Definition
TGButton.h:264
TGComboBox
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
TGFrame::GetDefaultFrameBackground
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition
TGFrame.cxx:683
TGNumberEntry
TGNumberEntry is a number entry input widget with up/down buttons.
Definition
TGNumberEntry.h:147
TGTab
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
TGTextButton
Yield an action as soon as it is clicked.
Definition
TGButton.h:142
TGTextEntry
A TGTextEntry is a one line text input widget.
Definition
TGTextEntry.h:24
TGWindow
ROOT GUI Window base class.
Definition
TGWindow.h:23
TGeoBBoxEditor
Editor for a TGeoBBox.
Definition
TGeoBBoxEditor.h:27
TGeoBBoxEditor::DoDy
void DoDy()
Slot for Dy modification.
Definition
TGeoBBoxEditor.cxx:320
TGeoBBoxEditor::fUndo
TGTextButton * fUndo
Definition
TGeoBBoxEditor.h:46
TGeoBBoxEditor::fDzi
Double_t fDzi
Definition
TGeoBBoxEditor.h:32
TGeoBBoxEditor::SetModel
void SetModel(TObject *obj) override
Update editor for a new selected box.
Definition
TGeoBBoxEditor.cxx:195
TGeoBBoxEditor::fBoxDx
TGNumberEntry * fBoxDx
Definition
TGeoBBoxEditor.h:39
TGeoBBoxEditor::fBoxDy
TGNumberEntry * fBoxDy
Definition
TGeoBBoxEditor.h:40
TGeoBBoxEditor::fShapeName
TGTextEntry * fShapeName
Definition
TGeoBBoxEditor.h:38
TGeoBBoxEditor::fBoxOy
TGNumberEntry * fBoxOy
Definition
TGeoBBoxEditor.h:43
TGeoBBoxEditor::DoApply
void DoApply()
Slot for applying current parameters.
Definition
TGeoBBoxEditor.cxx:246
TGeoBBoxEditor::DoDz
void DoDz()
Slot for Dz modification.
Definition
TGeoBBoxEditor.cxx:335
TGeoBBoxEditor::fIsModified
Bool_t fIsModified
Definition
TGeoBBoxEditor.h:36
TGeoBBoxEditor::fShape
TGeoBBox * fShape
Definition
TGeoBBoxEditor.h:35
TGeoBBoxEditor::fDelayed
TGCheckButton * fDelayed
Definition
TGeoBBoxEditor.h:47
TGeoBBoxEditor::DoOz
void DoOz()
Slot for Oz modification.
Definition
TGeoBBoxEditor.cxx:370
TGeoBBoxEditor::fBoxOx
TGNumberEntry * fBoxOx
Definition
TGeoBBoxEditor.h:42
TGeoBBoxEditor::fDxi
Double_t fDxi
Definition
TGeoBBoxEditor.h:30
TGeoBBoxEditor::fOrigi
Double_t fOrigi[3]
Definition
TGeoBBoxEditor.h:33
TGeoBBoxEditor::DoUndo
void DoUndo()
Slot for undoing last operation.
Definition
TGeoBBoxEditor.cxx:289
TGeoBBoxEditor::fDyi
Double_t fDyi
Definition
TGeoBBoxEditor.h:31
TGeoBBoxEditor::DoDx
void DoDx()
Slot for Dx modification.
Definition
TGeoBBoxEditor.cxx:305
TGeoBBoxEditor::fIsShapeEditable
Bool_t fIsShapeEditable
Definition
TGeoBBoxEditor.h:37
TGeoBBoxEditor::DoName
void DoName()
Slot for name.
Definition
TGeoBBoxEditor.cxx:238
TGeoBBoxEditor::DoModified
void DoModified()
Slot for modifying current parameters.
Definition
TGeoBBoxEditor.cxx:281
TGeoBBoxEditor::DoOx
void DoOx()
Slot for Ox modification.
Definition
TGeoBBoxEditor.cxx:350
TGeoBBoxEditor::DoOy
void DoOy()
Slot for Oy modification.
Definition
TGeoBBoxEditor.cxx:360
TGeoBBoxEditor::~TGeoBBoxEditor
~TGeoBBoxEditor() override
Destructor.
Definition
TGeoBBoxEditor.cxx:158
TGeoBBoxEditor::IsDelayed
Bool_t IsDelayed() const
Check if shape drawing is delayed.
Definition
TGeoBBoxEditor.cxx:230
TGeoBBoxEditor::ConnectSignals2Slots
virtual void ConnectSignals2Slots()
Connect signals to slots.
Definition
TGeoBBoxEditor.cxx:172
TGeoBBoxEditor::fBoxOz
TGNumberEntry * fBoxOz
Definition
TGeoBBoxEditor.h:44
TGeoBBoxEditor::fBoxDz
TGNumberEntry * fBoxDz
Definition
TGeoBBoxEditor.h:41
TGeoBBoxEditor::fNamei
TString fNamei
Definition
TGeoBBoxEditor.h:34
TGeoBBoxEditor::fApply
TGTextButton * fApply
Definition
TGeoBBoxEditor.h:45
TGeoBBox
Box class.
Definition
TGeoBBox.h:17
TGeoGedFrame
Common base class for geombuilder editors.
Definition
TGeoGedFrame.h:13
TGeoTabManager
Manager for all editor tabs.
Definition
TGeoTabManager.h:42
TObject
Mother of all ROOT objects.
Definition
TObject.h:41
TString
Basic string class.
Definition
TString.h:139
bool
double
int
unsigned int
geom
geombuilder
inc
TGeoBBoxEditor.h
ROOT v6-30 - Reference Guide Generated on Thu Dec 12 2024 06:11:46 (GVA Time) using Doxygen 1.9.8