Public Member Functions | Private Attributes | List of all members
evd::Display3DView Class Reference

View of event shoing the XZ and YZ readout planes. More...

#include <Display3DView.h>

Inheritance diagram for evd::Display3DView:

Public Member Functions

 Display3DView (TGMainFrame *mf)
 
 ~Display3DView ()
 
const char * Description () const
 
const char * PrintTag () const
 
void Draw (const char *opt="")
 
void CloseWindow ()
 

Private Attributes

Display3DPadfDisplay3DPad
 

Detailed Description

View of event shoing the XZ and YZ readout planes.

Definition at line 16 of file Display3DView.h.

Constructor & Destructor Documentation

evd::Display3DView::Display3DView ( TGMainFrame *  mf)

Definition at line 14 of file Display3DView.cxx.

14  : evdb::Canvas(mf)
15  {
16  evdb::Canvas::fCanvas->cd();
17 
18  fDisplay3DPad = new Display3DPad("fDisplay3DPad","3D Display",
19  0.0, 0.0, 1.0, 1.0, "");
20 
21  this->Connect("CloseWindow()","evd::Display3DView",this,"CloseWindow()");
22 
23 // fDisplay3DPad->Draw();
24 
25  evdb::Canvas::fCanvas->Update();
26  }
Display3DPad * fDisplay3DPad
Definition: Display3DView.h:32
evd::Display3DView::~Display3DView ( )

Definition at line 29 of file Display3DView.cxx.

30  {
31  }

Member Function Documentation

void evd::Display3DView::CloseWindow ( )

Definition at line 34 of file Display3DView.cxx.

35  {
36  delete this;
37  }
const char* evd::Display3DView::Description ( ) const
inline

Definition at line 26 of file Display3DView.h.

26 { return "3D Detector Display"; }
void evd::Display3DView::Draw ( const char *  opt = "")

Definition at line 40 of file Display3DView.cxx.

41  {
43  evdb::Canvas::fCanvas->Update();
44 
45  TVirtualViewer3D *viewer = fDisplay3DPad->Pad()->GetViewer3D("ogl");
46  viewer->PreferLocalFrame();
47  viewer->ResetCameras();
48  viewer->PadPaint(fDisplay3DPad->Pad());
49 
50  }
TPad * Pad()
Definition: DrawingPad.h:37
Display3DPad * fDisplay3DPad
Definition: Display3DView.h:32
const char* evd::Display3DView::PrintTag ( ) const
inline

Definition at line 27 of file Display3DView.h.

27 { return "lar3d"; }

Member Data Documentation

Display3DPad* evd::Display3DView::fDisplay3DPad
private

Definition at line 32 of file Display3DView.h.


The documentation for this class was generated from the following files: