1 #ifndef __JROOT__JMARKERATTRIBUTES__
2 #define __JROOT__JMARKERATTRIBUTES__
6 #include "TAttMarker.h"
16 namespace JPP {
using namespace JROOT; }
41 std::vector<TAttMarker>(),
44 push_back(TAttMarker(kBlack, 20, 0.85 * size));
45 push_back(TAttMarker(kRed, 21, 0.70 * size));
46 push_back(TAttMarker(kBlue, 23, 0.75 * size));
47 push_back(TAttMarker(kGreen, 22, 0.75 * size));
48 push_back(TAttMarker(kMagenta, 34, 0.75 * size));
49 push_back(TAttMarker(kYellow, 29, 0.75 * size));
50 push_back(TAttMarker(kCyan, 33, 0.75 * size));
51 push_back(TAttMarker(kOrange, 47, 0.75 * size));
52 push_back(TAttMarker(kPink, 41, 0.75 * size));
53 push_back(TAttMarker(kViolet, 43, 0.75 * size));
55 push_back(TAttMarker(kBlack, 24, 0.85 * size));
56 push_back(TAttMarker(kRed, 25, 0.70 * size));
57 push_back(TAttMarker(kBlue, 32, 0.75 * size));
58 push_back(TAttMarker(kGreen, 26, 0.75 * size));
59 push_back(TAttMarker(kMagenta, 28, 0.75 * size));
60 push_back(TAttMarker(kYellow, 30, 0.75 * size));
61 push_back(TAttMarker(kCyan, 27, 0.75 * size));
62 push_back(TAttMarker(kOrange, 46, 0.75 * size));
63 push_back(TAttMarker(kPink, 40, 0.75 * size));
64 push_back(TAttMarker(kViolet, 42, 0.75 * size));
88 for (iterator i = this->begin(); i != this->end(); ++i) {
89 i->SetMarkerSize(i->GetMarkerSize() * size);
110 return !this->empty();
123 if (index < this->size()) {
141 const TAttMarker&
get(
unsigned int index)
143 return this->at(
index%this->size());
virtual bool hasNext() override
Check availability of next element.
Interface for object iteration with rewinding.
JMarkerAttributes(const Double_t size=1.0)
Constructor.
virtual void rewind() override
Rewind index.
JRewindableObjectIterator< TAttMarker >::pointer_type pointer_type
Auxiliary class to set marker attributes.
void setMarkerSize(const Double_t size)
Set marker size.
virtual const pointer_type & next() override
Get next element.
static JMarkerAttributes & getInstance()
Get reference to unique instance of this class object.
virtual void reset() override
Reset pointer.