Logo ROOT   6.16/01
Reference Guide
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
17class TGeoTrd2;
18class TGeoTabManager;
19class TGTextEntry;
20class TGNumberEntry;
21class TGTab;
22class TGComboBox;
23class TGTextButton;
24class TGCheckButton;
25class TString;
26
28
29protected:
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
54public:
55 TGeoTrd2Editor(const TGWindow *p = 0,
56 Int_t width = 140, Int_t height = 30,
57 UInt_t options = kChildFrame,
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
ULong_t Pixel_t
Definition: GuiTypes.h:39
int Int_t
Definition: RtypesCore.h:41
unsigned int UInt_t
Definition: RtypesCore.h:42
bool Bool_t
Definition: RtypesCore.h:59
double Double_t
Definition: RtypesCore.h:55
#define ClassDef(name, id)
Definition: Rtypes.h:324
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
@ kChildFrame
Definition: TGFrame.h:57
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
Definition: TGTab.h:62
Common base class for geombuilder editors.
Definition: TGeoGedFrame.h:13
Manager for all editor tabs.
Editor for a TGeoTrd2.
void DoName()
Perform name change.
virtual ~TGeoTrd2Editor()
Destructor.
TGNumberEntry * fEDy2
virtual void ConnectSignals2Slots()
Connect signals to slots.
void DoApply()
Slot for applying modifications.
void DoModified()
Slot for signaling modifications.
Bool_t fIsShapeEditable
void DoDx1()
Slot for dx1.
TGTextButton * fUndo
TGCheckButton * fDelayed
TGNumberEntry * fEDz
virtual void SetModel(TObject *obj)
Connect to the selected object.
void DoDz()
Slot for dz.
void DoUndo()
Slot for undoing last operation.
TGeoTrd2Editor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for trd2 editor.
TGTextButton * fApply
TGNumberEntry * fEDx1
void DoDx2()
Slot for dx2.
TGNumberEntry * fEDy1
Bool_t IsDelayed() const
Check if shape drawing is delayed.
void DoDy2()
Slot for dy2.
TGTextEntry * fShapeName
void DoDy1()
Slot for dy1.
TGNumberEntry * fEDx2
TGeoTrd2 * fShape
A trapezoid with both x and y lengths varying with z.
Definition: TGeoTrd2.h:18
Mother of all ROOT objects.
Definition: TObject.h:37
Basic string class.
Definition: TString.h:131