//------------------------------------------------------------------------------ // gui_Map class -- // (C) Piero Giubilato 2008-2010, Berkeley Lab -- //------------------------------------------------------------------------------ //______________________________________________________________________________ // {Trace} // [File name] "gui_Map.h" // [Author] "Piero Giubilato" // [Version] "2.0" // [Modified by] "Piero Giubilato" // [Last revision] "02 Jul 2009" // [Language] "C++" // [Compiler] "Visual C++ 9.x" // [Member of] "Cool SEAL" // [Project] "SEAL" // [Description] "Header for the gui_Map class" // [Key documentation] // "Visual C++ Reference Help" // "Root reference guide" // {Trace} //______________________________________________________________________________ // Overloading check #if !defined gui_Map_H #define gui_Map_H // Standard components #include // Root components // Application components #include "gui_2D.h" // This class creates a gui_Map object class gui_Map: public gui_2D { private: // Main interface elements std::vector label; // The labels used to mark the palette std::vector num_Pal; // The Palette numerics gso_Button* btn_Range; // Auto range button // Private methods void Init(UInt_t left, UInt_t top, UInt_t width, UInt_t height, UInt_t textColor); void label_Set(); // Special private memebers //gui_Map(const gui_Map&) {} //const gui_Map& operator=(const gui_Map&) {return *this;} public: // Special member functions gui_Map(UInt_t left, UInt_t top, UInt_t width, UInt_t height, UInt_t textColor = 0x777777); gui_Map(gui_Object* parent, UInt_t left, UInt_t top, UInt_t width, UInt_t height, UInt_t textColor = 0x777777); ~gui_Map(); // Range interactive void num_pal_Do(Long_t); void map_range_Do(); void map_data_changed_Do(); void btn_range_Do(); // Overloaded gui_2D members void ReDraw(); void Move(UInt_t left, UInt_t top); void Resize(UInt_t width, UInt_t height); void MoveResize(UInt_t left, UInt_t top, UInt_t width, UInt_t height); void LowerWindow() const; void RaiseWindow() const; void color_Set(UInt_t foreColor, UInt_t backColor); // Palette interface methods bool range_Auto() const; void range_Auto(bool automatic); Double_t range_Max() const; void range_Max(Double_t max); Double_t range_Min() const; void range_Min(Double_t min); void range_Color(UInt_t* col_List, UInt_t col_Count); // Cint preprocessor token ClassDef(gui_Map, 2) }; // End of Overloading check #endif