00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifdef __CLDAQ_ROOT_USE
00020 #include <TCanvas.h>
00021 #include "TRecordDisplay.hh"
00022 #include "TRecordDisplayCanvas.hh"
00023 #include "TRecordDisplayPreference.hh"
00024
00025 TRecordDisplayCanvas::TRecordDisplayCanvas( TRecordDisplay* d, TGCompositeFrame* f, const Tstring& name, Tint w, Tint h )
00026 : TRecordDisplayComponent( d, f ),
00027 TRootEmbeddedCanvas( name.c_str(), theParentFrame, w, h )
00028 {
00029 Build();
00030 }
00031
00032 TRecordDisplayCanvas::~TRecordDisplayCanvas()
00033 {;}
00034
00035 Tvoid TRecordDisplayCanvas::Move()
00036 {
00037 GetCanvas() -> cd();
00038 return;
00039 }
00040
00041 Tvoid TRecordDisplayCanvas::Update()
00042 {
00043 GetCanvas() -> Modified();
00044 GetCanvas() -> Update();
00045 return;
00046 }
00047
00048 Tvoid TRecordDisplayCanvas::Clear()
00049 {
00050 GetCanvas() -> Clear();
00051 return;
00052 }
00053
00054 Tvoid TRecordDisplayCanvas::Build()
00055 {
00056 TGLayoutHints* cvL =
00057 theRecordDisplay -> GetPreference() -> GetCanvasLayoutHint();
00058 theParentFrame -> AddFrame( this, cvL );
00059
00060 theFinishBuild = Ttrue;
00061 return;
00062 }
00063 #endif
00064
00065 #ifdef __CLDAQ_ROOT_DLL
00066 ClassImp(TRecordDisplayCanvas)
00067 #endif