00001 // @(#)root/base:$Id: TAttFill.h 27860 2009-03-18 08:36:17Z brun $ 00002 // Author: Rene Brun 12/12/94 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * 00006 * All rights reserved. * 00007 * * 00008 * For the licensing terms see $ROOTSYS/LICENSE. * 00009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00010 *************************************************************************/ 00011 00012 #ifndef ROOT_TAttFill 00013 #define ROOT_TAttFill 00014 00015 00016 ////////////////////////////////////////////////////////////////////////// 00017 // // 00018 // TAttFill // 00019 // // 00020 // Fill area attributes. // 00021 // // 00022 ////////////////////////////////////////////////////////////////////////// 00023 00024 #ifndef ROOT_Rtypes 00025 #include "Rtypes.h" 00026 #endif 00027 #ifndef ROOT_Riosfwd 00028 #include "Riosfwd.h" 00029 #endif 00030 00031 00032 class TAttFill { 00033 00034 protected: 00035 Color_t fFillColor; //fill area color 00036 Style_t fFillStyle; //fill area style 00037 00038 public: 00039 TAttFill(); 00040 TAttFill(Color_t fcolor,Style_t fstyle); 00041 virtual ~TAttFill(); 00042 void Copy(TAttFill &attfill) const; 00043 virtual Color_t GetFillColor() const { return fFillColor; } 00044 virtual Style_t GetFillStyle() const { return fFillStyle; } 00045 virtual Bool_t IsTransparent() const; 00046 virtual void Modify(); 00047 virtual void ResetAttFill(Option_t *option=""); 00048 virtual void SaveFillAttributes(ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1001); 00049 virtual void SetFillAttributes(); // *MENU* 00050 virtual void SetFillColor(Color_t fcolor) { fFillColor = fcolor; } 00051 virtual void SetFillStyle(Style_t fstyle) { fFillStyle = fstyle; } 00052 00053 ClassDef(TAttFill,1) //Fill area attributes 00054 }; 00055 00056 inline Bool_t TAttFill::IsTransparent() const 00057 { return fFillStyle >= 4000 && fFillStyle <= 4100 ? kTRUE : kFALSE; } 00058 00059 #endif 00060