/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/EventDisplay/BesVisLib/BesVisLib-00-04-04/src/BesView.cxx File Reference

#include <TROOT.h>
#include <TCanvas.h>
#include <TPad.h>
#include <TPaveLabel.h>
#include <iostream>
#include "math.h"
#include "TMath.h"
#include "BesVisLib/BesView.h"
#include "BesVisLib/BesGeometry.h"
#include "BesVisLib/BesEvent.h"
#include "BesVisLib/BesCursor.h"

Go to the source code of this file.

Functions

 ClassImp (BesView) BesView


Function Documentation

ClassImp ( BesView   ) 

Definition at line 21 of file BesView.cxx.

References gBesGeometry, BesGeometry::GetBesR(), BesGeometry::GetBesZ(), k3DView, kXYView, and kZRView.

00028                  : BesTView(1) {
00029     //
00030     // BesView normal constructor
00031     if ( gDebug ) cout << "BesView normal ctor called" << endl;
00032 
00033     // init Label
00034     fLabel = new TPaveLabel(0.02,0.17,0.02,0.09,"3D View");
00035     fLabel->SetFillColor(42);
00036 
00037     // init status of 3D view
00038     fStatus3D = new BesStatus();
00039     fStatus3D->Default(k3DView);
00040 
00041     // init status of XY view
00042     fStatusXY = new BesStatus();
00043     fStatusXY->Default(kXYView);
00044 
00045     // init status of ZR view
00046     fStatusZR = new BesStatus();
00047     fStatusZR->Default(kZRView);
00048 
00049     // init status of current view
00050     fStatusCurrent = new BesStatus();
00051 
00052     // Init
00053     fViewType = k3DView;
00054     fStatusCurrent->Transfer(fStatus3D,1);
00055     if ( !gBesGeometry ) {
00056         cout << "BesGeometry does not exist! " << endl;
00057         return;
00058     }
00059 
00060     m_BesR = gBesGeometry->GetBesR();
00061     m_BesZ = gBesGeometry->GetBesZ();
00062     DefaultRange();
00063     fExtentDefault = GetExtent();
00064 
00065     fZoomFactor = 1.2;
00066     fMarkerSize = 0.1;
00067 }


Generated on Tue Nov 29 23:15:47 2016 for BOSS_7.0.2 by  doxygen 1.4.7