45 kTRAP_NAME, kTRAP_H1, kTRAP_BL1, kTRAP_TL1, kTRAP_DZ, kTRAP_ALPHA1,
46 kTRAP_SC1, kTRAP_SC2, kTRAP_THETA, kTRAP_PHI, kTRAP_APPLY, kTRAP_UNDO
91 nef->
SetToolTipText(
"Enter the half length in x at low z and y low edge");
103 nef->
SetToolTipText(
"Enter the half length in x at low z and y high edge");
150 nef->
SetToolTipText(
"Enter angle between centers of x edges an y axis at low z");
216 fApply->
Connect(
"Clicked()",
"TGeoTrapEditor",
this,
"DoApply()");
217 fUndo->
Connect(
"Clicked()",
"TGeoTrapEditor",
this,
"DoUndo()");
218 fShapeName->
Connect(
"TextChanged(const char *)",
"TGeoTrapEditor",
this,
"DoModified()");
219 fEH1->
Connect(
"ValueSet(Long_t)",
"TGeoTrapEditor",
this,
"DoH1()");
220 fEBl1->
Connect(
"ValueSet(Long_t)",
"TGeoTrapEditor",
this,
"DoBl1()");
221 fETl1->
Connect(
"ValueSet(Long_t)",
"TGeoTrapEditor",
this,
"DoTl1()");
222 fEDz->
Connect(
"ValueSet(Long_t)",
"TGeoTrapEditor",
this,
"DoDz()");
223 fESc1->
Connect(
"ValueSet(Long_t)",
"TGeoTrapEditor",
this,
"DoSc1()");
224 fESc2->
Connect(
"ValueSet(Long_t)",
"TGeoTrapEditor",
this,
"DoSc2()");
225 fEAlpha1->
Connect(
"ValueSet(Long_t)",
"TGeoTrapEditor",
this,
"DoAlpha1()");
226 fETheta->
Connect(
"ValueSet(Long_t)",
"TGeoTrapEditor",
this,
"DoTheta()");
227 fEPhi->
Connect(
"ValueSet(Long_t)",
"TGeoTrapEditor",
this,
"DoPhi()");
498 if (phi<0 || phi>360) {
549 fETwist->
Connect(
"ValueSet(Long_t)",
"TGeoGtraEditor",
this,
"DoTwist()");
550 nef->
Connect(
"TextChanged(const char *)",
"TGeoGtraEditor",
this,
"DoModified()");
690 if (twist<=-180 || twist>=180) {
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual void DoApply()
Slot for applying current settings.
virtual void SetModel(TObject *obj)
Connect to the selected object.
void DoTwist()
Change the twist angle.
virtual void SetModel(TObject *obj)
Connect to a given twisted trapezoid.
ClassImp(TSeqCollection) Int_t TSeqCollection TIter next(this)
Return index of object in collection.
Bool_t IsDelayed() const
Check if shape drawing is delayed.
virtual Bool_t IsComposite() const
virtual void SetToolTipText(const char *text, Long_t delayms=500)
Set tool tip text associated with this text entry.
virtual void SetName(const char *name)
Change (i.e.
virtual void SetNumber(Double_t val)
virtual void SetRange(const Double_t *min, const Double_t *max)=0
virtual Bool_t IsPaintingShape() const =0
virtual TList * GetList() const
void DoModified()
Slot for notifying modifications.
virtual Double_t GetDY() const
virtual void ConnectSignals2Slots()
Connect signals to slots.
virtual void DoUndo()
Slot for undoing last operation.
virtual Double_t GetDZ() const
TGCompositeFrame * fDFrame
virtual void DoApply()
Slot for applying current settings.
static void Cleanup(TGCompositeFrame *frame)
Static method to cleanup hirarchically all daughters of a composite frame.
ClassImp(TGeoTrapEditor) enum ETGeoTrapWid
TGNumberEntryField * GetNumberEntry() const
virtual ~TGeoGtraEditor()
Destructor.
void DoName()
Slot for name.
void DoTheta()
Slot for theta.
const char * GetText() const
TVirtualGeoPainter * GetPainter() const
virtual void SetActive(Bool_t active=kTRUE)
Set active GUI attribute frames related to the selected object.
TGCompositeFrame(const TGCompositeFrame &)
TGeoTrapEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for para editor.
virtual void ComputeBBox()
Computes bounding box for an Arb8 shape.
virtual TView * GetView() const =0
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot...
virtual void Associate(const TGWindow *w)
Make w the window that will receive the generated messages.
void DoTl1()
Slot for Tl1.
virtual Double_t GetDX() const
TGCompositeFrame * fBFrame
virtual void SetSize(const TGDimension &s)
TGeoGtraEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for gtra editor.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
void DoPhi()
Slot for phi.
virtual void ShowAxis()=0
static void MoveFrame(TGCompositeFrame *fr, TGCompositeFrame *p)
Move frame fr at the end of the list of parent p.
virtual const char * GetName() const
Get the shape name.
virtual void DoUndo()
Slot for undoing last operation.
void SetNumAttr(EAttribute attr=kNEAAnyNumber)
void DoAlpha1()
Slot for alpha1.
R__EXTERN TGeoManager * gGeoManager
TGDimension GetSize() const
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
virtual ~TGeoTrapEditor()
Destructor.
Double_t GetTheta() const
Mother of all ROOT objects.
virtual UInt_t GetDefaultHeight() const
Double_t GetAlpha1() const
virtual void Update()
Override Update from TGedFrame as fGedEditor can be null.
virtual Double_t GetNumber() const
UInt_t GetDefaultHeight() const
virtual void SetText(const char *text, Bool_t emit=kTRUE)
Sets text entry to text, clears the selection and moves the cursor to the end of the line...
virtual void SetDimensions(Double_t *param)
Set all arb8 params in one step.
virtual void Cleanup()
Cleanup and delete all objects contained in this composite frame.
virtual void Draw(Option_t *option="")
Draw this shape.
virtual void MakeTitle(const char *title)
Create attribute frame title.
void DoBl1()
Slot for Bl1.
virtual void SetDimensions(Double_t *param)
Set all arb8 params in one step.