VectorCurve Class Reference

#include <VectorCurve.h>

Inheritance diagram for VectorCurve:

DataCurve PlotCurve

List of all members.


Detailed Description

Vector curve class.

Public Types

enum  Position { Tail, Middle, Head }
enum  VectorStyle { XYXY, XYAM }

Public Member Functions

QwtDoubleRect boundingRect () const
QColor color ()
void copy (const VectorCurve *vc)
void draw (QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, int from, int to) const
void drawArrowHead (QPainter *p, int xs, int ys, int xe, int ye) const
void drawVector (QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, int from, int to) const
void fillArrowHead (bool fill)
bool filledArrowHead ()
int headAngle ()
int headLength ()
void loadData ()
QString plotAssociation ()
 A list of data sources for this curve.
int position ()
void setColor (const QColor &c)
void setHeadAngle (int a)
void setHeadLength (int l)
void setPosition (int pos)
void setVectorEnd (const QwtArray< double > &x, const QwtArray< double > &y)
void setVectorEnd (const QString &xColName, const QString &yColName)
void setVectorStyle (int style)
void setWidth (int w)
double theta (int x0, int y0, int x1, int y1) const
void updateColumnNames (const QString &oldName, const QString &newName, bool updateTableName)
bool updateData (Table *t, const QString &colName)
 VectorCurve (VectorStyle style, Table *t, const QString &xColName, const char *name, const QString &endCol1, const QString &endCol2, int startRow, int endRow)
QString vectorEndXAColName ()
QString vectorEndYMColName ()
int vectorStyle ()
int width ()
 ~VectorCurve ()

Protected Attributes

QString d_end_x_a
QString d_end_y_m
int d_headAngle
int d_headLength
int d_position
int d_style
bool filledArrow
QPen pen
QwtArrayData * vectorEnd

Member Enumeration Documentation

enum VectorCurve::Position

Enumerator:
Tail 
Middle 
Head 

enum VectorCurve::VectorStyle

Enumerator:
XYXY 
XYAM 


Constructor & Destructor Documentation

VectorCurve::VectorCurve ( VectorStyle  style,
Table t,
const QString &  xColName,
const char *  name,
const QString &  endCol1,
const QString &  endCol2,
int  startRow,
int  endRow 
)

VectorCurve::~VectorCurve (  ) 


Member Function Documentation

QwtDoubleRect VectorCurve::boundingRect (  )  const

Reimplemented from PlotCurve.

QColor VectorCurve::color (  ) 

void VectorCurve::copy ( const VectorCurve vc  ) 

void VectorCurve::draw ( QPainter *  painter,
const QwtScaleMap &  xMap,
const QwtScaleMap &  yMap,
int  from,
int  to 
) const

void VectorCurve::drawArrowHead ( QPainter *  p,
int  xs,
int  ys,
int  xe,
int  ye 
) const

void VectorCurve::drawVector ( QPainter *  painter,
const QwtScaleMap &  xMap,
const QwtScaleMap &  yMap,
int  from,
int  to 
) const

void VectorCurve::fillArrowHead ( bool  fill  ) 

bool VectorCurve::filledArrowHead (  )  [inline]

int VectorCurve::headAngle (  )  [inline]

int VectorCurve::headLength (  )  [inline]

void VectorCurve::loadData (  )  [virtual]

Reimplemented from DataCurve.

QString VectorCurve::plotAssociation (  )  [virtual]

A list of data sources for this curve.

Elements must be in either of the following forms:

Column ids are of the form '<name of table> "_" <name of column>'.

Reimplemented from DataCurve.

int VectorCurve::position (  )  [inline]

void VectorCurve::setColor ( const QColor &  c  ) 

void VectorCurve::setHeadAngle ( int  a  ) 

void VectorCurve::setHeadLength ( int  l  ) 

void VectorCurve::setPosition ( int  pos  )  [inline]

void VectorCurve::setVectorEnd ( const QwtArray< double > &  x,
const QwtArray< double > &  y 
)

void VectorCurve::setVectorEnd ( const QString &  xColName,
const QString &  yColName 
)

void VectorCurve::setVectorStyle ( int  style  )  [inline]

void VectorCurve::setWidth ( int  w  ) 

double VectorCurve::theta ( int  x0,
int  y0,
int  x1,
int  y1 
) const

void VectorCurve::updateColumnNames ( const QString &  oldName,
const QString &  newName,
bool  updateTableName 
) [virtual]

Reimplemented from DataCurve.

bool VectorCurve::updateData ( Table t,
const QString &  colName 
) [virtual]

Reimplemented from DataCurve.

QString VectorCurve::vectorEndXAColName (  )  [inline]

QString VectorCurve::vectorEndYMColName (  )  [inline]

int VectorCurve::vectorStyle (  )  [inline]

int VectorCurve::width (  ) 


Member Data Documentation

QString VectorCurve::d_end_x_a [protected]

QString VectorCurve::d_end_y_m [protected]

int VectorCurve::d_headAngle [protected]

int VectorCurve::d_headLength [protected]

int VectorCurve::d_position [protected]

int VectorCurve::d_style [protected]

bool VectorCurve::filledArrow [protected]

QPen VectorCurve::pen [protected]

QwtArrayData* VectorCurve::vectorEnd [protected]


The documentation for this class was generated from the following files:
Generated on Mon Oct 15 06:11:44 2007 for QtiPlot by  doxygen 1.5.3