00001 // @(#)root/base:$Name: $:$Id: TAttFill.h,v 1.3 2002/05/03 10:48:53 brun Exp $ 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 00017 // // 00018 // TAttFill // 00019 // // 00020 // Fill area attributes. // 00021 // // 00023 00024 #ifndef ROOT_Gtypes 00025 #include "Gtypes.h" 00026 #endif 00027 00028 00029 class TAttFill { 00030 00031 protected: 00032 Color_t fFillColor; //fill area color 00033 Style_t fFillStyle; //fill area style 00034 00035 public: 00036 TAttFill(); 00037 TAttFill(Color_t fcolor,Style_t fstyle); 00038 virtual ~TAttFill(); 00039 void Copy(TAttFill &attfill) const; 00040 Color_t GetFillColor() const { return fFillColor; } 00041 Style_t GetFillStyle() const { return fFillStyle; } 00042 Bool_t IsTransparent() const; 00043 virtual void Modify(); 00044 virtual void ResetAttFill(Option_t *option=""); 00045 virtual void SaveFillAttributes(ofstream &out, const char *name, Int_t coldef=1, Int_t stydef=1001); 00046 virtual void SetFillAttributes(); // *MENU* 00047 virtual void SetFillColor(Color_t fcolor) { fFillColor = fcolor; } 00048 virtual void SetFillStyle(Style_t fstyle) { fFillStyle = fstyle; } 00049 00050 ClassDef(TAttFill,1) //Fill area attributes 00051 }; 00052 00053 inline Bool_t TAttFill::IsTransparent() const 00054 { return fFillStyle >= 4000 && fFillStyle <= 4100 ? kTRUE : kFALSE; } 00055 00056 #endif 00057
1.2.16