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

QtViewImp Class Reference

Inheritance diagram for QtViewImp:

Inheritance graph
[legend]
Collaboration diagram for QtViewImp:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 18 of file QtViewImp.sip.

Public Member Functions

 QtViewImp (PlotterBase *)
 The constructor.
 QtViewImp (const QtViewImp &)
 The copy constructor.
void setInspector (QObject *)
 Sets the receiver of update messages.
virtual void endPlot ()
 Finalizes the plot view by unlocking the QApplication.
virtual void fillPickedPoint (double, double, std::vector< double > &) const =0
 Fills the picked point vector.
int toView (double) const
 Converts the view space coordinate x expressed as a double to one expressed as an int.
void setCrossX (double)
 Set the crossX value.
void setCrossY (double)
 Set the crossY value.
virtual void drawText (const std::string &, float, float, float, float, char, char, bool)
virtual void drawUserText (const std::string &, float, float, float, float, char, char)
 Draws a text string at a point in the data coordinate system.
virtual void drawMag (float, float, int, float)
 Draws the exponent on the axis label.
virtual void drawMag (float, float, int, float, QFont &)
virtual void drawSquare (double, double, double, double, int, int, int)
 Draws a colored square.
virtual void drawViewSquare (float, float, float, float, int, int, int)
 Draws a colored square in view space.
float userToDrawX (double) const
 Converts a coordinate in user space to drawing space along the X axis.
float userToDrawY (double) const
 Converts a coordinate in user space to drawing space along the Y axis.
float userToDrawColor (double) const
 Converts a coordinate in user space to drawing space along the color (X) axis.
virtual void setDefaultFont (const QFont &)
virtual const QFontdefaultFont ()


Constructor & Destructor Documentation

QtViewImp::QtViewImp PlotterBase  ) 
 

The constructor.

Todo:
Lots more methods could be protected.

QtViewImp::QtViewImp const QtViewImp  ) 
 

The copy constructor.


Member Function Documentation

virtual const QFont& QtViewImp::defaultFont  )  [virtual]
 

virtual void QtViewImp::drawMag float  ,
float  ,
int  ,
float  ,
QFont
[virtual]
 

virtual void QtViewImp::drawMag float  ,
float  ,
int  ,
float 
[virtual]
 

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 ).

Bug:
@@ This method should not exist.
The x, y coordinates of the position of the magnitude should be calculated in the AxisRepBase class and that class should use drawText.

Implements ViewBase.

virtual void QtViewImp::drawSquare double  ,
double  ,
double  ,
double  ,
int  ,
int  ,
int 
[virtual]
 

Draws a colored square.

Used for shading on the cuts and the gray plot.

Implements ViewBase.

virtual void QtViewImp::drawText const std::string &  ,
float  ,
float  ,
float  ,
float  ,
char  ,
char  ,
bool 
[virtual]
 

virtual void QtViewImp::drawUserText const std::string &  ,
float  ,
float  ,
float  ,
float  ,
char  ,
char 
[virtual]
 

Draws a text string at a point in the data coordinate system.

Bug:
Is this function used somewhere?

Implements ViewBase.

virtual void QtViewImp::drawViewSquare float  ,
float  ,
float  ,
float  ,
int  ,
int  ,
int 
[virtual]
 

Draws a colored square in view space.

Used for shading on the cuts and the gray plot.

Implements ViewBase.

virtual void QtViewImp::endPlot  )  [virtual]
 

Finalizes the plot view by unlocking the QApplication.

Implements ViewBase.

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

Fills the picked point vector.

Converts the view coordinates x and y to data coordinates. The results are put in the vector picked.

void QtViewImp::setCrossX double   ) 
 

Set the crossX value.

void QtViewImp::setCrossY double   ) 
 

Set the crossY value.

virtual void QtViewImp::setDefaultFont const QFont  )  [virtual]
 

void QtViewImp::setInspector QObject  ) 
 

Sets the receiver of update messages.

When this object receives update() from one of it Observable objects, it emits a customEvent message to this object, if one exists.

int QtViewImp::toView double   )  const
 

Converts the view space coordinate x expressed as a double to one expressed as an int.

float QtViewImp::userToDrawColor double   )  const [virtual]
 

Converts a coordinate in user space to drawing space along the color (X) axis.

Implements ViewBase.

float QtViewImp::userToDrawX double   )  const [virtual]
 

Converts a coordinate in user space to drawing space along the X axis.

Implements ViewBase.

float QtViewImp::userToDrawY double   )  const [virtual]
 

Converts a coordinate in user space to drawing space along the Y axis.

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