Logo ROOT   6.18/05
Reference Guide
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
ULong_t Pixel_t
Definition: GuiTypes.h:39
int Int_t
Definition: RtypesCore.h:41
unsigned int UInt_t
Definition: RtypesCore.h:42
bool Bool_t
Definition: RtypesCore.h:59
#define ClassDef(name, id)
Definition: Rtypes.h:326
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
@ kChildFrame
Definition: TGFrame.h:57
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
Definition: TGTab.h:62
Common base class for geombuilder editors.
Definition: TGeoGedFrame.h:13
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
TGeoNodeEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for node editor.
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:53
Mother of all ROOT objects.
Definition: TObject.h:37