14 #include "msdevstudio/MSconfig.h"
29 :
BaseXML (
"MapMatrixProjector", controller ),
45 const void * addr = reinterpret_cast <
const void * > ( & projector );
50 tag -> setAttribute (
m_x_bins, number );
52 tag -> setAttribute (
m_y_bins, number );
72 bool ok = element -> attribute (
m_x_bins, number );
73 projector -> setNumberOfBins (
Axes::X, number );
74 ok = element -> attribute (
m_y_bins, number );
75 projector -> setNumberOfBins (
Axes::Y, number );
78 ok = element -> attribute (
m_x_step, value );
79 projector -> setBinWidth (
Axes::X, value );
80 ok = element -> attribute (
m_y_step, value );
81 projector -> setBinWidth (
Axes::Y, value );
83 ok = element -> attribute (
m_x_orig, value );
84 projector -> setOffset (
Axes::X, value );
85 ok = element -> attribute (
m_y_orig, value );
86 projector -> setOffset (
Axes::Y, value );
88 projector -> matrixTranspose(
true);
std::string m_y_step
Name of attribute for number step size in Y direction.
XmlElement * createElement()
Creates a new element node.
XmlDocument class interface.
XmlController class interface.
A pure virtual base class of XML element wrapper.
MapMatrixProjectorXML(const MapMatrixProjectorXML &)
A private copy constructor in order to avoid copying.
hippodraw::MapMatrixProjector class interface
void setId(XmlElement &tag, int id)
Sets the unique identification of the object.
virtual double getOffset(hippodraw::Axes::Type axis) const
Returns the origin along the axis axis.
virtual double getBinWidth(hippodraw::Axes::Type axis) const
Returns the step size along the axis axis.
std::string m_y_orig
Name of attribute for origin along Y direction.
std::string m_x_bins
Name of attribute for number X bins.
A derived class of NTupleProjector that maps 1 DataSource column to a Y axis of two dimensional proje...
void setAttributes(const XmlElement *element, ProjectorBase *projector)
Sets the MapMatrixProjector attributes of the projector from child nodes of the parent XML element...
XmlController * m_controller
The singleton XML controller object.
XmlElement class interface.
The base class for the Projector hierarchy.
std::string m_x_orig
Name of attribute for origin along X direction.
hippodraw::Range class interface
A base class of XML element controllers.
std::string m_y_bins
Name of attribute for number Y bins.
MapMatrixProjectorXML class interface.
A base class that is the interface between GUI and the XML serialization and deserialization.
std::string m_x_step
Name of attribute for number step size in X direction.
virtual int getNumberOfBins(hippodraw::Axes::Type axis) const
Returns the number of bins.
virtual void setAttribute(const std::string &name, bool value)=0
Sets attribute named name to the int value value.