#ifndef VEGA_VStyle #define VEGA_VStyle //*-- Modified : v0r47 14/04/00 by Damir Buskulic //*-- Modified : v0r45 11/11/99 by Damir Buskulic //*-- Author : Damir Buskulic 08/09/99 ////////////////////////////////////////////////////////////////////////// // // // VStyle // // // // Style options of a VEGA session, // // - time display options // // - gVEGAWarnings global // // // ////////////////////////////////////////////////////////////////////////// #include "TStyle.h" #include "TString.h" class VStyle : public TStyle { private : TString mTimeFormat; // time display format ("GPS", "LOCALEUR", "LOCALUS", "UNI") TString mTimeUnit; // time display unit ("S"=sec, "M"=min, "D"=day) Bool_t mTimeOnXAxis; // time display mode (on/off) on X axis Bool_t mStartTimeDisplay; // Mode for start time display at beginning of plot TString mStartTimeFormat; // Start time display format ("GPS", "LOCALEUR", "LOCALUS", "UNI") Double_t mStartTimeXOffset; // X offset for start time display Double_t mStartTimeYOffset; // Y offset for start time display Bool_t mAutoLogPlot; // Auto log for Frequency plots public : VStyle(); VStyle(Text_t* name, Text_t* title); VStyle(const VStyle& vstyle); ~VStyle(); void Copy(VStyle& obj); void ResetV(); const Text_t* GetTimeFormat() const {return mTimeFormat.Data();} const Text_t* GetTimeUnit() const {return mTimeUnit.Data();} Bool_t GetTimeOnXAxis() {return mTimeOnXAxis;} Bool_t GetStartTimeDisplay() {return mStartTimeDisplay;} const Text_t* GetStartTimeFormat() const {return mStartTimeFormat.Data();} Double_t GetStartTimeXOffset() {return mStartTimeXOffset;} Double_t GetStartTimeYOffset() {return mStartTimeYOffset;} Bool_t GetAutoLogPlot() {return mAutoLogPlot;} void SetTimeFormat(Text_t* fmt); void SetTimeUnit(Text_t* unit); void SetTimeOnXAxis(Bool_t mode=1) {mTimeOnXAxis = mode;} void SetStartTimeDisplay(Bool_t mode=1) {mStartTimeDisplay = mode;} void SetStartTimeFormat(Text_t* fmt); void SetStartTimeXOffset(Double_t offset) {mStartTimeXOffset = offset;} void SetStartTimeYOffset(Double_t offset) {mStartTimeYOffset = offset;} void SetAutoLogPlot(Bool_t logplot=1) {mAutoLogPlot = logplot;} ClassDef(VStyle,1) // General drawing style options used in a VEGA session }; R__EXTERN VStyle* gVStyle; R__EXTERN Int_t gVEGAWarnings; #endif