

Definition at line 18 of file ViewBase.sip.
Public Member Functions | |
| ViewBase () | |
| The default constructor. | |
| ViewBase (PlotterBase *) | |
| The following constructor takes a plotter as an argument to use with a drawing. | |
| ViewBase (const ViewBase &) | |
| The copy constructor. | |
| virtual | ~ViewBase () |
| The virtual destructor. | |
| virtual void | setPlotter (PlotterBase *) |
| Sets the PlotterBase object to plotter. | |
| PlotterBase * | getPlotter () const |
| Returns the plotter used by this view. | |
| PlotterBase * | getPlotter () |
| Returns the plotter used by this view. | |
| virtual void | update (const Observable *)=0 |
| Implements the update method of the Observer pattern. | |
| virtual void | drawSelf () |
| Draws itself. | |
| virtual void | initPlot (double)=0 |
| Initializes a view before drawing. | |
| virtual void | endPlot ()=0 |
| Finalizes a view when all drawing has been done. | |
| virtual void | drawUserText (const std::string &, float, float, float, float, char, char)=0 |
| Draws a text string at a point in the data coordinate system. | |
| virtual void | drawMag (float, float, int, float)=0 |
| Draws the exponent on the axis label. | |
| virtual void | drawSquare (double, double, double, double, int, int, int)=0 |
| Draws a colored square. | |
| virtual void | drawViewSquare (float, float, float, float, int, int, int)=0 |
| Draws a colored square in view space. | |
| virtual void | setDrawRect (float, float, float, float)=0 |
| Sets the drawing Rectangle in the devices coordinate system. | |
| virtual float | userToDrawX (double) const =0 |
| Converts a coordinate in user space to drawing space along the X axis. | |
| virtual float | userToDrawY (double) const =0 |
| Converts a coordinate in user space to drawing space along the Y axis. | |
| virtual float | userToDrawColor (double) const =0 |
| Converts a coordinate in user space to drawing space along the color (X) axis. | |
| virtual double | getAspectRatio () const |
| Get the aspect ratio. | |
|
|
The default constructor.
|
|
|
The following constructor takes a plotter as an argument to use with a drawing.
|
|
|
The copy constructor.
|
|
|
The virtual destructor.
|
|
||||||||||||||||||||
|
Draws the exponent on the axis label. The arguments stand for the starting position of the writing ( x, y ), for the value of the magnitude ( mag ), and for the font ( fontsize ).
Implemented in QtViewImp. |
|
|
Draws itself.
|
|
||||||||||||||||||||||||||||||||
|
Draws a colored square. Used for shading on the cuts and the gray plot. Implemented in QtViewImp. |
|
||||||||||||||||||||||||||||||||
|
Draws a text string at a point in the data coordinate system.
Implemented in QtViewImp. |
|
||||||||||||||||||||||||||||||||
|
Draws a colored square in view space. Used for shading on the cuts and the gray plot. Implemented in QtViewImp. |
|
|
Finalizes a view when all drawing has been done.
|
|
|
Get the aspect ratio.
|
|
|
Returns the plotter used by this view.
|
|
|
Returns the plotter used by this view.
|
|
|
Initializes a view before drawing. The view should check it size. The parameter aspect, if greater than 0.0, sets the aspect ratio of the view, i.e. the ratio of the width to the height. Implemented in QtView. |
|
||||||||||||||||||||
|
Sets the drawing Rectangle in the devices coordinate system.
Implemented in QtView. |
|
|
Sets the PlotterBase object to plotter. The ViewBase object does not own the plotter. If the plotter is being changed, it is up to client code to decide to destroy the previous plotter or not. |
|
|
Implements the update method of the Observer pattern. Derived classes should send a message to what ever object is the parent of this ViewBase object. Implements Observer. Implemented in QtView. |
|
|
Converts a coordinate in user space to drawing space along the color (X) axis.
Implemented in QtViewImp. |
|
|
Converts a coordinate in user space to drawing space along the X axis.
Implemented in QtViewImp. |
|
|
Converts a coordinate in user space to drawing space along the Y axis.
Implemented in QtViewImp. |
1.4.3