This is a group of consectutive line segments to be rendered together. More...
#include <linegroup.h>
Public Member Functions | |
| LineGroup (World *ParentWorld) | |
| Basic Constructor. | |
| ~LineGroup () | |
| Default Destructor. | |
| void | AddPoint (const Vector3 &NewPoint, const ColourValue &Colour) |
| This add Either a start pointing, or a line segment to the next point. More... | |
| void | AddToWorld () |
| Configures this LineGroup to render in the scene. | |
| void | ClearLines () |
| Clears all data pertaining to points in this line group. | |
| void | DrawLine (const Vector3 &Start, const Vector3 &End, const ColourValue &Colour) |
| This adds Two points to the list. More... | |
| void | DrawLines () |
| Updates the render buffers with the needed data to draw the lines in this LineGroup. | |
| Real | GetBoundingRadius () const |
| How big would a circle need to be to encapsulate this. More... | |
| Whole | GetNumPoints () const |
| Get the amount of points used to define Line Segments. More... | |
| const Vector3 | GetPoint (const Whole Index) const |
| Access points by order they were added. More... | |
| void | RemoveFromWorld () |
| Unhooks this LineGroup from the scene, stopping it from rendering. | |
| void | UpdatePoint (const Whole Index, const Vector3 &NewValue) |
| This changes a specific point. More... | |
This is a group of consectutive line segments to be rendered together.
This class stores a listing of points and renders thems as one object into the world provided.
Definition at line 64 of file linegroup.h.
| void Mezzanine::LineGroup::AddPoint | ( | const Vector3 & | NewPoint, |
| const ColourValue & | Colour | ||
| ) |
This add Either a start pointing, or a line segment to the next point.
This adds a point that will be rendered as the endpoint of a line.
| NewPoint | The Point to be added. |
| Colour | The colour to be given to the new point. |
Definition at line 373 of file linegroup.cpp.
| void Mezzanine::LineGroup::DrawLine | ( | const Vector3 & | Start, |
| const Vector3 & | End, | ||
| const ColourValue & | Colour | ||
| ) |
This adds Two points to the list.
| Start | The first point to be added. |
| End | The second point to be added. |
| Colour | The colour of the line being added. |
Definition at line 388 of file linegroup.cpp.
| Real Mezzanine::LineGroup::GetBoundingRadius | ( | ) | const |
How big would a circle need to be to encapsulate this.
Definition at line 406 of file linegroup.cpp.
| Whole Mezzanine::LineGroup::GetNumPoints | ( | void | ) | const |
Get the amount of points used to define Line Segments.
Definition at line 379 of file linegroup.cpp.
Access points by order they were added.
| Index | A Whole number which indicates which point to retrieve. |
Definition at line 376 of file linegroup.cpp.
This changes a specific point.
This replaces a point specified by index with a new point.
| Index | The index of the point to replace. |
| NewValue | A point to replace the existing point with. |
Definition at line 382 of file linegroup.cpp.
1.8.9.1. Thanks to the
Open Icon Library
for help with some of the icons.