// @(#)root/base:$Name: $:$Id: TAttFill.h,v 1.3 2002/05/03 10:48:53 brun Exp $ // Author: Rene Brun 12/12/94 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * * * For the licensing terms see $ROOTSYS/LICENSE. * * For the list of contributors see $ROOTSYS/README/CREDITS. * *************************************************************************/ #ifndef ROOT_TAttFill #define ROOT_TAttFill ////////////////////////////////////////////////////////////////////////// // // // TAttFill // // // // Fill area attributes. // // // ////////////////////////////////////////////////////////////////////////// #ifndef ROOT_Gtypes #include "Gtypes.h" #endif class TAttFill { protected: Color_t fFillColor; //fill area color Style_t fFillStyle; //fill area style public: TAttFill(); TAttFill(Color_t fcolor,Style_t fstyle); virtual ~TAttFill(); void Copy(TAttFill &attfill) const; Color_t GetFillColor() const { return fFillColor; } Style_t GetFillStyle() const { return fFillStyle; } Bool_t IsTransparent() const; virtual void Modify(); virtual void ResetAttFill(Option_t *option=""); virtual void SaveFillAttributes(ofstream &out, const char *name, Int_t coldef=1, Int_t stydef=1001); virtual void SetFillAttributes(); // *MENU* virtual void SetFillColor(Color_t fcolor) { fFillColor = fcolor; } virtual void SetFillStyle(Style_t fstyle) { fFillStyle = fstyle; } ClassDef(TAttFill,1) //Fill area attributes }; inline Bool_t TAttFill::IsTransparent() const { return fFillStyle >= 4000 && fFillStyle <= 4100 ? kTRUE : kFALSE; } #endif