ROOT
v6-26
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
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
53
public
:
54
TGeoBBoxEditor
(
const
TGWindow
*p = 0,
55
Int_t
width
= 140,
Int_t
height = 30,
56
UInt_t
options =
kChildFrame
,
57
Pixel_t
back =
GetDefaultFrameBackground
());
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
@ kChildFrame
Definition
GuiTypes.h:379
Pixel_t
ULong_t Pixel_t
Pixel value.
Definition
GuiTypes.h:40
Double_t
double Double_t
Definition
RtypesCore.h:59
ClassDef
#define ClassDef(name, id)
Definition
Rtypes.h:325
width
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition
TDocParser.cxx:121
TGWidget.h
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:148
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:324
TGeoBBoxEditor::fUndo
TGTextButton * fUndo
Definition
TGeoBBoxEditor.h:47
TGeoBBoxEditor::fDzi
Double_t fDzi
Definition
TGeoBBoxEditor.h:33
TGeoBBoxEditor::fBoxDx
TGNumberEntry * fBoxDx
Definition
TGeoBBoxEditor.h:40
TGeoBBoxEditor::fBoxDy
TGNumberEntry * fBoxDy
Definition
TGeoBBoxEditor.h:41
TGeoBBoxEditor::fShapeName
TGTextEntry * fShapeName
Definition
TGeoBBoxEditor.h:39
TGeoBBoxEditor::fBoxOy
TGNumberEntry * fBoxOy
Definition
TGeoBBoxEditor.h:44
TGeoBBoxEditor::DoApply
void DoApply()
Slot for applying current parameters.
Definition
TGeoBBoxEditor.cxx:253
TGeoBBoxEditor::DoDz
void DoDz()
Slot for Dz modification.
Definition
TGeoBBoxEditor.cxx:338
TGeoBBoxEditor::~TGeoBBoxEditor
virtual ~TGeoBBoxEditor()
Destructor.
Definition
TGeoBBoxEditor.cxx:166
TGeoBBoxEditor::fIsModified
Bool_t fIsModified
Definition
TGeoBBoxEditor.h:37
TGeoBBoxEditor::fShape
TGeoBBox * fShape
Definition
TGeoBBoxEditor.h:36
TGeoBBoxEditor::fDelayed
TGCheckButton * fDelayed
Definition
TGeoBBoxEditor.h:48
TGeoBBoxEditor::DoOz
void DoOz()
Slot for Oz modification.
Definition
TGeoBBoxEditor.cxx:370
TGeoBBoxEditor::fBoxOx
TGNumberEntry * fBoxOx
Definition
TGeoBBoxEditor.h:43
TGeoBBoxEditor::fDxi
Double_t fDxi
Definition
TGeoBBoxEditor.h:31
TGeoBBoxEditor::SetModel
virtual void SetModel(TObject *obj)
Update editor for a new selected box.
Definition
TGeoBBoxEditor.cxx:204
TGeoBBoxEditor::fOrigi
Double_t fOrigi[3]
Definition
TGeoBBoxEditor.h:34
TGeoBBoxEditor::DoUndo
void DoUndo()
Slot for undoing last operation.
Definition
TGeoBBoxEditor.cxx:294
TGeoBBoxEditor::fDyi
Double_t fDyi
Definition
TGeoBBoxEditor.h:32
TGeoBBoxEditor::DoDx
void DoDx()
Slot for Dx modification.
Definition
TGeoBBoxEditor.cxx:310
TGeoBBoxEditor::fIsShapeEditable
Bool_t fIsShapeEditable
Definition
TGeoBBoxEditor.h:38
TGeoBBoxEditor::DoName
void DoName()
Slot for name.
Definition
TGeoBBoxEditor.cxx:245
TGeoBBoxEditor::DoModified
void DoModified()
Slot for modifying current parameters.
Definition
TGeoBBoxEditor.cxx:286
TGeoBBoxEditor::DoOx
void DoOx()
Slot for Ox modification.
Definition
TGeoBBoxEditor.cxx:352
TGeoBBoxEditor::DoOy
void DoOy()
Slot for Oy modification.
Definition
TGeoBBoxEditor.cxx:361
TGeoBBoxEditor::IsDelayed
Bool_t IsDelayed() const
Check if shape drawing is delayed.
Definition
TGeoBBoxEditor.cxx:237
TGeoBBoxEditor::ConnectSignals2Slots
virtual void ConnectSignals2Slots()
Connect signals to slots.
Definition
TGeoBBoxEditor.cxx:180
TGeoBBoxEditor::fBoxOz
TGNumberEntry * fBoxOz
Definition
TGeoBBoxEditor.h:45
TGeoBBoxEditor::fBoxDz
TGNumberEntry * fBoxDz
Definition
TGeoBBoxEditor.h:42
TGeoBBoxEditor::fNamei
TString fNamei
Definition
TGeoBBoxEditor.h:35
TGeoBBoxEditor::fApply
TGTextButton * fApply
Definition
TGeoBBoxEditor.h:46
TGeoBBox
Box class.
Definition
TGeoBBox.h:18
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:136
bool
int
unsigned int
geom
geombuilder
inc
TGeoBBoxEditor.h
ROOT v6-26 - Reference Guide Generated on Mon Sep 11 2023 21:02:18 (GVA Time) using Doxygen 1.9.8