Logo ROOT  
Reference Guide
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
19 Editor for TEveStraightLineSet 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  // Initialize widget pointers to 0
32 {
33  MakeTitle("TEveStraightLineSet");
34 
35  TGHorizontalFrame* frame = new TGHorizontalFrame(this);
36 
37  fRnrMarkers = new TGCheckButton(frame, "RnrMarkers");
38  frame->AddFrame(fRnrMarkers, new TGLayoutHints(kLHintsLeft, 1, 2, 1, 1));
40  ("Toggled(Bool_t)",
41  "TEveStraightLineSetEditor", this, "DoRnrMarkers()");
42 
43  fRnrLines = new TGCheckButton(frame, "RnrLines");
44  frame->AddFrame(fRnrLines, new TGLayoutHints(kLHintsLeft, 2, 1, 1, 1));
46  ("Toggled(Bool_t)",
47  "TEveStraightLineSetEditor", this, "DoRnrLines()");
48 
49  AddFrame(frame, new TGLayoutHints(kLHintsTop, 0, 0, 0, 0));
50 }
51 
52 ////////////////////////////////////////////////////////////////////////////////
53 /// Set model object.
54 
56 {
57  fM = dynamic_cast<TEveStraightLineSet*>(obj);
58 
59  // Set values of widgets
62 }
63 
64 ////////////////////////////////////////////////////////////////////////////////
65 /// Slot for RnrMarkers.
66 
68 {
70  Update();
71 }
72 
73 ////////////////////////////////////////////////////////////////////////////////
74 /// Slot for RnrLines.
75 
77 {
79  Update();
80 }
TGWindow
Definition: TGWindow.h:31
TGCheckButton::SetState
virtual void SetState(EButtonState state, Bool_t emit=kFALSE)
Set check button state.
Definition: TGButton.cxx:1203
kButtonDown
@ kButtonDown
Definition: TGButton.h:60
kLHintsTop
@ kLHintsTop
Definition: TGLayout.h:40
Pixel_t
ULong_t Pixel_t
Definition: GuiTypes.h:39
ClassImp
#define ClassImp(name)
Definition: Rtypes.h:364
TGCheckButton::IsOn
virtual Bool_t IsOn() const
Definition: TGButton.h:311
kVerticalFrame
@ kVerticalFrame
Definition: GuiTypes.h:381
kLHintsLeft
@ kLHintsLeft
Definition: TGLayout.h:37
TEveStraightLineSet.h
kButtonUp
@ kButtonUp
Definition: TGButton.h:59
width
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
TEveStraightLineSet
Definition: TEveStraightLineSet.h:31
TGHorizontalFrame
Definition: TGFrame.h:423
TGedFrame::Update
virtual void Update()
Update the current pad when an attribute is changed via GUI.
Definition: TGedFrame.cxx:73
TEveStraightLineSetEditor::fM
TEveStraightLineSet * fM
Definition: TEveStraightLineSetEditor.h:30
TEveStraightLineSetEditor.h
TEveStraightLineSetEditor
Definition: TEveStraightLineSetEditor.h:23
TGCheckButton
Definition: TGButton.h:264
TEveStraightLineSet::GetRnrMarkers
virtual Bool_t GetRnrMarkers()
Definition: TEveStraightLineSet.h:104
TEveStraightLineSet::GetRnrLines
virtual Bool_t GetRnrLines()
Definition: TEveStraightLineSet.h:105
TEveStraightLineSetEditor::TEveStraightLineSetEditor
TEveStraightLineSetEditor(const TEveStraightLineSetEditor &)
TGLayoutHints
Definition: TGLayout.h:57
TGedFrame::MakeTitle
virtual void MakeTitle(const char *title)
Create attribute frame title.
Definition: TGedFrame.cxx:96
unsigned int
TGedFrame
Definition: TGedFrame.h:33
TQObject::Connect
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:864
TObject
Definition: TObject.h:37
TGButton.h
TEveStraightLineSetEditor::DoRnrLines
void DoRnrLines()
Slot for RnrLines.
Definition: TEveStraightLineSetEditor.cxx:76
TEveStraightLineSetEditor::fRnrMarkers
TGCheckButton * fRnrMarkers
Definition: TEveStraightLineSetEditor.h:33
TEveStraightLineSet::SetRnrLines
virtual void SetRnrLines(Bool_t x)
Definition: TEveStraightLineSet.h:109
TGCompositeFrame::AddFrame
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
Definition: TGFrame.cxx:1102
TEveStraightLineSetEditor::fRnrLines
TGCheckButton * fRnrLines
Definition: TEveStraightLineSetEditor.h:34
TEveStraightLineSet::SetRnrMarkers
virtual void SetRnrMarkers(Bool_t x)
Definition: TEveStraightLineSet.h:108
TEveStraightLineSetEditor::SetModel
virtual void SetModel(TObject *obj)
Set model object.
Definition: TEveStraightLineSetEditor.cxx:55
int
TEveStraightLineSetEditor::DoRnrMarkers
void DoRnrMarkers()
Slot for RnrMarkers.
Definition: TEveStraightLineSetEditor.cxx:67