11 #include "TGNumberEntry.h" 13 #include "TRootEmbeddedCanvas.h" 17 #include "cetlib_except/exception.h" 50 for (
int ipad = 0; ipad < npad; ++ipad) {
65 << __func__ <<
": unknown projection pad " << ipad <<
"\n";
68 std::string padname = std::string(
"Ortho3DPad") + projname;
69 std::string padtitle = projname + std::string(
" View");
70 double ylo = double(npad - ipad - 1) / double(npad);
71 double yhi = double(npad - ipad) / double(npad);
77 TGCompositeFrame* wframe =
new TGVerticalFrame(
fWidgetFrame);
79 fWidgetFrame->AddFrame(wframe,
new TGLayoutHints(kLHintsTop | kLHintsLeft | kLHintsExpandY));
85 TGLabel* label =
new TGLabel(wframe, padtitle.c_str());
86 wframe->AddFrame(label,
new TGLayoutHints(kLHintsTop | kLHintsLeft, 5, 5, 5, 1));
90 TGTextButton* unzoom =
new TGTextButton(wframe,
"&Unzoom");
91 wframe->AddFrame(unzoom,
new TGLayoutHints(kLHintsTop | kLHintsLeft, 5, 5, 5, 1));
92 unzoom->Connect(
"Clicked()",
"evd::Ortho3DPad", pad,
"UnZoom(=true)");
96 TGCompositeFrame* msize_frame =
new TGHorizontalFrame(wframe);
97 wframe->AddFrame(msize_frame,
new TGLayoutHints(kLHintsTop | kLHintsLeft, 5, 5, 5, 1));
99 TGNumberEntry* msize_entry =
new TGNumberEntry(msize_frame,
103 TGNumberFormat::kNESInteger,
104 TGNumberFormat::kNEANonNegative,
105 TGNumberFormat::kNELLimitMin,
107 msize_frame->AddFrame(msize_entry);
110 TGLabel* msize_label =
new TGLabel(msize_frame,
"Marker Size");
111 msize_frame->AddFrame(msize_label,
new TGLayoutHints(kLHintsTop | kLHintsLeft, 5, 0, 0, 1));
112 msize_entry->Connect(
"ValueSet(Long_t)",
"evd::Ortho3DPad", pad,
"SetMSize()");
TGCompositeFrame * fFrame
Graphics frame.
void SetMSizeEntry(TGNumberEntry *p)
A drawing pad showing an orthographic rendering of 3D objects.
TCanvas * fCanvas
The ROOT drawing canvas.
TGLayoutHints * fLayout
Layout hints for frame.
Manage all things related to colors for the event display.
void Draw(const char *opt="")
TGCompositeFrame * fMetaFrame
Frame holding root canvas and widget frame.
Drawing pad showing an orthographic projection of 3D objects in the detector.
std::vector< TGCompositeFrame * > fWidgetSubFrames
A view showing an orthographic projection of 3D objects.
TGCompositeFrame * fWidgetFrame
Frame holding widgets.
double GetMarkerSize() const
std::vector< Ortho3DPad * > fOrtho3DPads
Graphics pads.
TRootEmbeddedCanvas * fEmbCanvas
Embedded canvas.
void Draw(const char *opt=0)
cet::coded_exception< error, detail::translate > exception
Ortho3DView(TGMainFrame *mf)