14#include <Math/Vector3D.h>
71 void addArrow(
const std::string& name,
const ROOT::Math::XYZVector& start,
const ROOT::Math::XYZVector& end,
int color = -1);
77 void addHistogram(
const std::string& name,
const TH1* hist);
80 void addLabel(
const std::string& text,
const ROOT::Math::XYZVector& pos);
87 void addPoint(
const std::string& name,
const ROOT::Math::XYZVector& pos);
97 void select(
const TObject*
object);
103 ROOT::Math::XYZVector
end;
108 std::map<std::string, std::vector<ROOT::Math::XYZVector> >
m_pointSets;
109 std::vector<std::pair<std::string, ROOT::Math::XYZVector> >
m_labels;
118 friend class DisplayUI;
119 friend class EVEVisualization;
Add custom information to the display.
void select(const TObject *object)
Select the given object in the display.
void addHistogram(const std::string &name, const TH1 *hist)
Add histogram with the given name.
ClassDef(DisplayData, 5)
Add custom information to the display.
DisplayData()
Constructor.
void addPoint(const std::string &name, const ROOT::Math::XYZVector &pos)
Add a point at the given position, as part of a collection specified by name.
std::vector< TH1 * > m_histograms
Histograms to be shown in Eve.
std::vector< Arrow > m_arrows
List of arrows.
void addArrow(const std::string &name, const ROOT::Math::XYZVector &start, const ROOT::Math::XYZVector &end, int color=-1)
Add an arrow in the display (for axes, to point out some specific location).
void addLabel(const std::string &text, const ROOT::Math::XYZVector &pos)
Add a text label at the given position.
std::map< std::string, std::vector< ROOT::Math::XYZVector > > m_pointSets
name -> points map
std::vector< std::pair< std::string, unsigned int > > m_selectedObjects
List of selected objects (array name, index).
std::vector< std::pair< std::string, ROOT::Math::XYZVector > > m_labels
text labels (to be shown at a given position).
~DisplayData()
Destructor.
Abstract base class for different kinds of events.
Stores data associated with an arrow.
ROOT::Math::XYZVector start
arrow starts here.
ROOT::Math::XYZVector end
and ends here.