14 #include "msdevstudio/MSconfig.h"
27 using namespace hippodraw;
55 assert ( textrep != 0 );
139 double & ux,
double & uy )
const
Part of an implementation of the Observable-Observer pattern based on the example in the GOF Patterns...
virtual float userToInvertedMarginY(double y) const
Does nothing.
virtual PlotterBase * clone()
The clone function returns an object of its own kind which is a copy of this object at this moment...
const Color & getRepColor() const
Returns the color used for the representation.
virtual void notifyObservers() const
Notifies Observer objects of a change.
A transform that transforms coordinates from one coordinate system to another.
virtual void drawIn(ViewBase *view)
Starts the drawing in view view.
virtual void setPointRep(RepBase *pointrep)
Sets the representation of the data points.
virtual void drawProjectedValues(TransformBase *transform, ViewBase *view)
Overrides the base class implementation to draw the values based on the target DataRep.
void setParentDataRep(hippodraw::DataRep *)
Sets the target DataRep of its own TextDataRep object.
TextPlotter class interface.
virtual NTuple * createNTuple() const
hippodraw::TextDataRep class interface
virtual bool isTextPlotter() const
Return true if it's a text plotter.
virtual float userToMarginX(double x) const
Does nothing.
const Color & repColor() const
Returns the color used for the representation.
virtual void setRepresentation(RepBase *)
Sets the PointRep.
A Color class for creating the color object following the standard RGB color space.
TextDataRep * m_datarep
The DataRep object being used.
virtual void willDelete(const Observable *observable)
Notifies this Observer object that one of its Observable objects is about to be deleted.
The base class for the PlotterBase hierarchy.
virtual hippodraw::DataRep * getDataRep(int) const
Returns the specified DataRep or null pointer if it doesn't exits.
The base class for data representations.
virtual void update()
Updates the plotter.
virtual TransformBase * getTransform()
virtual int getNumDataReps() const
Returns the number of DataRep objects contained in the plot.
The AxisModelBase class maintains the Range and scaling of an axis.
virtual void setErrorDisplay(hippodraw::Axes::Type axis, bool)
std::string m_title
The main label; the title of the plot.
void setRepColor(const Color &)
Sets the representation's color.
virtual void toUserXY(double mx, double my, bool scaled, double &ux, double &uy) const
A DataSource class implemented with std::vector<double> to store the column data. ...
bool hasNTupleBindings() const
Returns false since TextPlotter does not have ntuple bindings.
The abstract base class for views.
A Plotter class that draws text.
~TextPlotter()
The destructor.
void setRepColor(const Color &)
Sets the color of the data representation.
virtual void addDataRep(hippodraw::DataRep *rep)
Adds a DataRep object to the plotter.
const hippodraw::DataRep * getParentDataRep() const
Returns the target DataRep of its own TextDataRep object.
virtual float userToMarginY(double y) const
Does nothing.
virtual RepBase * representation() const
Returns the representation used by the plotter.
void addObserver(Observer *)
Adds an Observer to the Observer list.
TextPlotter()
The default constructor.
Displays data in textual representation.
virtual bool errorDisplay(hippodraw::Axes::Type axis) const
void setAxisModel(AxisModelBase *, hippodraw::Axes::Type)
Sets the AxisModel on the specified axis.
The base class for the point representation hierarchy.
RepBase * getRepresentation() const
Returns the representation used to draw the data points.
virtual void setParentDataRep(DataRep *parent_datarep)
Sets the parent DataRep.