161 fApply->
Connect(
"Clicked()",
"TGeoTrd2Editor",
this,
"DoApply()");
162 fUndo->
Connect(
"Clicked()",
"TGeoTrd2Editor",
this,
"DoUndo()");
163 fShapeName->
Connect(
"TextChanged(const char *)",
"TGeoTrd2Editor",
this,
"DoModified()");
164 fEDx1->
Connect(
"ValueSet(Long_t)",
"TGeoTrd2Editor",
this,
"DoDx1()");
165 fEDx2->
Connect(
"ValueSet(Long_t)",
"TGeoTrd2Editor",
this,
"DoDx2()");
166 fEDy1->
Connect(
"ValueSet(Long_t)",
"TGeoTrd2Editor",
this,
"DoDy1()");
167 fEDy2->
Connect(
"ValueSet(Long_t)",
"TGeoTrd2Editor",
this,
"DoDy2()");
168 fEDz->
Connect(
"ValueSet(Long_t)",
"TGeoTrd2Editor",
this,
"DoDz()");
294 if (dx1 < 1.e-6 && dx2 < 1.e-6) {
314 if (dx1 < 1.e-6 && dx2 < 1.e-6) {
334 if (dy1 < 1.e-6 && dy2 < 1.e-6) {
354 if (dy1 < 1.e-6 && dy2 < 1.e-6) {
ULong_t Pixel_t
Pixel value.
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
R__EXTERN TGeoManager * gGeoManager
The base class for composite widgets (menu bars, list boxes, etc.).
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
virtual TList * GetList() const
virtual void Cleanup()
Cleanup and delete all objects contained in this composite frame.
virtual void SetSize(const TGDimension &s)
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
virtual UInt_t GetDefaultHeight() const
TGDimension GetSize() const
virtual Bool_t IsComposite() const
This class handles GUI labels.
This class describes layout hints used by the layout classes.
TGNumberEntry is a number entry input widget with up/down buttons.
TGNumberEntryField * GetNumberEntry() const
Get the number entry field.
void Associate(const TGWindow *w) override
Make w the window that will receive the generated messages.
void SetNumAttr(EAttribute attr=kNEAAnyNumber)
virtual Double_t GetNumber() const
virtual void SetNumber(Double_t val, Bool_t emit=kTRUE)
A text buffer is used in several widgets, like TGTextEntry, TGFileDialog, etc.
Yield an action as soon as it is clicked.
A TGTextEntry is a one line text input widget.
const char * GetText() const
virtual void SetToolTipText(const char *text, Long_t delayms=500)
Set tool tip text associated with this text entry.
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.
ROOT GUI Window base class.
Bool_t fInit
init flag for setting signals/slots
virtual void MakeTitle(const char *title)
Create attribute frame title.
Common base class for geombuilder editors.
void Update() override
Override Update from TGedFrame as fGedEditor can be null.
virtual void SetActive(Bool_t active=kTRUE)
Set active GUI attribute frames related to the selected object.
TVirtualGeoPainter * GetPainter() const
void Draw(Option_t *option="") override
Draw this shape.
const char * GetName() const override
Get the shape name.
static void Cleanup(TGCompositeFrame *frame)
Static method to cleanup hierarchically all daughters of a composite frame.
void DoName()
Perform name change.
~TGeoTrd2Editor() override
Destructor.
void SetModel(TObject *obj) override
Connect to the selected object.
virtual void ConnectSignals2Slots()
Connect signals to slots.
TGeoTrd2Editor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for trd2 editor.
void DoApply()
Slot for applying modifications.
void DoModified()
Slot for signaling modifications.
void DoDx1()
Slot for dx1.
void DoUndo()
Slot for undoing last operation.
void DoDx2()
Slot for dx2.
Bool_t IsDelayed() const
Check if shape drawing is delayed.
void DoDy2()
Slot for dy2.
void DoDy1()
Slot for dy1.
A trapezoid with only X varying with Z.
void ComputeBBox() override
compute bounding box for a trd2
void SetDimensions(Double_t *param) override
set arb8 params in one step :
virtual void SetName(const char *name)
Set the name of the TNamed.
Mother of all ROOT objects.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
virtual TClass * IsA() const
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 ShowAxis()=0
virtual Bool_t IsPaintingShape() const =0
virtual TView * GetView() const =0