Logo ROOT   6.18/05
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
17class TGCheckButton;
18class TGTextButton;
19
20class TEveTrans;
22
23
25{
26 TEveTransSubEditor(const TEveTransSubEditor&); // Not implemented
27 TEveTransSubEditor& operator=(const TEveTransSubEditor&); // Not implemented
28
29protected:
31
33
36
38
42
45
46public:
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
69{
70private:
71 TEveTransEditor(const TEveTransEditor&); // Not implemented
72 TEveTransEditor& operator=(const TEveTransEditor&); // Not implemented
73
74protected:
75 TEveTrans *fM; // Model object.
76 TEveTransSubEditor *fSE; // Actual editor widget.
77
78public:
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
ULong_t Pixel_t
Definition: GuiTypes.h:39
int Int_t
Definition: RtypesCore.h:41
unsigned int UInt_t
Definition: RtypesCore.h:42
#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
Composite GUI element for setting three numerical values (label, three number-entries).
Editor for TEveTrans class.
TEveTransSubEditor * fSE
TEveTransEditor(const TEveTransEditor &)
TEveTrans * fM
virtual void SetModel(TObject *obj)
Set model object.
virtual ~TEveTransEditor()
TEveTransEditor & operator=(const TEveTransEditor &)
Sub-editor for TEveTrans class.
TEveGTriVecValuator * GetScaleValuator()
void UseTrans()
Emit "UseTrans()" signal.
void DoUseTrans()
Slot for UseTrans.
TEveGTriVecValuator * fScale
TEveGTriVecValuator * GetPosValuator()
TGHorizontalFrame * fTopHorFrame
TGCheckButton * fUseTrans
void DoEditTrans()
Slot for EditTrans.
TGTextButton * fUpdate
TEveGTriVecValuator * GetRotValuator()
void TransChanged()
Set transformation values from widget and emit "TransChanged()" signal.
void SetTransFromData()
Set model object from widget data.
void SetModel(TEveTrans *t)
Set model object.
void DoTransChanged()
Slot for TransChanged.
TGVerticalFrame * fEditTransFrame
TEveGTriVecValuator * fRot
virtual ~TEveTransSubEditor()
TGCheckButton * fEditTrans
TGCheckButton * fAutoUpdate
TEveTransSubEditor(const TEveTransSubEditor &)
TEveGTriVecValuator * fPos
TEveTransSubEditor & operator=(const TEveTransSubEditor &)
TEveTrans is a 4x4 transformation matrix for homogeneous coordinates stored internally in a column-ma...
Definition: TEveTrans.h:27
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
Mother of all ROOT objects.
Definition: TObject.h:37