Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

QtView Class Reference

Inheritance diagram for QtView:

Inheritance graph
[legend]
Collaboration diagram for QtView:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 20 of file QtView.sip.

Public Member Functions

 QtView (PlotterBase *)
 The constructor.
virtual ~QtView ()
 The required virtual destructor.
virtual void draw (QPainter &)
 Re-Implements the inherited function from QCanvasPoygonalItem.
virtual void drawShape (QPainter &)
 Overrides pure virtual function of QCanvasPolygonalItem.
virtual void update (const Observable *)
 Responds to Obvervable update message.
virtual void setShowCrossHairs (bool)
 Sets display status of cross-hairs.
void setDrawRect (const QRect &)
 Sets the drawing rectangle in the paint device space.
virtual void setDrawRect (float, float, float, float)
 Sets the drawing rectangle in the paint device space.
virtual void initPlot (double)
 Initializes a view before drawing.
virtual void endPlot ()
 Finalizes the plot view by unlocking the QApplication.
int toViewX (double) const
 Converts the data space coordinate X to the view space coordinate X.
int toViewY (double) const
 Converts the data space coordinate Y to the view space coordinate Y.
virtual void fillPickedPoint (double, double, std::vector< double > &) const
virtual void setPageWidth (int)
 Set the page width.


Constructor & Destructor Documentation

QtView::QtView PlotterBase  ) 
 

The constructor.

virtual QtView::~QtView  )  [virtual]
 

The required virtual destructor.


Member Function Documentation

virtual void QtView::draw QPainter  )  [virtual]
 

Re-Implements the inherited function from QCanvasPoygonalItem.

First calls base class to draw the contents. If selected, then also draws the border and sends update message to m_inspector.

virtual void QtView::drawShape QPainter  )  [virtual]
 

Overrides pure virtual function of QCanvasPolygonalItem.

Reimplemented from QCanvasRectangle.

virtual void QtView::endPlot  )  [virtual]
 

Finalizes the plot view by unlocking the QApplication.

Implements ViewBase.

virtual void QtView::fillPickedPoint double  ,
double  ,
std::vector< double > & 
const [virtual]
 

virtual void QtView::initPlot double   )  [virtual]
 

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.

Implements ViewBase.

virtual void QtView::setDrawRect float  ,
float  ,
float  ,
float 
[virtual]
 

Sets the drawing rectangle in the paint device space.

Implements ViewBase.

void QtView::setDrawRect const QRect  ) 
 

Sets the drawing rectangle in the paint device space.

virtual void QtView::setPageWidth int   )  [virtual]
 

Set the page width.

It is used for setting the dimensions of the draw rectangle

virtual void QtView::setShowCrossHairs bool   )  [virtual]
 

Sets display status of cross-hairs.

Sets the display of cross-hairs at the previous defined position on if flag is true, otherwise does not display the cross-hairs.

See also:
setCrossX and setCrossY.

int QtView::toViewX double   )  const
 

Converts the data space coordinate X to the view space coordinate X.

int QtView::toViewY double   )  const
 

Converts the data space coordinate Y to the view space coordinate Y.

virtual void QtView::update const Observable  )  [virtual]
 

Responds to Obvervable update message.

If display is not null, responds to Obvervable update message by informing the QCanvas that its rectangluar has changed.

Implements ViewBase.


The documentation for this class was generated from the following file:
Generated on Wed Sep 7 14:51:58 2005 for SiHippo by  doxygen 1.4.3