27 mf->RemoveFrame(fEmbCanvas);
28 mf->RemoveFrame(fFrame);
53 for(
int ipad = 0; ipad < npad; ++ipad) {
54 evdb::Canvas::fCanvas->cd();
68 << __func__ <<
": unknown projection pad " << ipad <<
"\n";
73 double ylo = double(npad - ipad - 1) / double(npad);
74 double yhi = double(npad - ipad) / double(npad);
75 Ortho3DPad* pad =
new Ortho3DPad(padname.c_str(), padtitle.c_str(),
76 proj, 0.0, ylo, 1.0, yhi);
81 TGCompositeFrame* wframe =
new TGVerticalFrame(
fWidgetFrame);
83 fWidgetFrame->AddFrame(wframe,
new TGLayoutHints(kLHintsTop |
91 TGLabel*
label =
new TGLabel(wframe, padtitle.c_str());
92 wframe->AddFrame(label,
new TGLayoutHints(kLHintsTop | kLHintsLeft,
97 TGTextButton* unzoom =
new TGTextButton(wframe,
"&Unzoom");
98 wframe->AddFrame(unzoom,
new TGLayoutHints(kLHintsTop | kLHintsLeft,
100 unzoom->Connect(
"Clicked()",
"evd::Ortho3DPad", pad,
105 TGCompositeFrame* msize_frame =
new TGHorizontalFrame(wframe);
106 wframe->AddFrame(msize_frame,
new TGLayoutHints(kLHintsTop | kLHintsLeft,
108 int val = pad->GetMarkerSize();
109 TGNumberEntry* msize_entry =
new TGNumberEntry(msize_frame, val, 3, -1,
110 TGNumberFormat::kNESInteger,
111 TGNumberFormat::kNEANonNegative,
112 TGNumberFormat::kNELLimitMin, 1.);
113 msize_frame->AddFrame(msize_entry);
114 pad->SetMSizeEntry(msize_entry);
116 TGLabel* msize_label =
new TGLabel(msize_frame,
"Marker Size");
117 msize_frame->AddFrame(msize_label,
118 new TGLayoutHints(kLHintsTop | kLHintsLeft,
120 msize_entry->Connect(
"ValueSet(Long_t)",
"evd::Ortho3DPad", pad,
127 evdb::Canvas::fCanvas->Update();
void Draw(const char *opt="")
TGCompositeFrame * fMetaFrame
Frame holding root canvas and widget frame.
std::vector< TGCompositeFrame * > fWidgetSubFrames
TGCompositeFrame * fWidgetFrame
Frame holding widgets.
std::vector< Ortho3DPad * > fOrtho3DPads
Graphics pads.
cet::coded_exception< error, detail::translate > exception