BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
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
27
class
MpdBoxSetEditor
:
public
TGedFrame
28
{
29
public
:
30
MpdBoxSetEditor
(
const
TGWindow
* p = 0,
31
Int_t
width = 170,
32
Int_t
height = 30,
33
UInt_t options =
kChildFrame
,
34
Pixel_t
back =
GetDefaultFrameBackground
());
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
50
TGVerticalFrame
*
fInfoFrame
;
51
TGNumberEntry
*
fTimeWindowPlus
;
52
TGNumberEntry
*
fTimeWindowMinus
;
53
54
protected
:
55
TObject
*
fObject
;
56
MpdBoxSet
*
fM
;
57
58
private
:
59
MpdBoxSetEditor
(
const
MpdBoxSetEditor
&) =
delete
;
60
MpdBoxSetEditor
&
operator=
(
const
MpdBoxSetEditor
&) =
delete
;
61
62
ClassDef
(
MpdBoxSetEditor
, 2);
63
};
64
65
#endif
GuiTypes.h
kChildFrame
kChildFrame
Pixel_t
ULong_t Pixel_t
Int_t
int Int_t
ClassDef
#define ClassDef(name, id)
TGFrame.h
TGNumberEntry.h
TGWindow.h
TGedFrame.h
MpdBoxSetEditor
MpdBoxSetEditor.
Definition
MpdBoxSetEditor.h:28
MpdBoxSetEditor::SetModel
virtual void SetModel(TObject *obj)
Definition
MpdBoxSetEditor.h:39
MpdBoxSetEditor::MpdBoxSetEditor
MpdBoxSetEditor(const MpdBoxSetEditor &)=delete
MpdBoxSetEditor::fTimeWindowMinus
TGNumberEntry * fTimeWindowMinus
Definition
MpdBoxSetEditor.h:52
MpdBoxSetEditor::fInfoFrame
TGVerticalFrame * fInfoFrame
Definition
MpdBoxSetEditor.h:50
MpdBoxSetEditor::MpdBoxSetEditor
MpdBoxSetEditor(const TGWindow *p=0, Int_t width=170, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
MpdBoxSetEditor::Init
virtual void Init()
MpdBoxSetEditor::TimeWindow
virtual void TimeWindow()
MpdBoxSetEditor::operator=
MpdBoxSetEditor & operator=(const MpdBoxSetEditor &)=delete
MpdBoxSetEditor::fObject
TObject * fObject
Definition
MpdBoxSetEditor.h:55
MpdBoxSetEditor::fM
MpdBoxSet * fM
Definition
MpdBoxSetEditor.h:56
MpdBoxSetEditor::fTimeWindowPlus
TGNumberEntry * fTimeWindowPlus
Definition
MpdBoxSetEditor.h:51
MpdBoxSetEditor::~MpdBoxSetEditor
virtual ~MpdBoxSetEditor()
Definition
MpdBoxSetEditor.h:35
MpdBoxSet
MpdBoxSet.
Definition
MpdBoxSet.h:24
TGFrame::GetDefaultFrameBackground
static Pixel_t GetDefaultFrameBackground()
TGNumberEntry
TGVerticalFrame
TGWindow
TGedFrame
TObject
MpdBoxSet.h
install
include
MpdBoxSetEditor.h
Generated on
for BmnRoot by
1.17.0