CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
Bes2DView.cxx File Reference
#include "BesVisLib/Bes2DView.h"
#include <iostream>
#include <TGeometry.h>
#include <TPad.h>
#include <TPaveLabel.h>
#include <TROOT.h>
#include <TMath.h>
#include <TCanvas.h>

Go to the source code of this file.

Functions

 ClassImp (Bes2DView) Bes2DView
 

Function Documentation

◆ ClassImp()

ClassImp ( Bes2DView  )

Definition at line 40 of file Bes2DView.cxx.

47 : BesTView(1) {
48 //
49 // Bes2DView normal constructor
50 if ( gDebug ) cout << "Bes2DView normal ctor called" << endl;
51
52 // init Label
53 fLabel = new TPaveLabel(0.02,0.17,0.02,0.09,"3D View");
54 fLabel->SetFillColor(42);
55
56
57 // init status of 3D view
58 fStatus3D = new BesStatus();
59 fStatus3D->Default(k3DView);
60
61 // init status of XY view
62 fStatusXY = new BesStatus();
63 fStatusXY->Default(kXYView);
64
65 // init status of ZR view
66 fStatusZR = new BesStatus();
67 fStatusZR->Default(kZRView);
68
69 // init status of current view
70 fStatusCurrent = new BesStatus();
71
72 // Init
73 f2DViewType = 0; // XY:0, ZR:1;
74 fStatusCurrent->Transfer(fStatus3D,1);
75 SetRange(-200,-200,-200,200,200,200);
76 fZoomFactor = 1.5;
77
78 fMarkerSize = 0.1;
79}
@ kXYView
Definition: BesStatus.h:15
@ k3DView
Definition: BesStatus.h:14
@ kZRView
Definition: BesStatus.h:16