BOSS 8.0.0
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.

48 : BesTView( 1 ) {
49 //
50 // Bes2DView normal constructor
51 if ( gDebug ) cout << "Bes2DView normal ctor called" << endl;
52
53 // init Label
54 fLabel = new TPaveLabel( 0.02, 0.17, 0.02, 0.09, "3D View" );
55 fLabel->SetFillColor( 42 );
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}