Logo ROOT  
Reference Guide
TEvePointSetArrayEditor.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 "TEvePointSet.h"
14 #include "TEveGValuators.h"
15 
16 #include "TGDoubleSlider.h"
17 
18 /** \class TEvePointSetArrayEditor
19 \ingroup TEve
20 Editor for TEvePointSetArray class.
21 */
22 
24 
25 ////////////////////////////////////////////////////////////////////////////////
26 /// Constructor.
27 
29  Int_t width, Int_t height,
30  UInt_t options, Pixel_t back) :
31  TGedFrame(p,width, height, options | kVerticalFrame, back),
32  fM(0),
33  fRange(0)
34 {
35  fM = 0;
36  MakeTitle("TEvePointSetArray");
37 
38  fRange = new TEveGDoubleValuator(this,"Range", 200, 0);
39  fRange->SetNELength(6);
40  fRange->Build();
41  fRange->GetSlider()->SetWidth(224);
42  fRange->Connect("ValueSet()",
43  "TEvePointSetArrayEditor", this, "DoRange()");
44  AddFrame(fRange, new TGLayoutHints(kLHintsTop, 1, 1, 2, 1));
45 }
46 
47 ////////////////////////////////////////////////////////////////////////////////
48 /// Destructor.
49 
51 {
52 }
53 
54 ////////////////////////////////////////////////////////////////////////////////
55 /// Set model object.
56 
58 {
59  fM = dynamic_cast<TEvePointSetArray*>(obj);
60 
61  // printf("FullRange(%f, %f) Selected(%f,%f)\n",
62  // fM->GetMin(), fM->GetMax(), fM->GetCurMin(), fM->GetCurMax());
63 
66 }
67 
68 ////////////////////////////////////////////////////////////////////////////////
69 /// Slot for setting the range of the separating quantity.
70 
72 {
74  Update();
75 }
TEvePointSetArrayEditor::TEvePointSetArrayEditor
TEvePointSetArrayEditor(const TEvePointSetArrayEditor &)
TGWindow
ROOT GUI Window base class.
Definition: TGWindow.h:23
TEvePointSet.h
TGDoubleSlider.h
TEvePointSetArray::SetRange
void SetRange(Double_t min, Double_t max)
Set active range of the separating quantity.
Definition: TEvePointSet.cxx:710
TEvePointSetArrayEditor::fM
TEvePointSetArray * fM
Definition: TEvePointSetArrayEditor.h:32
kLHintsTop
@ kLHintsTop
Definition: TGLayout.h:27
Pixel_t
ULong_t Pixel_t
Pixel value.
Definition: GuiTypes.h:40
TEvePointSetArray::fCurMax
Double_t fCurMax
Definition: TEvePointSet.h:123
ClassImp
#define ClassImp(name)
Definition: Rtypes.h:364
kVerticalFrame
@ kVerticalFrame
Definition: GuiTypes.h:381
width
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
TEvePointSetArray::fMax
Double_t fMax
Definition: TEvePointSet.h:123
TEveGDoubleValuator::GetMin
Float_t GetMin() const
Definition: TEveGValuators.h:139
TGNumberFormat::kNESRealTwo
@ kNESRealTwo
Fixed fraction real, two digit.
Definition: TGNumberEntry.h:27
TGedFrame::Update
virtual void Update()
Update the current pad when an attribute is changed via GUI.
Definition: TGedFrame.cxx:72
TEveGValuators.h
TEveGDoubleValuator::Build
virtual void Build(Bool_t connect=kTRUE)
Create sub-components (label, number entries, double-slider).
Definition: TEveGValuators.cxx:264
TEveGDoubleValuator::SetLimits
void SetLimits(Int_t min, Int_t max)
Set limits of the represented range for integer values.
Definition: TEveGValuators.cxx:330
TEvePointSetArrayEditor::DoRange
void DoRange()
Slot for setting the range of the separating quantity.
Definition: TEvePointSetArrayEditor.cxx:71
TGLayoutHints
This class describes layout hints used by the layout classes.
Definition: TGLayout.h:50
TEveGDoubleValuator::SetValues
void SetValues(Float_t min, Float_t max, Bool_t emit=kFALSE)
Set min/max values, optionally emit signal.
Definition: TEveGValuators.cxx:394
TEveGValuatorBase::SetNELength
void SetNELength(Int_t l)
Definition: TEveGValuators.h:46
TEveGDoubleValuator
Composite GUI element for selection of range (label, two number-entries and double-slider).
Definition: TEveGValuators.h:109
TEveGDoubleValuator::GetMax
Float_t GetMax() const
Definition: TEveGValuators.h:140
TEvePointSetArrayEditor::SetModel
virtual void SetModel(TObject *obj)
Set model object.
Definition: TEvePointSetArrayEditor.cxx:57
TGedFrame::MakeTitle
virtual void MakeTitle(const char *title)
Create attribute frame title.
Definition: TGedFrame.cxx:95
TEveGDoubleValuator::GetSlider
TGDoubleHSlider * GetSlider()
Definition: TEveGValuators.h:129
unsigned int
TEvePointSetArrayEditor::fRange
TEveGDoubleValuator * fRange
Definition: TEvePointSetArrayEditor.h:34
TEvePointSetArrayEditor::~TEvePointSetArrayEditor
~TEvePointSetArrayEditor()
Destructor.
Definition: TEvePointSetArrayEditor.cxx:50
TGedFrame
Base frame for implementing GUI - a service class.
Definition: TGedFrame.h:27
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:869
TGFrame::SetWidth
virtual void SetWidth(UInt_t w)
Definition: TGFrame.h:246
TEvePointSetArrayEditor.h
TObject
Mother of all ROOT objects.
Definition: TObject.h:37
TEvePointSetArrayEditor
Editor for TEvePointSetArray class.
Definition: TEvePointSetArrayEditor.h:27
TGCompositeFrame::AddFrame
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
Definition: TGFrame.cxx:1117
TEvePointSetArray::fMin
Double_t fMin
Index of the last filled TEvePointSet.
Definition: TEvePointSet.h:122
TEvePointSetArray::fCurMin
Double_t fCurMin
Definition: TEvePointSet.h:122
int
TEvePointSetArray
An array of point-sets with each point-set playing a role of a bin in a histogram.
Definition: TEvePointSet.h:111