Logo ROOT  
Reference Guide
TEveLineEditor.cxx
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#include "TEveLineEditor.h"
13#include "TEveLine.h"
14
15#include "TGButton.h"
16
17/** \class TEveLineEditor
18\ingroup TEve
19Editor for TEveLine class.
20*/
21
23
24////////////////////////////////////////////////////////////////////////////////
25/// Constructor.
26
28 UInt_t options, Pixel_t back) :
29 TGedFrame (p, width, height, options | kVerticalFrame, back),
30 fM (0),
31 fRnrLine (0),
32 fRnrPoints (0),
33 fSmooth (0)
34{
35 fPriority = 20;
36 {
38
39 fRnrPoints = new TGCheckButton(f, "Draw Marker");
40 f->AddFrame(fRnrPoints, new TGLayoutHints(kLHintsLeft, 2,1,0,0));
41 fRnrPoints->Connect("Toggled(Bool_t)", "TEveLineEditor", this, "DoRnrPoints()");
42
43 fRnrLine = new TGCheckButton(f, "Draw Line");
44 f->AddFrame(fRnrLine, new TGLayoutHints(kLHintsLeft, 1,2,0,0));
45 fRnrLine->Connect("Toggled(Bool_t)", "TEveLineEditor", this, "DoRnrLine()");
46
47 AddFrame(f, new TGLayoutHints(kLHintsTop, 0,0,2,1));
48 }
49 fSmooth = new TGCheckButton(this, "Smooth line");
51 fSmooth->Connect("Toggled(Bool_t)", "TEveLineEditor", this, "DoSmooth()");
52}
53
54////////////////////////////////////////////////////////////////////////////////
55/// Set model object.
56
58{
59 fM = dynamic_cast<TEveLine*>(obj);
60
64}
65
66////////////////////////////////////////////////////////////////////////////////
67/// Slot for RnrLine.
68
70{
72 Update();
73}
74
75////////////////////////////////////////////////////////////////////////////////
76/// Slot for RnrPoints.
77
79{
81 Update();
82}
83
84////////////////////////////////////////////////////////////////////////////////
85/// Slot for anti-alias.
86
88{
90 Update();
91}
int Int_t
Definition: CPyCppyy.h:43
unsigned int UInt_t
Definition: CPyCppyy.h:44
@ kVerticalFrame
Definition: GuiTypes.h:381
ULong_t Pixel_t
Pixel value.
Definition: GuiTypes.h:40
#define f(i)
Definition: RSha256.hxx:104
#define ClassImp(name)
Definition: Rtypes.h:364
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
@ kButtonDown
Definition: TGButton.h:54
@ kButtonUp
Definition: TGButton.h:53
@ kLHintsLeft
Definition: TGLayout.h:24
@ kLHintsNormal
Definition: TGLayout.h:32
@ kLHintsTop
Definition: TGLayout.h:27
Editor for TEveLine class.
void DoSmooth()
Slot for anti-alias.
TEveLineEditor(const TEveLineEditor &)
TGCheckButton * fRnrLine
void DoRnrPoints()
Slot for RnrPoints.
TEveLine * fM
void DoRnrLine()
Slot for RnrLine.
TGCheckButton * fSmooth
TGCheckButton * fRnrPoints
virtual void SetModel(TObject *obj)
Set model object.
An arbitrary polyline with fixed line and marker attributes.
Definition: TEveLine.h:26
Bool_t fSmooth
Definition: TEveLine.h:37
Bool_t fRnrLine
Definition: TEveLine.h:35
void SetRnrLine(Bool_t r)
Set rendering of line. Propagate to projected lines.
Definition: TEveLine.cxx:125
Bool_t fRnrPoints
Definition: TEveLine.h:36
void SetSmooth(Bool_t r)
Set smooth rendering. Propagate to projected lines.
Definition: TEveLine.cxx:163
void SetRnrPoints(Bool_t r)
Set rendering of points. Propagate to projected lines.
Definition: TEveLine.cxx:144
Selects different options.
Definition: TGButton.h:264
virtual Bool_t IsOn() const
Definition: TGButton.h:311
virtual void SetState(EButtonState state, Bool_t emit=kFALSE)
Set check button state.
Definition: TGButton.cxx:1250
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
Definition: TGFrame.cxx:1117
A composite frame that layout their children in horizontal way.
Definition: TGFrame.h:386
This class describes layout hints used by the layout classes.
Definition: TGLayout.h:50
ROOT GUI Window base class.
Definition: TGWindow.h:23
Base frame for implementing GUI - a service class.
Definition: TGedFrame.h:27
virtual void Update()
Update the current pad when an attribute is changed via GUI.
Definition: TGedFrame.cxx:72
Int_t fPriority
location in GedEditor
Definition: TGedFrame.h:53
Mother of all ROOT objects.
Definition: TObject.h:37
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot.
Definition: TQObject.cxx:869