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