Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:10:36

0001 /*************************************************************************
0002  * Copyright (C) 1995-2021, Rene Brun and Fons Rademakers.               *
0003  * All rights reserved.                                                  *
0004  *                                                                       *
0005  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0006  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0007  *************************************************************************/
0008 
0009 #ifndef ROOT7_RAttrFill
0010 #define ROOT7_RAttrFill
0011 
0012 #include <ROOT/RAttrAggregation.hxx>
0013 #include <ROOT/RAttrValue.hxx>
0014 
0015 namespace ROOT {
0016 namespace Experimental {
0017 
0018 /** \class RAttrFill
0019 \ingroup GpadROOT7
0020 \author Sergey Linev
0021 \date 2019-09-13
0022 \brief Drawing fill attributes for different objects.
0023 \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
0024 */
0025 
0026 class RAttrFill : public RAttrAggregation {
0027 
0028    R__ATTR_CLASS(RAttrFill, "fill");
0029 
0030 public:
0031 
0032    enum EStyle {
0033       kHollow = 0,
0034       kNone = 0,
0035       kSolid = 1001,
0036       k3001 = 3001, k3002 = 3002, k3003 = 3003, k3004 = 3004, k3005 = 3005,
0037       k3006 = 3006, k3007 = 3007, k3008 = 3008, k3009 = 3009, k3010 = 3010,
0038       k3011 = 3011, k3012 = 3012, k3013 = 3013, k3014 = 3014, k3015 = 3015,
0039       k3016 = 3016, k3017 = 3017, k3018 = 3018, k3019 = 3019, k3020 = 3020,
0040       k3021 = 3021, k3022 = 3022, k3023 = 3023, k3024 = 3024, k3025 = 3025
0041    };
0042 
0043    RAttrValue<RColor> color{this, "color", RColor::kBlack};  ///<! fill color
0044    RAttrValue<EStyle> style{this, "style", kHollow};         ///<! fill style
0045 
0046    RAttrFill(RColor _color, EStyle _style) : RAttrFill()
0047    {
0048       color = _color;
0049       style = _style;
0050    }
0051 };
0052 
0053 } // namespace Experimental
0054 } // namespace ROOT
0055 
0056 #endif