11 #include "TGNumberEntry.h" 12 #include "TVirtualX.h" 13 #include "TRootEmbeddedCanvas.h" 17 #include "cetlib_except/exception.h" 54 for(
int ipad = 0; ipad < npad; ++ipad) {
69 << __func__ <<
": unknown projection pad " << ipad <<
"\n";
72 std::string padname = std::string(
"Ortho3DPad") + projname;
73 std::string padtitle = projname + std::string(
" View");
74 double ylo = double(npad - ipad - 1) / double(npad);
75 double yhi = double(npad - ipad) / double(npad);
77 proj, 0.0, ylo, 1.0, yhi);
82 TGCompositeFrame* wframe =
new TGVerticalFrame(
fWidgetFrame);
84 fWidgetFrame->AddFrame(wframe,
new TGLayoutHints(kLHintsTop |
92 TGLabel* label =
new TGLabel(wframe, padtitle.c_str());
93 wframe->AddFrame(label,
new TGLayoutHints(kLHintsTop | kLHintsLeft,
98 TGTextButton* unzoom =
new TGTextButton(wframe,
"&Unzoom");
99 wframe->AddFrame(unzoom,
new TGLayoutHints(kLHintsTop | kLHintsLeft,
101 unzoom->Connect(
"Clicked()",
"evd::Ortho3DPad", pad,
106 TGCompositeFrame* msize_frame =
new TGHorizontalFrame(wframe);
107 wframe->AddFrame(msize_frame,
new TGLayoutHints(kLHintsTop | kLHintsLeft,
110 TGNumberEntry* msize_entry =
new TGNumberEntry(msize_frame, val, 3, -1,
111 TGNumberFormat::kNESInteger,
112 TGNumberFormat::kNEANonNegative,
113 TGNumberFormat::kNELLimitMin, 1.);
114 msize_frame->AddFrame(msize_entry);
117 TGLabel* msize_label =
new TGLabel(msize_frame,
"Marker Size");
118 msize_frame->AddFrame(msize_label,
119 new TGLayoutHints(kLHintsTop | kLHintsLeft,
121 msize_entry->Connect(
"ValueSet(Long_t)",
"evd::Ortho3DPad", pad,
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)