Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGeoNodeEditor.h
Go to the documentation of this file.
1// @(#):$Id$
2// Author: M.Gheata
3
4/*************************************************************************
5 * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TGeoNodeEditor
13#define ROOT_TGeoNodeEditor
14
15#include "TGWidget.h"
16#include "TGeoGedFrame.h"
17
18class TGeoNode;
19class TGeoVolume;
20class TGeoMatrix;
21class TGTextEntry;
22class TGNumberEntry;
23class TGTab;
24class TGComboBox;
25class TGTextButton;
26class TGPictureButton;
27class TGCheckButton;
28class TGeoTabManager;
29
31
32protected:
33 TGeoNode *fNode; // Node object
34
35 Bool_t fIsEditable; // Flag that the medium can be changed
36 TGTextEntry *fNodeName; // Node name text entry
37 TGNumberEntry *fNodeNumber; // Copy number
38 TGeoVolume *fSelectedVolume; // Selected volume
39 TGLabel *fLSelVolume; // Selected volume label
40 TGPictureButton *fBSelVolume; // Button for selecting a volume
41 TGeoVolume *fSelectedMother; // Selected mother
42 TGLabel *fLSelMother; // Selected mother label
43 TGPictureButton *fBSelMother; // Button for selecting a mother volume
44 TGeoMatrix *fSelectedMatrix; // Selected matrix
45 TGLabel *fLSelMatrix; // Selected matrix label
46 TGPictureButton *fBSelMatrix; // Button for selecting a matrix
47 TGTextButton *fEditMother; // Check button for editing mother volume
48 TGTextButton *fEditVolume; // Check button for volume editing
49 TGTextButton *fEditMatrix; // Check button for matrix editing
50 TGTextButton *fApply; // Apply-Button to accept changes
51 TGTextButton *fCancel; // Cancel-Button
52 TGTextButton *fUndo; // Undo-Button
53
54 virtual void ConnectSignals2Slots(); // Connect the signals to the slots
55
56public:
57 TGeoNodeEditor(const TGWindow *p = nullptr, Int_t width = 140, Int_t height = 30, UInt_t options = kChildFrame,
59 ~TGeoNodeEditor() override;
60 void SetModel(TObject *obj) override;
61
62 void DoEditMother();
63 void DoEditVolume();
64 void DoEditMatrix();
65 void DoSelectMother();
66 void DoSelectVolume();
67 void DoSelectMatrix();
68 void DoNodeName();
69 void DoNodeNumber();
70 void DoApply();
71 void DoUndo();
72
73 ClassDefOverride(TGeoNodeEditor, 0) // TGeoNode editor
74};
75
76#endif
@ kChildFrame
Definition GuiTypes.h:379
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:40
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t width
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
Selects different options.
Definition TGButton.h:264
A combobox (also known as a drop down listbox) allows the selection of one item out of a list of item...
Definition TGComboBox.h:47
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition TGFrame.cxx:683
This class handles GUI labels.
Definition TGLabel.h:24
TGNumberEntry is a number entry input widget with up/down buttons.
Yield an action as soon as it is clicked.
Definition TGButton.h:228
A tab widget contains a set of composite frames each with a little tab with a name (like a set of fol...
Definition TGTab.h:46
Yield an action as soon as it is clicked.
Definition TGButton.h:142
A TGTextEntry is a one line text input widget.
Definition TGTextEntry.h:24
ROOT GUI Window base class.
Definition TGWindow.h:23
Common base class for geombuilder editors.
Geometrical transformation package.
Definition TGeoMatrix.h:38
Editor class for TGeoNode objects.
void DoNodeNumber()
Change node copy number.
TGeoNode * fNode
TGNumberEntry * fNodeNumber
void DoSelectMatrix()
Select the matrix.
TGLabel * fLSelVolume
void DoEditMother()
Edit the mother volume.
TGTextButton * fEditMatrix
~TGeoNodeEditor() override
Destructor.
void DoEditMatrix()
Edit selected material.
void DoSelectMother()
Select the mother volume.
TGTextButton * fEditVolume
void DoUndo()
Slot for undoing last operation.
TGTextButton * fApply
TGTextButton * fEditMother
TGLabel * fLSelMother
TGTextEntry * fNodeName
TGPictureButton * fBSelMatrix
void DoEditVolume()
Edit selected volume.
virtual void ConnectSignals2Slots()
Connect signals to slots.
TGLabel * fLSelMatrix
TGeoVolume * fSelectedMother
void DoApply()
Slot for applying modifications.
TGTextButton * fCancel
TGeoVolume * fSelectedVolume
void SetModel(TObject *obj) override
Connect to a editable object.
TGPictureButton * fBSelMother
void DoSelectVolume()
Select the volume.
TGPictureButton * fBSelVolume
TGTextButton * fUndo
TGeoMatrix * fSelectedMatrix
void DoNodeName()
Change node name.
A node represent a volume positioned inside another.They store links to both volumes and to the TGeoM...
Definition TGeoNode.h:39
Manager for all editor tabs.
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.
Definition TGeoVolume.h:43
Mother of all ROOT objects.
Definition TObject.h:41