1 #ifndef __JGIZMO__JMARKERATTRIBUTES__
2 #define __JGIZMO__JMARKERATTRIBUTES__
6 #include "TAttMarker.h"
16 namespace JPP {
using namespace JGIZMO; }
42 std::vector<TAttMarker>(),
45 push_back(TAttMarker(kBlack, 20, 0.85 * size));
46 push_back(TAttMarker(kRed, 21, 0.70 * size));
47 push_back(TAttMarker(kBlue, 23, 0.75 * size));
48 push_back(TAttMarker(kGreen, 22, 0.75 * size));
49 push_back(TAttMarker(kMagenta, 34, 0.75 * size));
50 push_back(TAttMarker(kYellow, 29, 0.75 * size));
51 push_back(TAttMarker(kCyan, 33, 0.75 * size));
53 push_back(TAttMarker(kBlack, 24, 0.85 * size));
54 push_back(TAttMarker(kRed, 25, 0.70 * size));
55 push_back(TAttMarker(kBlue, 32, 0.75 * size));
56 push_back(TAttMarker(kGreen, 26, 0.75 * size));
57 push_back(TAttMarker(kMagenta, 28, 0.75 * size));
58 push_back(TAttMarker(kYellow, 30, 0.75 * size));
59 push_back(TAttMarker(kCyan, 27, 0.75 * size));
83 for (iterator i = this->begin(); i != this->end(); ++i) {
84 i->SetMarkerSize(i->GetMarkerSize() * size);
105 return !this->empty();
118 if (index < this->size()) {
119 ps.reset(&this->at(
index));
136 const TAttMarker&
get(
unsigned int index)
138 return this->at(
index%this->size());
virtual const pointer_type & next()
Get next element.
virtual bool hasNext()
Check availability of next element.
Interface for object iteration with rewinding.
JRewindableObjectIterator< TAttMarker >::pointer_type pointer_type
JMarkerAttributes(const Double_t size=1.0)
Constructor.
Auxiliary class to set marker attributes.
Template implementation of class that holds pointer to object(s).
void setMarkerSize(const Double_t size)
Set marker size.
virtual void rewind()
Rewind index.
static JMarkerAttributes & getInstance()
Get reference to unique instance of this class object.