A marker attributes.
Definition at line 26 of file RAttrMarker.hxx.
Public Types | |
| enum | EStyle { kNone = 0 , kDot = 1 , kPlus = 2 , kStar = 3 , kCircle = 4 , kMultiply = 5 , kFullDotSmall = 6 , kFullDotMedium = 7 , kFullDotLarge = 8 , kFullCircle = 20 , kFullSquare = 21 , kFullTriangleUp = 22 , kFullTriangleDown = 23 , kOpenCircle = 24 , kOpenSquare = 25 , kOpenTriangleUp = 26 , kOpenDiamond = 27 , kOpenCross = 28 , kFullStar = 29 , kOpenStar = 30 , kOpenTriangleDown = 32 , kFullDiamond = 33 , kFullCross = 34 , kOpenDiamondCross = 35 , kOpenSquareDiagonal = 36 , kOpenThreeTriangles = 37 , kOctagonCross = 38 , kFullThreeTriangles = 39 , kOpenFourTrianglesX = 40 , kFullFourTrianglesX = 41 , kOpenDoubleDiamond = 42 , kFullDoubleDiamond = 43 , kOpenFourTrianglesPlus = 44 , kFullFourTrianglesPlus = 45 , kOpenCrossX = 46 , kFullCrossX = 47 , kFourSquaresX = 48 , kFourSquaresPlus = 49 } |
Public Member Functions | |
| RAttrMarker ()=default | |
| RAttrMarker (const RAttrMarker &src) | |
| RAttrMarker (const RColor &_color, double _size, EStyle _style) | |
| RAttrMarker (RAttrBase *parent, const char *prefix="marker") | |
| RAttrMarker (RDrawable *drawable, const char *prefix="marker") | |
| void | Clear () override |
| Clear all respective values from drawable. Only defaults can be used. | |
| RAttrMarker & | operator= (const RAttrMarker &src) |
Public Attributes | |
| RAttrValue< RColor > | color {this, "color", RColor::kBlack} |
| ! marker color | |
| RAttrValue< double > | size {this, "size", 0.01} |
| ! marker size >1 pixels, <1 relative to pad height | |
| RAttrValue< EStyle > | style {this, "style", kDot} |
| ! marker style | |
Protected Member Functions | |
| const Rec_t | AccessAttr (const std::string &name) const |
| Find attributes container and full-qualified name for value. | |
| const Val_t | AccessValue (const std::string &name, bool use_style=true) const |
| Search value with given name in attributes. | |
| void | ClearValue (const std::string &name) |
| Clear value if any with specified name. | |
| RAttrMap | CollectDefaults () const override |
| Collect all attributes in derived class Works only if such class has dictionary. | |
| void | CopyTo (RAttrAggregation &tgt, bool use_style=true) const |
| Copy attributes into target object. | |
| bool | CopyValue (const std::string &name, const RAttrMap::Value_t &value, bool check_type=true) |
| Copy attributes from other object. | |
| Rec_t | EnsureAttr (const std::string &name) |
| Ensure attribute with give name exists - creates container for attributes if required. | |
| const RAttrMap & | GetDefaults () const override |
| Return default values for attributes, empty for base class. | |
| RDrawable * | GetDrawable () const |
| RAttrMap * | GetOwnAttr () const |
| RAttrBase * | GetParent () const |
| const char * | GetPrefix () const |
| bool | IsAggregation () const final |
| bool | IsSame (const RAttrAggregation &src, bool use_style=true) const |
| Check if all values which are evaluated in this object are exactly the same as in tgt object. | |
| bool | IsValueEqual (const std::string &name, const RAttrMap::Value_t &value, bool use_style=false) const |
| Check if provided value equal to attribute in the map. | |
| void | MoveTo (RAttrBase &tgt) |
| Move all fields into target object. | |
| void | SetNoValue (const std::string &name) |
| Set <NoValue> for attribute. | |
Private Types | |
| enum | { kDrawable , kParent , kOwnAttr } |
Private Member Functions | |
| void | ClearData () |
| Clear internal data. | |
| RAttrMap * | CreateOwnAttr () |
| Creates own attribute - only if no drawable and no parent are assigned. | |
Private Attributes | |
| const char * | fPrefix {nullptr} |
| ! name prefix for all attributes values | |
| enum ROOT::Experimental::RAttrBase:: { ... } | kDrawable |
| ! kind of data | |
| union { | |
| RDrawable * drawable | |
| RAttrMap * ownattr | |
| RAttrBase * parent | |
| } | nullptr |
| ! data | |
#include <ROOT/RAttrMarker.hxx>
|
privateinherited |
| Enumerator | |
|---|---|
| kDrawable | |
| kParent | |
| kOwnAttr | |
Definition at line 37 of file RAttrBase.hxx.
Definition at line 30 of file RAttrMarker.hxx.
|
default |
|
inline |
Definition at line 28 of file RAttrMarker.hxx.
|
inline |
Definition at line 28 of file RAttrMarker.hxx.
|
inline |
Definition at line 28 of file RAttrMarker.hxx.
|
inline |
Definition at line 77 of file RAttrMarker.hxx.
|
inlineprotectedinherited |
Find attributes container and full-qualified name for value.
Definition at line 70 of file RAttrBase.hxx.
|
inlineprotectedinherited |
Search value with given name in attributes.
Definition at line 95 of file RAttrBase.hxx.
|
overridevirtualinherited |
Clear all respective values from drawable. Only defaults can be used.
Implements ROOT::Experimental::RAttrBase.
Definition at line 118 of file RAttrAggregation.cxx.
|
privateinherited |
Clear internal data.
Definition at line 26 of file RAttrBase.cxx.
|
protectedinherited |
Clear value if any with specified name.
Definition at line 54 of file RAttrBase.cxx.
|
overrideprotectedvirtualinherited |
Collect all attributes in derived class Works only if such class has dictionary.
In special cases one has to provide special implementation directly
Implements ROOT::Experimental::RAttrBase.
Definition at line 37 of file RAttrAggregation.cxx.
|
protectedinherited |
Copy attributes into target object.
Definition at line 60 of file RAttrAggregation.cxx.
|
protectedinherited |
Copy attributes from other object.
Definition at line 71 of file RAttrAggregation.cxx.
|
privateinherited |
Creates own attribute - only if no drawable and no parent are assigned.
Definition at line 37 of file RAttrBase.cxx.
|
inlineprotectedinherited |
Ensure attribute with give name exists - creates container for attributes if required.
Definition at line 112 of file RAttrBase.hxx.
|
inlineoverrideprotectedvirtual |
Return default values for attributes, empty for base class.
Reimplemented from ROOT::Experimental::RAttrAggregation.
Definition at line 28 of file RAttrMarker.hxx.
|
inlineprotectedinherited |
Definition at line 52 of file RAttrBase.hxx.
|
inlineprotectedinherited |
Definition at line 54 of file RAttrBase.hxx.
|
inlineprotectedinherited |
Definition at line 53 of file RAttrBase.hxx.
|
inlineprotectedinherited |
Definition at line 153 of file RAttrBase.hxx.
|
inlinefinalprotectedvirtualinherited |
Reimplemented from ROOT::Experimental::RAttrBase.
Definition at line 33 of file RAttrAggregation.hxx.
|
protectedinherited |
Check if all values which are evaluated in this object are exactly the same as in tgt object.
Definition at line 103 of file RAttrAggregation.cxx.
|
protectedinherited |
Check if provided value equal to attribute in the map.
Definition at line 91 of file RAttrAggregation.cxx.
|
protectedinherited |
Move all fields into target object.
Definition at line 73 of file RAttrBase.cxx.
|
inline |
Definition at line 28 of file RAttrMarker.hxx.
|
protectedinherited |
Set <NoValue> for attribute.
Ensure that value can not be configured via style - defaults will be used Equivalent to css syntax { attrname:; }
Definition at line 64 of file RAttrBase.cxx.
| RAttrValue<RColor> ROOT::Experimental::RAttrMarker::color {this, "color", RColor::kBlack} |
! marker color
Definition at line 73 of file RAttrMarker.hxx.
|
inherited |
Definition at line 40 of file RAttrBase.hxx.
|
privateinherited |
! name prefix for all attributes values
Definition at line 45 of file RAttrBase.hxx.
| enum { ... } ROOT::Experimental::RAttrBase::kDrawable |
! kind of data
| union { ... } ROOT::Experimental::RAttrBase::nullptr |
! data
|
inherited |
Definition at line 42 of file RAttrBase.hxx.
|
inherited |
Definition at line 41 of file RAttrBase.hxx.
| RAttrValue<double> ROOT::Experimental::RAttrMarker::size {this, "size", 0.01} |
! marker size >1 pixels, <1 relative to pad height
Definition at line 74 of file RAttrMarker.hxx.
| RAttrValue<EStyle> ROOT::Experimental::RAttrMarker::style {this, "style", kDot} |
! marker style
Definition at line 75 of file RAttrMarker.hxx.