Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TEveStraightLineSetEditor.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
13#include "TEveStraightLineSet.h"
14
15#include "TGButton.h"
16
17/** \class TEveStraightLineSetEditor
18\ingroup TEve
19Editor for TEveStraightLineSet 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 // Initialize widget pointers to 0
31{
32 MakeTitle("TEveStraightLineSet");
33
34 TGHorizontalFrame* frame = new TGHorizontalFrame(this);
35
36 fRnrMarkers = new TGCheckButton(frame, "RnrMarkers");
37 frame->AddFrame(fRnrMarkers, new TGLayoutHints(kLHintsLeft, 1, 2, 1, 1));
39 ("Toggled(Bool_t)",
40 "TEveStraightLineSetEditor", this, "DoRnrMarkers()");
41
42 fRnrLines = new TGCheckButton(frame, "RnrLines");
43 frame->AddFrame(fRnrLines, new TGLayoutHints(kLHintsLeft, 2, 1, 1, 1));
45 ("Toggled(Bool_t)",
46 "TEveStraightLineSetEditor", this, "DoRnrLines()");
47
48 AddFrame(frame, new TGLayoutHints(kLHintsTop, 0, 0, 0, 0));
49}
50
51////////////////////////////////////////////////////////////////////////////////
52/// Set model object.
53
55{
56 fM = dynamic_cast<TEveStraightLineSet*>(obj);
57
58 // Set values of widgets
61}
62
63////////////////////////////////////////////////////////////////////////////////
64/// Slot for RnrMarkers.
65
71
72////////////////////////////////////////////////////////////////////////////////
73/// Slot for RnrLines.
74
@ kVerticalFrame
Definition GuiTypes.h:381
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:40
@ kButtonDown
Definition TGButton.h:54
@ kButtonUp
Definition TGButton.h:53
@ kLHintsLeft
Definition TGLayout.h:24
@ 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 DoRnrMarkers()
Slot for RnrMarkers.
void DoRnrLines()
Slot for RnrLines.
void SetModel(TObject *obj) override
Set model object.
TEveStraightLineSetEditor(const TEveStraightLineSetEditor &)
Set of straight lines with optional markers along the lines.
virtual void SetRnrMarkers(Bool_t x)
virtual void SetRnrLines(Bool_t x)
virtual Bool_t GetRnrLines()
virtual Bool_t GetRnrMarkers()
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 MakeTitle(const char *title)
Create attribute frame title.
Definition TGedFrame.cxx:94
virtual void Update()
Update the current pad when an attribute is changed via GUI.
Definition TGedFrame.cxx:71
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