65 fShapeName->SetToolTipText(
"Enter the parallelepiped name");
76 fEDx->Resize(100,
fEDx->GetDefaultHeight());
79 fEDx->Associate(
this);
88 fEDy->Resize(100,
fEDy->GetDefaultHeight());
91 fEDy->Associate(
this);
100 fEDz->Resize(100,
fEDz->GetDefaultHeight());
103 fEDz->Associate(
this);
113 nef->
SetToolTipText(
"Enter the angle with respect to Y axis [deg]");
125 nef->
SetToolTipText(
"Enter the theta angle of the para axis [deg]");
135 fEPhi->Resize(100,
fEPhi->GetDefaultHeight());
137 nef->
SetToolTipText(
"Enter the phi angle of the para axis [deg]");
138 fEPhi->Associate(
this);
155 fUndo->Associate(
this);
179 fApply->Connect(
"Clicked()",
"TGeoParaEditor",
this,
"DoApply()");
180 fUndo->Connect(
"Clicked()",
"TGeoParaEditor",
this,
"DoUndo()");
181 fShapeName->Connect(
"TextChanged(const char *)",
"TGeoParaEditor",
this,
"DoModified()");
182 fEDx->Connect(
"ValueSet(Long_t)",
"TGeoParaEditor",
this,
"DoX()");
183 fEDy->Connect(
"ValueSet(Long_t)",
"TGeoParaEditor",
this,
"DoY()");
184 fEDz->Connect(
"ValueSet(Long_t)",
"TGeoParaEditor",
this,
"DoZ()");
185 fEAlpha->Connect(
"ValueSet(Long_t)",
"TGeoParaEditor",
this,
"DoAlpha()");
186 fETheta->Connect(
"ValueSet(Long_t)",
"TGeoParaEditor",
this,
"DoTheta()");
187 fEPhi->Connect(
"ValueSet(Long_t)",
"TGeoParaEditor",
this,
"DoPhi()");
188 fEDx->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoParaEditor",
this,
"DoModified()");
189 fEDy->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoParaEditor",
this,
"DoModified()");
190 fEDz->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoParaEditor",
this,
"DoModified()");
191 fEAlpha->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoParaEditor",
this,
"DoModified()");
192 fETheta->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoParaEditor",
this,
"DoModified()");
193 fEPhi->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoParaEditor",
this,
"DoModified()");
213 const char *sname =
fShape->GetName();
214 if (!strcmp(sname,
fShape->ClassName()))
271 fShape->SetDimensions(param);
280 fPad->GetView()->ShowAxis();
400 if (phi < 0 || phi > 360) {
402 fEPhi->SetNumber(phi);
ULong_t Pixel_t
Pixel value.
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
double Double_t
Double 8 bytes.
externTGeoManager * gGeoManager
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.
TGCompositeFrame(const TGCompositeFrame &)=delete
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.
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.
virtual void SetToolTipText(const char *text, Long_t delayms=500)
Set tool tip text associated with this text entry.
ROOT GUI Window base class.
Bool_t fInit
init flag for setting signals/slots
virtual void MakeTitle(const char *title)
Create attribute frame title.
void Update() override
Override Update from TGedFrame as fGedEditor can be null.
TGeoGedFrame(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor.
virtual void SetActive(Bool_t active=kTRUE)
Set active GUI attribute frames related to the selected object.
void DoName()
Slot for name.
void DoPhi()
Slot for phi.
TGeoParaEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for para editor.
~TGeoParaEditor() override
Destructor.
Bool_t IsDelayed() const
Check if shape drawing is delayed.
void SetModel(TObject *obj) override
Connect to the selected object.
void DoAlpha()
Slot for alpha.
void DoUndo()
Slot for undoing last operation.
void DoModified()
Slot for notifying modifications.
void DoTheta()
Slot for theta.
void DoApply()
Slot for applying current settings.
virtual void ConnectSignals2Slots()
Connect signals to slots.
static void Cleanup(TGCompositeFrame *frame)
Static method to cleanup hierarchically all daughters of a composite frame.
Mother of all ROOT objects.
virtual TClass * IsA() const
virtual void SetRange(const Double_t *min, const Double_t *max)=0
T1 Sign(T1 a, T2 b)
Returns a value with the magnitude of a and the sign of b.
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.