#include <avogadro/point.h>
Signals | |
void | mousePressEvent (Point *point, QMouseEvent *event) |
void | mouseMoveEvent (Point *point, QMouseEvent *event) |
void | mouseReleaseEvent (Point *point, QMouseEvent *event) |
Public Member Functions | |
Point (QObject *parent=0) | |
const Eigen::Vector3d & | pos () const |
void | setPos (const Eigen::Vector3d &vec) |
double | radius () const |
void | setRadius (double value) |
const Color * | color () |
void | setColor (const Color &color) |
void | mousePressed (QMouseEvent *event) |
void | mouseMoved (QMouseEvent *event) |
void | mouseReleased (QMouseEvent *event) |
The Point class is a Primitive subclass that provides a generic way of addressing points.
Avogadro::Point::Point | ( | QObject * | parent = 0 |
) |
Constructor
parent | the object parent. |
const Eigen::Vector3d& Avogadro::Point::pos | ( | ) | const [inline] |
Returns the position of the point.
void Avogadro::Point::setPos | ( | const Eigen::Vector3d & | vec | ) | [inline] |
Sets the position of the point.
vec | Position of the point. |
double Avogadro::Point::radius | ( | ) | const [inline] |
void Avogadro::Point::setRadius | ( | double | value | ) | [inline] |
Set the radius of the point to value
.
const Color* Avogadro::Point::color | ( | ) | [inline] |
void Avogadro::Point::setColor | ( | const Color & | color | ) | [inline] |
Set the color of the point to color
.