Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
22
23////////////////////////////////////////////////////////////////////////////////
24/// Constructor.
25
27 UInt_t options, Pixel_t back) :
28 TGedFrame (p, width, height, options | kVerticalFrame, back),
29 fM (nullptr),
30 fRnrLine (nullptr),
31 fRnrPoints (nullptr),
32 fSmooth (nullptr)
33{
34 fPriority = 20;
35 {
37
38 fRnrPoints = new TGCheckButton(f, "Draw Marker");
39 f->AddFrame(fRnrPoints, new TGLayoutHints(kLHintsLeft, 2,1,0,0));
40 fRnrPoints->Connect("Toggled(Bool_t)", "TEveLineEditor", this, "DoRnrPoints()");
41
42 fRnrLine = new TGCheckButton(f, "Draw Line");
43 f->AddFrame(fRnrLine, new TGLayoutHints(kLHintsLeft, 1,2,0,0));
44 fRnrLine->Connect("Toggled(Bool_t)", "TEveLineEditor", this, "DoRnrLine()");
45
46 AddFrame(f, new TGLayoutHints(kLHintsTop, 0,0,2,1));
47 }
48 fSmooth = new TGCheckButton(this, "Smooth line");
50 fSmooth->Connect("Toggled(Bool_t)", "TEveLineEditor", this, "DoSmooth()");
51}
52
53////////////////////////////////////////////////////////////////////////////////
54/// Set model object.
55
64
65////////////////////////////////////////////////////////////////////////////////
66/// Slot for RnrLine.
67
73
74////////////////////////////////////////////////////////////////////////////////
75/// Slot for RnrPoints.
76
82
83////////////////////////////////////////////////////////////////////////////////
84/// Slot for anti-alias.
85
@ kVerticalFrame
Definition GuiTypes.h:381
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:40
#define f(i)
Definition RSha256.hxx:104
@ 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
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t width
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
void DoSmooth()
Slot for anti-alias.
TEveLineEditor(const TEveLineEditor &)
TGCheckButton * fRnrLine
void SetModel(TObject *obj) override
Set model object.
void DoRnrPoints()
Slot for RnrPoints.
void DoRnrLine()
Slot for RnrLine.
TGCheckButton * fSmooth
TGCheckButton * fRnrPoints
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:124
Bool_t fRnrPoints
Definition TEveLine.h:36
void SetSmooth(Bool_t r)
Set smooth rendering. Propagate to projected lines.
Definition TEveLine.cxx:162
void SetRnrPoints(Bool_t r)
Set rendering of points. Propagate to projected lines.
Definition TEveLine.cxx:143
Selects different options.
Definition TGButton.h:264
Bool_t IsOn() const override
Definition TGButton.h:310
void SetState(EButtonState state, Bool_t emit=kFALSE) override
Set check button state.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
Definition TGFrame.cxx:1109
A composite frame that layout their children in horizontal way.
Definition TGFrame.h:387
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:71
Int_t fPriority
location in GedEditor
Definition TGedFrame.h:53
Mother of all ROOT objects.
Definition TObject.h:41
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:865