BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
MpdBoxSetEditor.h
Go to the documentation of this file.
1// -------------------------------------------------------------------------
2// ----- MpdBoxSetEditor header file -----
3// ----- Created 26/03/09 by T. Stockmanns -----
4// -------------------------------------------------------------------------
5
6/** MpdBoxSetEditor
7 * @author T. Stockmanns
8 * @since 26.3.2009
9 * Base class to display 3D Points in Eve as a BoxSet
10 * One has to overwrite the method GetVector which takes a TObject and writes out a TVector3 which is then taken as an
11 * input to place the points. If one wants to change the color of the points one has to overwrite the method GetValue.
12 * This method takes a TObject and an integer and translates this into an integer as input for the EveBoxSet method
13 * DigitValue
14 **
15 **/
16
17#ifndef MPDBOXSETEDITOR_H
18#define MPDBOXSETEDITOR_H
19
20#include "GuiTypes.h" // for Pixel_t
21#include "MpdBoxSet.h"
22#include "TGFrame.h" // for EFrameType::kChildFrame, etc
23#include "TGNumberEntry.h"
24#include "TGWindow.h"
25#include "TGedFrame.h"
26
28{
29 public:
30 MpdBoxSetEditor(const TGWindow* p = 0,
31 Int_t width = 170,
32 Int_t height = 30,
33 UInt_t options = kChildFrame,
35 virtual ~MpdBoxSetEditor() {}
36
37 virtual void Init();
38
39 virtual void SetModel(TObject* obj)
40 {
41 fM = dynamic_cast<MpdBoxSet*>(obj);
42 if (fM) {
43 fTimeWindowPlus->SetNumber(fM->GetTimeWindowPlus());
44 fTimeWindowMinus->SetNumber(fM->GetTimeWindowMinus());
45 }
46 }
47
48 virtual void TimeWindow();
49
53
54 protected:
57
58 private:
61
63};
64
65#endif
kChildFrame
ULong_t Pixel_t
int Int_t
#define ClassDef(name, id)
virtual void SetModel(TObject *obj)
MpdBoxSetEditor(const MpdBoxSetEditor &)=delete
TGNumberEntry * fTimeWindowMinus
TGVerticalFrame * fInfoFrame
MpdBoxSetEditor(const TGWindow *p=0, Int_t width=170, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
MpdBoxSetEditor & operator=(const MpdBoxSetEditor &)=delete
TGNumberEntry * fTimeWindowPlus
virtual void Init()
virtual void TimeWindow()
virtual ~MpdBoxSetEditor()
MpdBoxSet.
Definition MpdBoxSet.h:24
static Pixel_t GetDefaultFrameBackground()
TGedFrame(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())