Logo ROOT   6.08/07
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
TEveTrans is a 4x4 transformation matrix for homogeneous coordinates stored internally in a column-ma...
Definition: TEveTrans.h:26
Composite GUI element for setting three numerical values (label, three number-entries).
void DoUseTrans()
Slot for UseTrans.
void DoTransChanged()
Slot for TransChanged.
TEveTrans * fM
void UseTrans()
Emit "UseTrans()" signal.
TEveGTriVecValuator * GetScaleValuator()
int Int_t
Definition: RtypesCore.h:41
TGTextButton * fUpdate
void DoEditTrans()
Slot for EditTrans.
#define ClassDef(name, id)
Definition: Rtypes.h:254
ULong_t Pixel_t
Definition: GuiTypes.h:41
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
virtual ~TEveTransSubEditor()
TGVerticalFrame * fEditTransFrame
TGCheckButton * fAutoUpdate
TEveGTriVecValuator * GetRotValuator()
void TransChanged()
Set transformation values from widget and emit "TransChanged()" signal.
TEveTransSubEditor & operator=(const TEveTransSubEditor &)
unsigned int UInt_t
Definition: RtypesCore.h:42
Editor for TEveTrans class.
TGCheckButton * fEditTrans
void SetTransFromData()
Set model object from widget data.
TEveGTriVecValuator * GetPosValuator()
TEveTransSubEditor(const TEveTransSubEditor &)
TEveTransSubEditor * fSE
Sub-editor for TEveTrans class.
void SetModel(TEveTrans *t)
Set model object.
virtual ~TEveTransEditor()
Mother of all ROOT objects.
Definition: TObject.h:37
TEveGTriVecValuator * fScale
TGCheckButton * fUseTrans
TEveGTriVecValuator * fRot
TGHorizontalFrame * fTopHorFrame
TEveGTriVecValuator * fPos