45 kTRD1_NAME, kTRD1_X1, kTRD1_X2, kTRD1_Y, kTRD1_Z,
46 kTRD1_APPLY, kTRD1_UNDO
162 fApply->
Connect(
"Clicked()",
"TGeoTrd1Editor",
this,
"DoApply()");
163 fUndo->
Connect(
"Clicked()",
"TGeoTrd1Editor",
this,
"DoUndo()");
164 fShapeName->
Connect(
"TextChanged(const char *)",
"TGeoTrd1Editor",
this,
"DoModified()");
165 fEDx1->
Connect(
"ValueSet(Long_t)",
"TGeoTrd1Editor",
this,
"DoDx1()");
166 fEDx2->
Connect(
"ValueSet(Long_t)",
"TGeoTrd1Editor",
this,
"DoDx2()");
167 fEDy->
Connect(
"ValueSet(Long_t)",
"TGeoTrd1Editor",
this,
"DoDy()");
168 fEDz->
Connect(
"ValueSet(Long_t)",
"TGeoTrd1Editor",
this,
"DoDz()");
286 if (dx1<1.e-6 && dx2<1.e-6) {
305 if (dx1<1.e-6 && dx2<1.e-6) {
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
ClassImp(TSeqCollection) Int_t TSeqCollection TIter next(this)
Return index of object in collection.
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.
void DoModified()
Slot for signaling modifications.
virtual void ConnectSignals2Slots()
Connect signals to slots.
virtual void ComputeBBox()
compute bounding box for a trd1
virtual void SetNumber(Double_t val)
virtual Bool_t IsPaintingShape() const =0
virtual TList * GetList() const
static void Cleanup(TGCompositeFrame *frame)
Static method to cleanup hirarchically all daughters of a composite frame.
virtual ~TGeoTrd1Editor()
Destructor.
TGNumberEntryField * GetNumberEntry() const
void DoApply()
Slot for applying modifications.
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 &)
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.
virtual void SetSize(const TGDimension &s)
virtual const char * ClassName() const
Returns name of class to which the object belongs.
virtual void SetDimensions(Double_t *param)
set trd1 params in one step :
void DoUndo()
Slot for undoing last operation.
virtual void ShowAxis()=0
virtual const char * GetName() const
Get the shape name.
void SetNumAttr(EAttribute attr=kNEAAnyNumber)
TGeoTrd1Editor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for trd1 editor.
Bool_t IsDelayed() const
Check if shape drawing is delayed.
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.
Mother of all ROOT objects.
virtual UInt_t GetDefaultHeight() const
double f2(const double *x)
virtual void Update()
Override Update from TGedFrame as fGedEditor can be null.
virtual Double_t GetNumber() 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 Cleanup()
Cleanup and delete all objects contained in this composite frame.
virtual void Draw(Option_t *option="")
Draw this shape.
ClassImp(TGeoTrd1Editor) enum ETGeoTrd1Wid
void DoDx1()
Slot for dx1.
virtual void MakeTitle(const char *title)
Create attribute frame title.
virtual void SetModel(TObject *obj)
Connect to the selected object.
void DoName()
Perform name change.
void DoDx2()
Slot for dx2.