Avogadro::Line Class Reference

Representation of a line in space (i.e., beginning and end points). More...

#include <avogadro/line.h>

Inheritance diagram for Avogadro::Line:

Inheritance graph
[legend]

List of all members.

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 Colorcolor ()
void setColor (const Color &color)
void mousePressed (QMouseEvent *event)
void mouseMoved (QMouseEvent *event)
void mouseReleased (QMouseEvent *event)


Detailed Description

Representation of a line in space (i.e., beginning and end points).

Author:
Tim Vandermeersch
The Line class is a Primitive subclass that provides a generic way of addressing lines.

Constructor & Destructor Documentation

Avogadro::Line::Line ( QObject *  parent = 0  ) 

Constructor

Parameters:
parent the object parent.


Member Function Documentation

const Eigen::Vector3d& Avogadro::Line::begin (  )  const [inline]

Returns the begin position of the line.

Returns:
The begin position of the line.

const Eigen::Vector3d& Avogadro::Line::end (  )  const [inline]

Returns the end position of the line.

Returns:
The end position of the line.

void Avogadro::Line::setBegin ( const Eigen::Vector3d &  vec  )  [inline]

Sets the begin position of the line.

Parameters:
vec Begin position of the line.

void Avogadro::Line::setEnd ( const Eigen::Vector3d &  vec  )  [inline]

Sets the end position of the line.

Parameters:
vec end position of the line.

double Avogadro::Line::width (  )  const [inline]

Returns:
The width of the line.

void Avogadro::Line::setWidth ( double  value  )  [inline]

Set the width of the line to value.

const Color* Avogadro::Line::color (  )  [inline]

Returns:
The color of the line.

void Avogadro::Line::setColor ( const Color color  )  [inline]

Set the color of the line to color.


The documentation for this class was generated from the following files:
Generated on Sat May 30 02:00:39 2009 for Avogadro by  doxygen 1.5.4