//------------------------------------------------------------------------------ // gui_Plot class -- // (C) Piero Giubilato 2008-2010, Berkeley Lab -- //------------------------------------------------------------------------------ //______________________________________________________________________________ // {Trace} // [File name] "gui_Plot.h" // [Author] "Piero Giubilato" // [Version] "1.2" // [Modified by] "Piero Giubilato" // [Last revision] "28 May 2009" // [Language] "C++" // [Compiler] "Visual C++ 9.x" // [Member of] "Cool SEAL" // [Project] "SEAL" // [Description] "Header for the gui_Plot class" // [Key documentation] // "Visual C++ Reference Help" // "Root reference guide" // {Trace} //______________________________________________________________________________ // Overloading check #if !defined gui_Plot_H #define gui_Plot_H // Standard components #include // Root components #include "TString.h" // Application components #include "gui_2D.h" // gui_Plot is a specialization of gui_2D class gui_Plot: public gui_2D { private: // Main interface elements std::vector label; // The labels used to mark the palette gso_Button* btn_Range; // Auto range button // Plot properties //std::vector plot_Col; // Plot color list; std::vector plot_Lbl; // Plot label list; // Private methods void Init(UInt_t left, UInt_t top, UInt_t width, UInt_t height, UInt_t textColor); void label_Set(); public: // Special member functions gui_Plot(UInt_t left, UInt_t top, UInt_t width, UInt_t height, UInt_t textColor = 0x777777); gui_Plot(gui_Object* parent, UInt_t left, UInt_t top, UInt_t width, UInt_t height, UInt_t textColor = 0x777777); ~gui_Plot(); // Range interactive void btn_range_Do(); void map_data_changed_Do(); // Overloaded gui_2D members void ReDraw(); void MoveResize(UInt_t left, UInt_t top, UInt_t width, UInt_t height); void Move(UInt_t left, UInt_t top); void Resize(UInt_t width, UInt_t height); void LowerWindow() const; void RaiseWindow() const; void color_Set(UInt_t foreColor, UInt_t backColor); // Plot specific void plot_Color(const UInt_t* col_List, UInt_t col_Count); void plot_Label(const char** lbl_List, UInt_t lbl_Count); // Palette interface methods bool range_Auto() const; // Here range is NOT used for the palette void range_Auto(bool automatic); // Cint preprocessor token ClassDef(gui_Plot, 1) }; // End of Overloading check #endif