14 #include "msdevstudio/MSconfig.h"
37 using namespace hippodraw;
40 :
BaseXML (
"BinningProjector", controller )
58 const void * addr = reinterpret_cast <
const void * > ( & projector );
82 tag -> appendChild ( *element );
92 if ( bp_element == 0 )
return;
106 if ( bp_element == 0 )
return;
112 projector -> setBinContents ( ntuple );
XmlElement * createElement()
Creates a new element node.
A singleton class that is does XML serialization and deserialization of derived classes of NTuple...
The BinningProjector is an abstract class provides most of the functionality for a projector that doe...
void setBinner(BinsBase *bins)
Sets the BinsBase object to be used by this projector.
virtual bool hasDataSourceBindings() const
Returns true if projector has binding to a DataSource.
void createChildren(XmlElement *tag, const BinningProjector &projector)
Create the child element nodes.
XmlDocument class interface.
XmlController class interface.
hippodraw::BinningProjector class interface
const XmlElement * getNode(const XmlElement *element) const
Returns the single child node of element of the type that can be handled by this object.
A pure virtual base class of XML element wrapper.
BinsBaseXML * m_binsbaseXML
The BinsBaseXML object used by this object.
void setBins(const XmlElement *parent, ProjectorBase *projector)
Sets the contents of the bins.
const DataSource * getProjectedValues() const
Returns DataSource representation of projected values.
void setId(XmlElement &tag, int id)
Sets the unique identification of the object.
hippodraw::DataSource class interface.
BinsBaseXML class interface.
NTupleXML * m_ntupleXML
The creator of the NTuple element node.
hippodraw::BinsBase class interface
virtual void appendChild(const XmlNode &child)=0
Appends a child element to the element.
const BinsBase * getBinner() const
Returns reference to BinsBase object used by this projector.
A class XML creation and parsing of XmlElement for BinsBase class.
XmlController * m_controller
The singleton XML controller object.
XmlElement class interface.
void getObject(const XmlElement *parent, ProjectorBase *projector)
Sets the binning attributes of the projector from child nodes of the parent XML element.
The base class for the Projector hierarchy.
BinningProjectorXML class interface.
virtual BinsBase * createObject(const XmlElement *element)
Creates an object derived from BinsBaseBase.
virtual void prepareValues()
Prepares the projector for plotting by executing, if needed, the binning procedure.
hippodraw::Range class interface
NTupleXML class interface.
A base class of XML element controllers.
~BinningProjectorXML()
The destructor.
BinningProjectorXML(const BinningProjectorXML &)
A private copy constructor in order to avoid copying.
XmlElement * createElement(const BinsBase &bins)
Returns a newly created XmlElement with attributes set for view.
A base class that is the interface between GUI and the XML serialization and deserialization.
The base class for the binner hierarchy.
Base class for DataSource.