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
34 TGeoNode *fNode; // Node object
35
36 Bool_t fIsEditable; // Flag that the medium can be changed
37 TGTextEntry *fNodeName; // Node name text entry
38 TGNumberEntry *fNodeNumber; // Copy number
39 TGeoVolume *fSelectedVolume; // Selected volume
40 TGLabel *fLSelVolume; // Selected volume label
41 TGPictureButton *fBSelVolume; // Button for selecting a volume
42 TGeoVolume *fSelectedMother; // Selected mother
43 TGLabel *fLSelMother; // Selected mother label
44 TGPictureButton *fBSelMother; // Button for selecting a mother volume
45 TGeoMatrix *fSelectedMatrix; // Selected matrix
46 TGLabel *fLSelMatrix; // Selected matrix label
47 TGPictureButton *fBSelMatrix; // Button for selecting a matrix
48 TGTextButton *fEditMother; // Check button for editing mother volume
49 TGTextButton *fEditVolume; // Check button for volume editing
50 TGTextButton *fEditMatrix; // Check button for matrix editing
51 TGTextButton *fApply; // Apply-Button to accept changes
52 TGTextButton *fCancel; // Cancel-Button
53 TGTextButton *fUndo; // Undo-Button
54
55 virtual void ConnectSignals2Slots(); // Connect the signals to the slots
56
57public:
58 TGeoNodeEditor(const TGWindow *p = 0,
59 Int_t width = 140, Int_t height = 30,
60 UInt_t options = kChildFrame,
62 virtual ~TGeoNodeEditor();
63 virtual void SetModel(TObject *obj);
64
65 void DoEditMother();
66 void DoEditVolume();
67 void DoEditMatrix();
68 void DoSelectMother();
69 void DoSelectVolume();
70 void DoSelectMatrix();
71 void DoNodeName();
72 void DoNodeNumber();
73 void DoApply();
74 void DoUndo();
75
76 ClassDef(TGeoNodeEditor,0) // TGeoNode editor
77};
78
79#endif
@ kChildFrame
Definition GuiTypes.h:379
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:40
#define ClassDef(name, id)
Definition Rtypes.h:325
include TDocParser_001 C image html pict1_TDocParser_001 png width
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:41
Editor class for TGeoNode objects.
void DoNodeNumber()
Change node copy number.
TGeoNode * fNode
TGNumberEntry * fNodeNumber
virtual void SetModel(TObject *obj)
Connect to a editable object.
void DoSelectMatrix()
Select the matrix.
TGLabel * fLSelVolume
void DoEditMother()
Edit the mother volume.
TGTextButton * fEditMatrix
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
virtual ~TGeoNodeEditor()
Destructor.
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
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:41
Manager for all editor tabs.
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.
Definition TGeoVolume.h:49
Mother of all ROOT objects.
Definition TObject.h:41