Ortho3DView.h
Go to the documentation of this file.
1 ///
2 /// \file Ortho3DView.h
3 /// \brief A view showing an orthographic projection of 3D objects.
4 /// \author greenlee@fnal.gov
5 ///
6 /// Only 3D objects (prongs and space points) can be displayed in this view.
7 ///
8 
9 #ifndef EVD_ORTHO3DVIEW_H
10 #define EVD_ORTHO3DVIEW_H
11 #include <vector>
12 
13 #include "nuevdb/EventDisplayBase/Canvas.h"
14 
15 namespace evd {
16 
17  class Ortho3DPad;
18 
19  /// View of event shoing orthographic view of 3D objects.
20 
21  class Ortho3DView : public evdb::Canvas {
22 
23  public:
24 
25  // Constructor, destructor.
26 
27  Ortho3DView(TGMainFrame* mf);
28  virtual ~Ortho3DView();
29 
30  // Required methods.
31 
32  const char* Description() const { return "Orthographic 3D Detector Display"; }
33  const char* PrintTag() const { return "larortho3d"; }
34  void Draw(const char* opt="");
35 
36  private:
37 
38  // Attributes.
39 
40  // Graphics pads.
41 
42  std::vector<Ortho3DPad*> fOrtho3DPads; ///< Graphics pads.
43 
44  // Frames.
45 
46  TGCompositeFrame* fMetaFrame; ///< Frame holding root canvas and widget frame.
47  TGCompositeFrame* fWidgetFrame; ///< Frame holding widgets.
48  std::vector<TGCompositeFrame*> fWidgetSubFrames; // Frame holding widgets for one pad.
49  };
50 }
51 
52 #endif
53 ////////////////////////////////////////////////////////////////////////
opt
Definition: train.py:196
virtual ~Ortho3DView()
const char * PrintTag() const
Definition: Ortho3DView.h:33
void Draw(const char *opt="")
View of event shoing orthographic view of 3D objects.
Definition: Ortho3DView.h:21
LArSoft includes.
Definition: InfoTransfer.h:33
TGCompositeFrame * fMetaFrame
Frame holding root canvas and widget frame.
Definition: Ortho3DView.h:46
const char * Description() const
Definition: Ortho3DView.h:32
std::vector< TGCompositeFrame * > fWidgetSubFrames
Definition: Ortho3DView.h:48
TGCompositeFrame * fWidgetFrame
Frame holding widgets.
Definition: Ortho3DView.h:47
std::vector< Ortho3DPad * > fOrtho3DPads
Graphics pads.
Definition: Ortho3DView.h:42
Ortho3DView(TGMainFrame *mf)
Definition: Ortho3DView.cxx:22