ROOT
v6-26
Reference Guide
Loading...
Searching...
No Matches
TGeoTrd2Editor.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_TGeoTrd2Editor
12
#define ROOT_TGeoTrd2Editor
13
14
#include "
TGWidget.h
"
15
#include "
TGeoGedFrame.h
"
16
17
class
TGeoTrd2
;
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
TGeoTrd2Editor
:
public
TGeoGedFrame
{
28
29
protected
:
30
31
Double_t
fDxi1
;
// Initial dx1
32
Double_t
fDxi2
;
// Initial dx2
33
Double_t
fDyi1
;
// Initial dy1
34
Double_t
fDyi2
;
// Initial dy2
35
Double_t
fDzi
;
// Initial dz
36
TString
fNamei
;
// Initial name
37
TGeoTrd2
*
fShape
;
// Shape object
38
Bool_t
fIsModified
;
// Flag that volume was modified
39
Bool_t
fIsShapeEditable
;
// Flag that the shape can be changed
40
41
TGTextEntry
*
fShapeName
;
// Shape name text entry
42
TGNumberEntry
*
fEDx1
;
// Number entry for DX1
43
TGNumberEntry
*
fEDx2
;
// Number entry for DX2
44
TGNumberEntry
*
fEDy1
;
// Number entry for DY1
45
TGNumberEntry
*
fEDy2
;
// Number entry for DY1
46
TGNumberEntry
*
fEDz
;
// Number entry for DZ
47
TGTextButton
*
fApply
;
// Apply-Button to accept changes
48
TGTextButton
*
fUndo
;
// Undo-Button
49
TGCheckButton
*
fDelayed
;
// Check button for delayed draw
50
51
virtual
void
ConnectSignals2Slots
();
// Connect the signals to the slots
52
Bool_t
IsDelayed
()
const
;
53
54
public
:
55
TGeoTrd2Editor
(
const
TGWindow
*p = 0,
56
Int_t
width
= 140,
Int_t
height = 30,
57
UInt_t
options =
kChildFrame
,
58
Pixel_t
back =
GetDefaultFrameBackground
());
59
virtual
~TGeoTrd2Editor
();
60
virtual
void
SetModel
(
TObject
*obj);
61
62
void
DoDx1
();
63
void
DoDx2
();
64
void
DoDy1
();
65
void
DoDy2
();
66
void
DoDz
();
67
void
DoModified
();
68
void
DoName
();
69
void
DoApply
();
70
void
DoUndo
();
71
72
ClassDef
(
TGeoTrd2Editor
,0)
// TGeoTrd2 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
TGeoGedFrame
Common base class for geombuilder editors.
Definition
TGeoGedFrame.h:13
TGeoTabManager
Manager for all editor tabs.
Definition
TGeoTabManager.h:42
TGeoTrd2Editor
Editor for a TGeoTrd2.
Definition
TGeoTrd2Editor.h:27
TGeoTrd2Editor::DoName
void DoName()
Perform name change.
Definition
TGeoTrd2Editor.cxx:228
TGeoTrd2Editor::fDyi1
Double_t fDyi1
Definition
TGeoTrd2Editor.h:33
TGeoTrd2Editor::~TGeoTrd2Editor
virtual ~TGeoTrd2Editor()
Destructor.
Definition
TGeoTrd2Editor.cxx:151
TGeoTrd2Editor::fEDy2
TGNumberEntry * fEDy2
Definition
TGeoTrd2Editor.h:45
TGeoTrd2Editor::ConnectSignals2Slots
virtual void ConnectSignals2Slots()
Connect signals to slots.
Definition
TGeoTrd2Editor.cxx:165
TGeoTrd2Editor::DoApply
void DoApply()
Slot for applying modifications.
Definition
TGeoTrd2Editor.cxx:236
TGeoTrd2Editor::DoModified
void DoModified()
Slot for signaling modifications.
Definition
TGeoTrd2Editor.cxx:266
TGeoTrd2Editor::fIsShapeEditable
Bool_t fIsShapeEditable
Definition
TGeoTrd2Editor.h:39
TGeoTrd2Editor::DoDx1
void DoDx1()
Slot for dx1.
Definition
TGeoTrd2Editor.cxx:289
TGeoTrd2Editor::fDxi2
Double_t fDxi2
Definition
TGeoTrd2Editor.h:32
TGeoTrd2Editor::fUndo
TGTextButton * fUndo
Definition
TGeoTrd2Editor.h:48
TGeoTrd2Editor::fDelayed
TGCheckButton * fDelayed
Definition
TGeoTrd2Editor.h:49
TGeoTrd2Editor::fDzi
Double_t fDzi
Definition
TGeoTrd2Editor.h:35
TGeoTrd2Editor::fEDz
TGNumberEntry * fEDz
Definition
TGeoTrd2Editor.h:46
TGeoTrd2Editor::SetModel
virtual void SetModel(TObject *obj)
Connect to the selected object.
Definition
TGeoTrd2Editor.cxx:187
TGeoTrd2Editor::DoDz
void DoDz()
Slot for dz.
Definition
TGeoTrd2Editor.cxx:365
TGeoTrd2Editor::DoUndo
void DoUndo()
Slot for undoing last operation.
Definition
TGeoTrd2Editor.cxx:274
TGeoTrd2Editor::fApply
TGTextButton * fApply
Definition
TGeoTrd2Editor.h:47
TGeoTrd2Editor::fEDx1
TGNumberEntry * fEDx1
Definition
TGeoTrd2Editor.h:42
TGeoTrd2Editor::DoDx2
void DoDx2()
Slot for dx2.
Definition
TGeoTrd2Editor.cxx:308
TGeoTrd2Editor::fEDy1
TGNumberEntry * fEDy1
Definition
TGeoTrd2Editor.h:44
TGeoTrd2Editor::IsDelayed
Bool_t IsDelayed() const
Check if shape drawing is delayed.
Definition
TGeoTrd2Editor.cxx:220
TGeoTrd2Editor::fDyi2
Double_t fDyi2
Definition
TGeoTrd2Editor.h:34
TGeoTrd2Editor::DoDy2
void DoDy2()
Slot for dy2.
Definition
TGeoTrd2Editor.cxx:346
TGeoTrd2Editor::fShapeName
TGTextEntry * fShapeName
Definition
TGeoTrd2Editor.h:41
TGeoTrd2Editor::fNamei
TString fNamei
Definition
TGeoTrd2Editor.h:36
TGeoTrd2Editor::fDxi1
Double_t fDxi1
Definition
TGeoTrd2Editor.h:31
TGeoTrd2Editor::DoDy1
void DoDy1()
Slot for dy1.
Definition
TGeoTrd2Editor.cxx:327
TGeoTrd2Editor::fEDx2
TGNumberEntry * fEDx2
Definition
TGeoTrd2Editor.h:43
TGeoTrd2Editor::fIsModified
Bool_t fIsModified
Definition
TGeoTrd2Editor.h:38
TGeoTrd2Editor::fShape
TGeoTrd2 * fShape
Definition
TGeoTrd2Editor.h:37
TGeoTrd2
A trapezoid with only X varying with Z.
Definition
TGeoTrd2.h:18
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
TGeoTrd2Editor.h
ROOT v6-26 - Reference Guide Generated on Mon Sep 11 2023 21:02:18 (GVA Time) using Doxygen 1.9.8