Logo ROOT  
Reference Guide
TEveTransEditor.h
Go to the documentation of this file.
1 // @(#)root/eve:$Id$
2 // Authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2007, 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_TEveTransEditor
13 #define ROOT_TEveTransEditor
14 
15 #include "TGedFrame.h"
16 
17 class TGCheckButton;
18 class TGTextButton;
19 
20 class TEveTrans;
22 
23 
25 {
26  TEveTransSubEditor(const TEveTransSubEditor&); // Not implemented
27  TEveTransSubEditor& operator=(const TEveTransSubEditor&); // Not implemented
28 
29 protected:
31 
33 
36 
38 
42 
45 
46 public:
48  virtual ~TEveTransSubEditor() {}
49 
50  void SetModel(TEveTrans* t);
51  void SetTransFromData();
52 
53  void UseTrans(); //*SIGNAL*
54  void TransChanged(); //*SIGNAL*
55 
56  void DoUseTrans();
57  void DoEditTrans();
58  void DoTransChanged();
59 
63 
64  ClassDef(TEveTransSubEditor, 0); // Sub-editor for TEveTrans class.
65 };
66 
67 
68 class TEveTransEditor : public TGedFrame
69 {
70 private:
71  TEveTransEditor(const TEveTransEditor&); // Not implemented
72  TEveTransEditor& operator=(const TEveTransEditor&); // Not implemented
73 
74 protected:
75  TEveTrans *fM; // Model object.
76  TEveTransSubEditor *fSE; // Actual editor widget.
77 
78 public:
79  TEveTransEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30, UInt_t options = kChildFrame, Pixel_t back=GetDefaultFrameBackground());
80  virtual ~TEveTransEditor() {}
81 
82  virtual void SetModel(TObject* obj);
83 
84  ClassDef(TEveTransEditor, 0); // Editor for TEveTrans class.
85 };
86 
87 #endif
TEveTransSubEditor::TEveTransSubEditor
TEveTransSubEditor(const TEveTransSubEditor &)
TGWindow
Definition: TGWindow.h:31
TEveTrans
Definition: TEveTrans.h:26
TEveTransSubEditor
Definition: TEveTransEditor.h:24
TEveTransSubEditor::fEditTrans
TGCheckButton * fEditTrans
Definition: TEveTransEditor.h:35
TEveGTriVecValuator
Definition: TEveGValuators.h:150
TEveTransEditor::fSE
TEveTransSubEditor * fSE
Definition: TEveTransEditor.h:76
TEveTransEditor::operator=
TEveTransEditor & operator=(const TEveTransEditor &)
Pixel_t
ULong_t Pixel_t
Definition: GuiTypes.h:39
TEveTransSubEditor::DoEditTrans
void DoEditTrans()
Slot for EditTrans.
Definition: TEveTransEditor.cxx:204
width
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
TGTextButton
Definition: TGButton.h:142
TEveTransEditor::fM
TEveTrans * fM
Definition: TEveTransEditor.h:75
TGFrame::GetDefaultFrameBackground
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:668
TGHorizontalFrame
Definition: TGFrame.h:423
TEveTransSubEditor::fTrans
TEveTrans * fTrans
Definition: TEveTransEditor.h:30
TEveTransEditor::TEveTransEditor
TEveTransEditor(const TEveTransEditor &)
TEveTransSubEditor::fTopHorFrame
TGHorizontalFrame * fTopHorFrame
Definition: TEveTransEditor.h:32
TGCheckButton
Definition: TGButton.h:264
TEveTransSubEditor::fPos
TEveGTriVecValuator * fPos
Definition: TEveTransEditor.h:39
TEveTransSubEditor::operator=
TEveTransSubEditor & operator=(const TEveTransSubEditor &)
TGedFrame.h
TGVerticalFrame
Definition: TGFrame.h:412
TEveTransSubEditor::TransChanged
void TransChanged()
Set transformation values from widget and emit "TransChanged()" signal.
Definition: TEveTransEditor.cxx:186
TEveTransSubEditor::fAutoUpdate
TGCheckButton * fAutoUpdate
Definition: TEveTransEditor.h:43
TEveTransSubEditor::DoTransChanged
void DoTransChanged()
Slot for TransChanged.
Definition: TEveTransEditor.cxx:213
TEveTransSubEditor::GetRotValuator
TEveGTriVecValuator * GetRotValuator()
Definition: TEveTransEditor.h:61
TEveTransSubEditor::DoUseTrans
void DoUseTrans()
Slot for UseTrans.
Definition: TEveTransEditor.cxx:195
TEveTransSubEditor::SetTransFromData
void SetTransFromData()
Set model object from widget data.
Definition: TEveTransEditor.cxx:163
TEveTransEditor::~TEveTransEditor
virtual ~TEveTransEditor()
Definition: TEveTransEditor.h:80
TEveTransSubEditor::SetModel
void SetModel(TEveTrans *t)
Set model object.
Definition: TEveTransEditor.cxx:126
TEveTransEditor
Definition: TEveTransEditor.h:68
TEveTransEditor::SetModel
virtual void SetModel(TObject *obj)
Set model object.
Definition: TEveTransEditor.cxx:246
unsigned int
TEveTransSubEditor::GetScaleValuator
TEveGTriVecValuator * GetScaleValuator()
Definition: TEveTransEditor.h:62
TGedFrame
Definition: TGedFrame.h:33
TEveTransSubEditor::UseTrans
void UseTrans()
Emit "UseTrans()" signal.
Definition: TEveTransEditor.cxx:178
TEveTransSubEditor::fUpdate
TGTextButton * fUpdate
Definition: TEveTransEditor.h:44
TObject
Definition: TObject.h:37
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TEveTransSubEditor::~TEveTransSubEditor
virtual ~TEveTransSubEditor()
Definition: TEveTransEditor.h:48
TEveTransSubEditor::fUseTrans
TGCheckButton * fUseTrans
Definition: TEveTransEditor.h:34
TEveTransSubEditor::GetPosValuator
TEveGTriVecValuator * GetPosValuator()
Definition: TEveTransEditor.h:60
TEveTransSubEditor::fEditTransFrame
TGVerticalFrame * fEditTransFrame
Definition: TEveTransEditor.h:37
TEveTransSubEditor::fRot
TEveGTriVecValuator * fRot
Definition: TEveTransEditor.h:40
TEveTransSubEditor::fScale
TEveGTriVecValuator * fScale
Definition: TEveTransEditor.h:41
kChildFrame
@ kChildFrame
Definition: GuiTypes.h:379
int