19 TGCompositeFrame *tab,
35 , fBtnRunContinuous(nullptr)
36 , fBtnClearBuffer(nullptr)
43 TGGroupFrame *cuts =
new TGGroupFrame(fTab, GetName());
44 cuts->SetTitlePos(TGGroupFrame::kCenter);
46 TGTextButton *start_button =
new TGTextButton(cuts,
"Start");
47 start_button->Resize(80, 25);
48 cuts->AddFrame(start_button,
new TGLayoutHints(kLHintsLeft | kLHintsExpandX, 5, 5, 5, 5));
49 start_button->Connect(
"Clicked()", fParent->ClassName(), fParent, fFunctionName);
51 TGCompositeFrame *frame1 =
new TGCompositeFrame(cuts, fWidth, 30, kHorizontalFrame | kFixedWidth);
52 TGLabel *gAnimType =
new TGLabel(frame1,
"Animation type:");
53 frame1->AddFrame(gAnimType,
new TGLayoutHints(kLHintsLeft | kLHintsExpandX, 1, 1, 1, 1));
54 fTypeOpt =
new TGComboBox(frame1);
58 fTypeOpt->Resize(100, 20);
59 frame1->AddFrame(fTypeOpt,
new TGLayoutHints(kLHintsLeft | kLHintsExpandX));
60 cuts->AddFrame(frame1,
new TGLayoutHints(kLHintsLeft | kLHintsExpandX));
62 TGCompositeFrame *frame2 =
new TGCompositeFrame(cuts, fWidth, 30, kHorizontalFrame | kFixedWidth);
63 TGLabel *gLabelType =
new TGLabel(frame2,
"Scene type:");
64 frame2->AddFrame(gLabelType,
new TGLayoutHints(kLHintsLeft | kLHintsExpandX, 1, 1, 2, 1));
65 fComboOpt =
new TGComboBox(frame2);
66 fComboOpt->AddEntry(
"3D",
k3D);
67 fComboOpt->AddEntry(
"RPhi",
kXY);
68 fComboOpt->AddEntry(
"RhoZ",
kZ);
69 fComboOpt->AddEntry(
"All",
kAll);
71 fComboOpt->Resize(100, 20);
72 frame2->AddFrame(fComboOpt,
new TGLayoutHints(kLHintsLeft | kLHintsExpandX));
73 cuts->AddFrame(frame2,
new TGLayoutHints(kLHintsLeft | kLHintsExpandX));
75 TGCompositeFrame *frame3 =
new TGCompositeFrame(cuts, fWidth, 30, kHorizontalFrame | kFixedWidth);
76 TGLabel *gLabelMin =
new TGLabel(frame3,
"Min:");
77 frame3->AddFrame(gLabelMin,
new TGLayoutHints(kLHintsLeft | kLHintsExpandX, 1, 1, 2, 1));
78 fMin =
new TGNumberEntry(frame3, 0, 6, -1, TGNumberFormat::kNESRealTwo);
79 fMin->SetNumber(fValMin);
80 frame3->AddFrame(fMin,
new TGLayoutHints(kLHintsRight | kLHintsExpandX));
81 cuts->AddFrame(frame3,
new TGLayoutHints(kLHintsLeft | kLHintsExpandX));
83 TGCompositeFrame *frame4 =
new TGCompositeFrame(cuts, fWidth, 30, kHorizontalFrame | kFixedWidth);
84 TGLabel *gLabelMax =
new TGLabel(frame4,
"Max:");
85 frame4->AddFrame(gLabelMax,
new TGLayoutHints(kLHintsLeft | kLHintsExpandX, 1, 1, 2, 1));
86 fMax =
new TGNumberEntry(frame4, 10, 6, -1, TGNumberFormat::kNESRealTwo);
87 fMax->SetNumber(fValMax);
88 frame4->AddFrame(fMax,
new TGLayoutHints(kLHintsRight | kLHintsExpandX));
89 cuts->AddFrame(frame4,
new TGLayoutHints(kLHintsLeft | kLHintsExpandX));
91 TGCompositeFrame *frame5 =
new TGCompositeFrame(cuts, fWidth, 30, kHorizontalFrame | kFixedWidth);
92 TGLabel *gLabelStep =
new TGLabel(frame5,
"Step:");
93 frame5->AddFrame(gLabelStep,
new TGLayoutHints(kLHintsLeft | kLHintsExpandX, 1, 1, 2, 1));
94 fStep =
new TGNumberEntry(frame5, 0, 6, -1, TGNumberFormat::kNESRealTwo);
95 frame5->AddFrame(fStep,
new TGLayoutHints(kLHintsRight | kLHintsExpandX));
96 cuts->AddFrame(frame5,
new TGLayoutHints(kLHintsLeft | kLHintsExpandX));
98 TGCompositeFrame *frame6 =
new TGCompositeFrame(cuts, fWidth, 30, kHorizontalFrame | kFixedWidth);
99 TGLabel *gLabelTail =
new TGLabel(frame6,
"Tail:");
100 frame6->AddFrame(gLabelTail,
new TGLayoutHints(kLHintsLeft | kLHintsExpandX, 1, 1, 2, 1));
101 fTail =
new TGNumberEntry(frame6, 0, 6, -1, TGNumberFormat::kNESRealTwo);
102 fTail->SetNumber(-1.0);
103 frame6->AddFrame(fTail,
new TGLayoutHints(kLHintsRight | kLHintsExpandX));
104 cuts->AddFrame(frame6,
new TGLayoutHints(kLHintsLeft | kLHintsExpandX));
106 fBtnRunContinuous =
new TGCheckButton(cuts,
"Run Continuous");
107 cuts->AddFrame(fBtnRunContinuous,
new TGLayoutHints(kLHintsLeft | kLHintsExpandX));
109 fBtnClearBuffer =
new TGCheckButton(cuts,
"Clear Buffer at Start");
110 cuts->AddFrame(fBtnClearBuffer,
new TGLayoutHints(kLHintsLeft | kLHintsExpandX));
112 fTab->AddFrame(cuts,
new TGLayoutHints(kLHintsRight | kLHintsExpandX, 1, 1, 2, 1));
122 return fStep->GetNumber();
128 return fTail->GetNumber();
133 return fBtnRunContinuous->IsOn();
138 return fBtnClearBuffer->IsOn();
FairEveAnimationControl(TGedFrame *frame=0, TGCompositeFrame *tab=0, TString name="", Int_t width=170, Int_t buttons=2)
eScreenshotType GetScreenshotType()
eAnimationType GetAnimationType()
virtual ~FairEveAnimationControl()
Bool_t GetRunContinuous()