GLC_Line : OpenGL 3D Line. More...
#include <glc_line.h>
Public Member Functions | |
Constructor / Destructor | |
| GLC_Line (const GLC_Point3d &, const GLC_Point3d &) | |
| Construct an GLC_Line by to point. | |
| GLC_Line (const GLC_Line &) | |
| Copy constructor. | |
| virtual | ~GLC_Line () |
| Default dstructor. | |
Get Functions | |
| GLC_Point3d | point1 (void) const |
| Return the point1 coordinate. | |
| GLC_Point3d | point2 (void) const |
| Return the point2 coordinate. | |
| virtual const GLC_BoundingBox & | boundingBox (void) |
| Return the point bounding box. | |
| virtual GLC_Geometry * | clone () const |
| Return a copy of the geometry. | |
Set Functions | |
| void | setCoordinate (const GLC_Point3d &, const GLC_Point3d &) |
| Set Line coordinate by 4D point. | |
| void | setColor (const QColor &color) |
| Set this line color. | |
Private Member Functions | |
OpenGL Functions | |
| virtual void | glDraw (const GLC_RenderProperties &) |
| Virtual interface for OpenGL Geometry set up. | |
Private Attributes | |
| GLC_Point3d | m_Point1 |
| First point of the line. | |
| GLC_Point3d | m_Point2 |
| First point of the line. | |
GLC_Line : OpenGL 3D Line.
An GLC_Line is just a simple renderable 3D Line
Definition at line 39 of file glc_line.h.
| GLC_Line::GLC_Line | ( | const GLC_Point3d & | point1, | |
| const GLC_Point3d & | point2 | |||
| ) |
Construct an GLC_Line by to point.
Definition at line 32 of file glc_line.cpp.
Referenced by clone().
| GLC_Line::GLC_Line | ( | const GLC_Line & | line | ) |
Copy constructor.
Definition at line 40 of file glc_line.cpp.
| GLC_Line::~GLC_Line | ( | ) | [virtual] |
Default dstructor.
Definition at line 48 of file glc_line.cpp.
| const GLC_BoundingBox & GLC_Line::boundingBox | ( | void | ) | [virtual] |
Return the point bounding box.
Implements GLC_Geometry.
Definition at line 57 of file glc_line.cpp.
References GLC_BoundingBox::combine(), GLC_Geometry::m_pBoundingBox, m_Point1, and m_Point2.
| GLC_Geometry * GLC_Line::clone | ( | ) | const [virtual] |
Return a copy of the geometry.
Implements GLC_Geometry.
Definition at line 70 of file glc_line.cpp.
References GLC_Line().
| void GLC_Line::glDraw | ( | const GLC_RenderProperties & | ) | [private, virtual] |
Virtual interface for OpenGL Geometry set up.
This Virtual function is implemented here.
Implements GLC_Geometry.
Definition at line 91 of file glc_line.cpp.
References GLC_Vector3d::data(), m_Point1, and m_Point2.
| GLC_Point3d GLC_Line::point1 | ( | void | ) | const [inline] |
Return the point1 coordinate.
Definition at line 64 of file glc_line.h.
| GLC_Point3d GLC_Line::point2 | ( | void | ) | const [inline] |
Return the point2 coordinate.
Definition at line 68 of file glc_line.h.
| void GLC_Line::setColor | ( | const QColor & | color | ) | [inline] |
Set this line color.
Definition at line 79 of file glc_line.cpp.
References GLC_Geometry::firstMaterial(), GLC_Geometry::hasMaterial(), GLC_Geometry::m_WireColor, and GLC_Material::setDiffuseColor().
| void GLC_Line::setCoordinate | ( | const GLC_Point3d & | , | |
| const GLC_Point3d & | ||||
| ) |
Set Line coordinate by 4D point.
GLC_Point3d GLC_Line::m_Point1 [private] |
First point of the line.
Definition at line 111 of file glc_line.h.
Referenced by boundingBox(), and glDraw().
GLC_Point3d GLC_Line::m_Point2 [private] |
First point of the line.
Definition at line 114 of file glc_line.h.
Referenced by boundingBox(), and glDraw().