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