#include "TEvePointSetArrayEditor.h"
#include "TEvePointSet.h"
#include "TEveGValuators.h"
#include "TVirtualPad.h"
#include "TColor.h"
#include "TGLabel.h"
#include "TGButton.h"
#include "TGNumberEntry.h"
#include "TGColorSelect.h"
#include "TGDoubleSlider.h"
ClassImp(TEvePointSetArrayEditor)
TEvePointSetArrayEditor::TEvePointSetArrayEditor(const TGWindow *p,
Int_t width, Int_t height,
UInt_t options, Pixel_t back) :
TGedFrame(p,width, height, options | kVerticalFrame, back),
fM(0),
fRange(0)
{
fM = 0;
MakeTitle("TEvePointSetArray");
fRange = new TEveGDoubleValuator(this,"Range", 200, 0);
fRange->SetNELength(6);
fRange->Build();
fRange->GetSlider()->SetWidth(224);
fRange->Connect("ValueSet()",
"TEvePointSetArrayEditor", this, "DoRange()");
AddFrame(fRange, new TGLayoutHints(kLHintsTop, 1, 1, 2, 1));
}
TEvePointSetArrayEditor::~TEvePointSetArrayEditor()
{
}
void TEvePointSetArrayEditor::SetModel(TObject* obj)
{
fM = dynamic_cast<TEvePointSetArray*>(obj);
fRange->SetLimits(fM->fMin, fM->fMax, TGNumberFormat::kNESRealTwo);
fRange->SetValues(fM->fCurMin, fM->fCurMax);
}
void TEvePointSetArrayEditor::DoRange()
{
fM->SetRange(fRange->GetMin(), fRange->GetMax());
Update();
}
Last change: Wed Jun 25 08:37:38 2008
Last generated: 2008-06-25 08:37
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.