Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

Line Class Reference

#include <Line.h>

List of all members.

Public Member Functions

 Line (Point s=0, Point e=0, QColor c=QColor("black"), int w=1, Arrow *sa=0, Arrow *ea=0)
QStringList Info ()
void save (QTextStream *t)
void open (QTextStream *t, int version)
Point startPoint ()
Point endPoint ()
void setStartPoint (double x, double y)
void setEndPoint (double x, double y)
int Width ()
void setWidth (int w)
QColor Color ()
void setColor (QColor c)
void setColor (QString c)
ArrowstartArrow ()
ArrowendArrow ()
void setStartArrow (Arrow *a)
void setEndArrow (Arrow *e)
void draw (QPainter *p, int w, int h)
bool inside (int x, int y, int w, int h)

Protected Attributes

Point start
Point end
QColor color
int width
Arrowsarrow
Arrowearrow


Constructor & Destructor Documentation

Line::Line Point  s = 0,
Point  e = 0,
QColor  c = QColor("black"),
int  w = 1,
Arrow sa = 0,
Arrow ea = 0
 


Member Function Documentation

QColor Line::Color  )  [inline]
 

void Line::draw QPainter *  p,
int  w,
int  h
 

Arrow* Line::endArrow  )  [inline]
 

Point Line::endPoint  )  [inline]
 

QStringList Line::Info  ) 
 

bool Line::inside int  x,
int  y,
int  w,
int  h
 

void Line::open QTextStream *  t,
int  version
 

void Line::save QTextStream *  t  ) 
 

void Line::setColor QString  c  )  [inline]
 

void Line::setColor QColor  c  )  [inline]
 

void Line::setEndArrow Arrow e  )  [inline]
 

void Line::setEndPoint double  x,
double  y
[inline]
 

void Line::setStartArrow Arrow a  )  [inline]
 

void Line::setStartPoint double  x,
double  y
[inline]
 

void Line::setWidth int  w  )  [inline]
 

Arrow* Line::startArrow  )  [inline]
 

Point Line::startPoint  )  [inline]
 

int Line::Width  )  [inline]
 


Member Data Documentation

QColor Line::color [protected]
 

Arrow * Line::earrow [protected]
 

Point Line::end [protected]
 

Arrow* Line::sarrow [protected]
 

Point Line::start [protected]
 

int Line::width [protected]
 


The documentation for this class was generated from the following files:
Generated on Fri Aug 19 21:34:46 2005 for LabPlot by doxygen 1.3.6