#include <avogadro/line.h>

Signals | |
| void | mousePressEvent (Line *line, QMouseEvent *event) |
| void | mouseMoveEvent (Line *line, QMouseEvent *event) |
| void | mouseReleaseEvent (Line *line, QMouseEvent *event) |
Public Member Functions | |
| Line (QObject *parent=0) | |
| const Eigen::Vector3d & | begin () const |
| const Eigen::Vector3d & | end () const |
| void | setBegin (const Eigen::Vector3d &vec) |
| void | setEnd (const Eigen::Vector3d &vec) |
| double | width () const |
| void | setWidth (double value) |
| const Color * | color () |
| void | setColor (const Color &color) |
| void | mousePressed (QMouseEvent *event) |
| void | mouseMoved (QMouseEvent *event) |
| void | mouseReleased (QMouseEvent *event) |
The Line class is a Primitive subclass that provides a generic way of addressing lines.
| Avogadro::Line::Line | ( | QObject * | parent = 0 |
) |
Constructor
| parent | the object parent. |
| const Eigen::Vector3d& Avogadro::Line::begin | ( | ) | const [inline] |
Returns the begin position of the line.
| const Eigen::Vector3d& Avogadro::Line::end | ( | ) | const [inline] |
Returns the end position of the line.
| void Avogadro::Line::setBegin | ( | const Eigen::Vector3d & | vec | ) | [inline] |
Sets the begin position of the line.
| vec | Begin position of the line. |
| void Avogadro::Line::setEnd | ( | const Eigen::Vector3d & | vec | ) | [inline] |
Sets the end position of the line.
| vec | end position of the line. |
| double Avogadro::Line::width | ( | ) | const [inline] |
| void Avogadro::Line::setWidth | ( | double | value | ) | [inline] |
Set the width of the line to value.
| const Color* Avogadro::Line::color | ( | ) | [inline] |
| void Avogadro::Line::setColor | ( | const Color & | color | ) | [inline] |
Set the color of the line to color.
1.5.4