LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
View3D.h
Go to the documentation of this file.
1 #ifndef EVDB_VIEW3D_H
9 #define EVDB_VIEW3D_H
10 #include <list>
11 
12 class TMarker3DBox;
13 class TPolyMarker3D;
14 class TPolyLine3D;
15 class TText;
16 
17 namespace evdb {
18  class View3D {
19  public:
20  View3D();
21  ~View3D();
22 
23  void Draw();
24  void Clear();
25 
26  TMarker3DBox& AddMarker3DBox(double x, double y, double z,
27  double dx, double dy, double dz,
28  double th=0.0, double ph=0.0);
29  TPolyMarker3D& AddPolyMarker3D(int n, int c, int st, double sz);
30  TPolyLine3D& AddPolyLine3D(int n, int c, int w, int s);
31  TText& AddText(double x, double y, const char* text);
32 
33  private:
34  // Shared pool of unused objects. Any instance may take one for its own
35  // purposes. This is the same scheme as used by View2D. See further
36  // description there.
37  static std::list<TMarker3DBox*> fgMarker3DBoxL;
38  static std::list<TPolyMarker3D*> fgPolyMarker3DL;
39  static std::list<TPolyLine3D*> fgPolyLine3DL;
40  static std::list<TText*> fgText3DL;
41 
42  std::list<TMarker3DBox*> fMarker3DBoxL;
43  std::list<TPolyMarker3D*> fPolyMarker3DL;
44  std::list<TPolyLine3D*> fPolyLine3DL;
45  std::list<TText*> fText3DL;
46  };
47 }
48 
49 #endif // B_VIEW3D_H
50 
Float_t x
Definition: compare.C:6
TMarker3DBox & AddMarker3DBox(double x, double y, double z, double dx, double dy, double dz, double th=0.0, double ph=0.0)
Definition: View3D.cxx:51
Float_t y
Definition: compare.C:6
Double_t z
Definition: plot.C:276
Manage all things related to colors for the event display.
static std::list< TPolyMarker3D * > fgPolyMarker3DL
Definition: View3D.h:38
TText & AddText(double x, double y, const char *text)
Definition: View3D.cxx:135
std::list< TText * > fText3DL
List of texts.
Definition: View3D.h:45
static std::list< TPolyLine3D * > fgPolyLine3DL
Definition: View3D.h:39
TPolyLine3D & AddPolyLine3D(int n, int c, int w, int s)
Definition: View3D.cxx:105
static std::list< TText * > fgText3DL
Definition: View3D.h:40
std::list< TMarker3DBox * > fMarker3DBoxL
List of 3D marker boxes.
Definition: View3D.h:42
static std::list< TMarker3DBox * > fgMarker3DBoxL
Definition: View3D.h:37
void Draw()
Definition: View3D.cxx:30
std::list< TPolyLine3D * > fPolyLine3DL
List of poly lines.
Definition: View3D.h:44
void Clear()
Definition: View3D.cxx:40
std::list< TPolyMarker3D * > fPolyMarker3DL
List of poly markers.
Definition: View3D.h:43
Char_t n[5]
Float_t w
Definition: plot.C:20
TPolyMarker3D & AddPolyMarker3D(int n, int c, int st, double sz)
Definition: View3D.cxx:75