Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | 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)
 ~Line ()
QStringList Info ()
void save (QTextStream *t)
void open (QTextStream *t, int version)
QDomElement saveXML (QDomDocument doc)
void openXML (QDomNode node)
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
 

Line::~Line  ) 
 


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::openXML QDomNode  node  ) 
 

void Line::save QTextStream *  t  ) 
 

QDomElement Line::saveXML QDomDocument  doc  ) 
 

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 Sat Oct 13 21:55:02 2007 for LabPlot by  doxygen 1.4.4