45 kTRD2_NAME, kTRD2_X1, kTRD2_X2, kTRD2_Y1, kTRD2_Y2, kTRD2_Z,
46 kTRD2_APPLY, kTRD2_UNDO
174 fApply->
Connect(
"Clicked()",
"TGeoTrd2Editor",
this,
"DoApply()");
175 fUndo->
Connect(
"Clicked()",
"TGeoTrd2Editor",
this,
"DoUndo()");
176 fShapeName->
Connect(
"TextChanged(const char *)",
"TGeoTrd2Editor",
this,
"DoModified()");
177 fEDx1->
Connect(
"ValueSet(Long_t)",
"TGeoTrd2Editor",
this,
"DoDx1()");
178 fEDx2->
Connect(
"ValueSet(Long_t)",
"TGeoTrd2Editor",
this,
"DoDx2()");
179 fEDy1->
Connect(
"ValueSet(Long_t)",
"TGeoTrd2Editor",
this,
"DoDy1()");
180 fEDy2->
Connect(
"ValueSet(Long_t)",
"TGeoTrd2Editor",
this,
"DoDy2()");
181 fEDz->
Connect(
"ValueSet(Long_t)",
"TGeoTrd2Editor",
this,
"DoDz()");
304 if (dx1<1.e-6 && dx2<1.e-6) {
323 if (dx1<1.e-6 && dx2<1.e-6) {
342 if (dy1<1.e-6 && dy2<1.e-6) {
361 if (dy1<1.e-6 && dy2<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.
void DoApply()
Slot for applying modifications.
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 DoUndo()
Slot for undoing last operation.
virtual void SetNumber(Double_t val)
virtual Bool_t IsPaintingShape() const =0
virtual TList * GetList() const
void DoDx2()
Slot for dx2.
void DoDx1()
Slot for dx1.
static void Cleanup(TGCompositeFrame *frame)
Static method to cleanup hirarchically all daughters of a composite frame.
virtual void ConnectSignals2Slots()
Connect signals to slots.
TGNumberEntryField * GetNumberEntry() const
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 void ComputeBBox()
compute bounding box for a trd2
virtual void SetModel(TObject *obj)
Connect to the selected object.
virtual TView * GetView() const =0
void DoModified()
Slot for signaling modifications.
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)
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.
void DoDy2()
Slot for dy2.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
void DoDy1()
Slot for dy1.
virtual void ShowAxis()=0
Bool_t IsDelayed() const
Check if shape drawing is delayed.
void DoName()
Perform name change.
virtual const char * GetName() const
Get the shape name.
void SetNumAttr(EAttribute attr=kNEAAnyNumber)
virtual void SetDimensions(Double_t *param)
set arb8 params in one step :
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.
ClassImp(TGeoTrd2Editor) enum ETGeoTrd2Wid
Mother of all ROOT objects.
virtual UInt_t GetDefaultHeight() const
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.
virtual void MakeTitle(const char *title)
Create attribute frame title.
virtual ~TGeoTrd2Editor()
Destructor.