#include "TEveStraightLineSetEditor.h"
#include "TEveStraightLineSet.h"
#include "TVirtualPad.h"
#include "TColor.h"
#include "TGLabel.h"
#include "TGButton.h"
#include "TGNumberEntry.h"
#include "TGColorSelect.h"
#include "TGDoubleSlider.h"
ClassImp(TEveStraightLineSetEditor)
TEveStraightLineSetEditor::TEveStraightLineSetEditor(const TGWindow *p, Int_t width, Int_t height,
UInt_t options, Pixel_t back) :
TGedFrame(p, width, height, options | kVerticalFrame, back),
fM(0)
{
MakeTitle("TEveStraightLineSet");
TGHorizontalFrame* frame = new TGHorizontalFrame(this);
fRnrMarkers = new TGCheckButton(frame, "RnrMarkers");
frame->AddFrame(fRnrMarkers, new TGLayoutHints(kLHintsLeft, 1, 2, 1, 1));
fRnrMarkers->Connect
("Toggled(Bool_t)",
"TEveStraightLineSetEditor", this, "DoRnrMarkers()");
fRnrLines = new TGCheckButton(frame, "RnrLines");
frame->AddFrame(fRnrLines, new TGLayoutHints(kLHintsLeft, 2, 1, 1, 1));
fRnrLines->Connect
("Toggled(Bool_t)",
"TEveStraightLineSetEditor", this, "DoRnrLines()");
AddFrame(frame, new TGLayoutHints(kLHintsTop, 0, 0, 0, 0));
}
void TEveStraightLineSetEditor::SetModel(TObject* obj)
{
fM = dynamic_cast<TEveStraightLineSet*>(obj);
fRnrMarkers->SetState(fM->GetRnrMarkers() ? kButtonDown : kButtonUp);
fRnrLines->SetState(fM->GetRnrLines() ? kButtonDown : kButtonUp);
}
void TEveStraightLineSetEditor::DoRnrMarkers()
{
fM->SetRnrMarkers(fRnrMarkers->IsOn());
Update();
}
void TEveStraightLineSetEditor::DoRnrLines()
{
fM->SetRnrLines(fRnrLines->IsOn());
Update();
}
TEveStraightLineSetEditor.cxx:1 TEveStraightLineSetEditor.cxx:2 TEveStraightLineSetEditor.cxx:3 TEveStraightLineSetEditor.cxx:4 TEveStraightLineSetEditor.cxx:5 TEveStraightLineSetEditor.cxx:6 TEveStraightLineSetEditor.cxx:7 TEveStraightLineSetEditor.cxx:8 TEveStraightLineSetEditor.cxx:9 TEveStraightLineSetEditor.cxx:10 TEveStraightLineSetEditor.cxx:11 TEveStraightLineSetEditor.cxx:12 TEveStraightLineSetEditor.cxx:13 TEveStraightLineSetEditor.cxx:14 TEveStraightLineSetEditor.cxx:15 TEveStraightLineSetEditor.cxx:16 TEveStraightLineSetEditor.cxx:17 TEveStraightLineSetEditor.cxx:18 TEveStraightLineSetEditor.cxx:19 TEveStraightLineSetEditor.cxx:20 TEveStraightLineSetEditor.cxx:21 TEveStraightLineSetEditor.cxx:22 TEveStraightLineSetEditor.cxx:23 TEveStraightLineSetEditor.cxx:24 TEveStraightLineSetEditor.cxx:25 TEveStraightLineSetEditor.cxx:26 TEveStraightLineSetEditor.cxx:27 TEveStraightLineSetEditor.cxx:28 TEveStraightLineSetEditor.cxx:29 TEveStraightLineSetEditor.cxx:30 TEveStraightLineSetEditor.cxx:31 TEveStraightLineSetEditor.cxx:32 TEveStraightLineSetEditor.cxx:33 TEveStraightLineSetEditor.cxx:34 TEveStraightLineSetEditor.cxx:35 TEveStraightLineSetEditor.cxx:36 TEveStraightLineSetEditor.cxx:37 TEveStraightLineSetEditor.cxx:38 TEveStraightLineSetEditor.cxx:39 TEveStraightLineSetEditor.cxx:40 TEveStraightLineSetEditor.cxx:41 TEveStraightLineSetEditor.cxx:42 TEveStraightLineSetEditor.cxx:43 TEveStraightLineSetEditor.cxx:44 TEveStraightLineSetEditor.cxx:45 TEveStraightLineSetEditor.cxx:46 TEveStraightLineSetEditor.cxx:47 TEveStraightLineSetEditor.cxx:48 TEveStraightLineSetEditor.cxx:49 TEveStraightLineSetEditor.cxx:50 TEveStraightLineSetEditor.cxx:51 TEveStraightLineSetEditor.cxx:52 TEveStraightLineSetEditor.cxx:53 TEveStraightLineSetEditor.cxx:54 TEveStraightLineSetEditor.cxx:55 TEveStraightLineSetEditor.cxx:56 TEveStraightLineSetEditor.cxx:57 TEveStraightLineSetEditor.cxx:58 TEveStraightLineSetEditor.cxx:59 TEveStraightLineSetEditor.cxx:60 TEveStraightLineSetEditor.cxx:61 TEveStraightLineSetEditor.cxx:62 TEveStraightLineSetEditor.cxx:63 TEveStraightLineSetEditor.cxx:64 TEveStraightLineSetEditor.cxx:65 TEveStraightLineSetEditor.cxx:66 TEveStraightLineSetEditor.cxx:67 TEveStraightLineSetEditor.cxx:68 TEveStraightLineSetEditor.cxx:69 TEveStraightLineSetEditor.cxx:70 TEveStraightLineSetEditor.cxx:71 TEveStraightLineSetEditor.cxx:72 TEveStraightLineSetEditor.cxx:73 TEveStraightLineSetEditor.cxx:74 TEveStraightLineSetEditor.cxx:75 TEveStraightLineSetEditor.cxx:76 TEveStraightLineSetEditor.cxx:77 TEveStraightLineSetEditor.cxx:78 TEveStraightLineSetEditor.cxx:79 TEveStraightLineSetEditor.cxx:80 TEveStraightLineSetEditor.cxx:81 TEveStraightLineSetEditor.cxx:82 TEveStraightLineSetEditor.cxx:83 TEveStraightLineSetEditor.cxx:84 TEveStraightLineSetEditor.cxx:85 TEveStraightLineSetEditor.cxx:86 TEveStraightLineSetEditor.cxx:87 TEveStraightLineSetEditor.cxx:88 TEveStraightLineSetEditor.cxx:89 TEveStraightLineSetEditor.cxx:90 TEveStraightLineSetEditor.cxx:91 TEveStraightLineSetEditor.cxx:92 TEveStraightLineSetEditor.cxx:93