ROOT
v6-30
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
17
class
TGeoTrd1
;
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
TGeoTrd1Editor
:
public
TGeoGedFrame
{
28
29
protected
:
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
51
public
:
52
TGeoTrd1Editor
(
const
TGWindow
*
p
=
nullptr
,
Int_t
width
= 140,
Int_t
height
= 30,
UInt_t
options =
kChildFrame
,
53
Pixel_t
back =
GetDefaultFrameBackground
());
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
@ 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
TGeoGedFrame
Common base class for geombuilder editors.
Definition
TGeoGedFrame.h:13
TGeoTabManager
Manager for all editor tabs.
Definition
TGeoTabManager.h:42
TGeoTrd1Editor
Editor for a TGeoTrd1.
Definition
TGeoTrd1Editor.h:27
TGeoTrd1Editor::fDxi1
Double_t fDxi1
Definition
TGeoTrd1Editor.h:30
TGeoTrd1Editor::DoDx2
void DoDx2()
Slot for dx2.
Definition
TGeoTrd1Editor.cxx:288
TGeoTrd1Editor::ConnectSignals2Slots
virtual void ConnectSignals2Slots()
Connect signals to slots.
Definition
TGeoTrd1Editor.cxx:148
TGeoTrd1Editor::SetModel
void SetModel(TObject *obj) override
Connect to the selected object.
Definition
TGeoTrd1Editor.cxx:167
TGeoTrd1Editor::fNamei
TString fNamei
Definition
TGeoTrd1Editor.h:34
TGeoTrd1Editor::fEDz
TGNumberEntry * fEDz
Definition
TGeoTrd1Editor.h:43
TGeoTrd1Editor::fDelayed
TGCheckButton * fDelayed
Definition
TGeoTrd1Editor.h:46
TGeoTrd1Editor::fShape
TGeoTrd1 * fShape
Definition
TGeoTrd1Editor.h:35
TGeoTrd1Editor::DoDy
void DoDy()
Slot for dy.
Definition
TGeoTrd1Editor.cxx:308
TGeoTrd1Editor::DoUndo
void DoUndo()
Slot for undoing last operation.
Definition
TGeoTrd1Editor.cxx:254
TGeoTrd1Editor::fDzi
Double_t fDzi
Definition
TGeoTrd1Editor.h:33
TGeoTrd1Editor::fIsModified
Bool_t fIsModified
Definition
TGeoTrd1Editor.h:36
TGeoTrd1Editor::DoDx1
void DoDx1()
Slot for dx1.
Definition
TGeoTrd1Editor.cxx:268
TGeoTrd1Editor::DoModified
void DoModified()
Slot for signaling modifications.
Definition
TGeoTrd1Editor.cxx:246
TGeoTrd1Editor::fEDx1
TGNumberEntry * fEDx1
Definition
TGeoTrd1Editor.h:40
TGeoTrd1Editor::~TGeoTrd1Editor
~TGeoTrd1Editor() override
Destructor.
Definition
TGeoTrd1Editor.cxx:134
TGeoTrd1Editor::DoDz
void DoDz()
Slot for dz.
Definition
TGeoTrd1Editor.cxx:323
TGeoTrd1Editor::fIsShapeEditable
Bool_t fIsShapeEditable
Definition
TGeoTrd1Editor.h:37
TGeoTrd1Editor::fEDy
TGNumberEntry * fEDy
Definition
TGeoTrd1Editor.h:42
TGeoTrd1Editor::fUndo
TGTextButton * fUndo
Definition
TGeoTrd1Editor.h:45
TGeoTrd1Editor::DoApply
void DoApply()
Slot for applying modifications.
Definition
TGeoTrd1Editor.cxx:216
TGeoTrd1Editor::fApply
TGTextButton * fApply
Definition
TGeoTrd1Editor.h:44
TGeoTrd1Editor::fDyi
Double_t fDyi
Definition
TGeoTrd1Editor.h:32
TGeoTrd1Editor::fEDx2
TGNumberEntry * fEDx2
Definition
TGeoTrd1Editor.h:41
TGeoTrd1Editor::DoName
void DoName()
Perform name change.
Definition
TGeoTrd1Editor.cxx:208
TGeoTrd1Editor::fShapeName
TGTextEntry * fShapeName
Definition
TGeoTrd1Editor.h:39
TGeoTrd1Editor::fDxi2
Double_t fDxi2
Definition
TGeoTrd1Editor.h:31
TGeoTrd1Editor::IsDelayed
Bool_t IsDelayed() const
Check if shape drawing is delayed.
Definition
TGeoTrd1Editor.cxx:200
TGeoTrd1
A trapezoid with only X varying with Z.
Definition
TGeoTrd1.h:17
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
TGeoTrd1Editor.h
ROOT v6-30 - Reference Guide Generated on Thu Dec 12 2024 06:11:46 (GVA Time) using Doxygen 1.9.8