#include <Line.h>
Inheritance diagram for Teddy::Models::Line:


Public Methods | |
| Line (Vertex *v1, Vertex *v2) | |
| Constructor, set start and end vertex pointers. More... | |
| Line (const Line &l) | |
| Copy-Constructor, clears state. More... | |
| virtual void | draw (Projection *p) |
| virtual void | swap () |
| Swap start and end point vertices. More... | |
| bool | operator== (const Line &l) const |
| bool | operator!= (const Line &l) const |
| Compare inequality. Like operator==(), must use shared vertices... More... | |
Public Attributes | |
| Vertex * | start_point |
| Vertex * | end_point |
Line is simple thin line defined by two points.
Definition at line 44 of file Line.h.
|
||||||||||||
|
Constructor, set start and end vertex pointers.
Definition at line 34 of file Line.cpp. References end_point, and start_point. |
|
|
Copy-Constructor, clears state.
Definition at line 41 of file Line.cpp. References end_point, and start_point. |
|
|
Draw routine. Implements Teddy::Models::Element. Definition at line 51 of file Line.cpp. References end_point, and start_point. |
|
|
Compare inequality. Like operator==(), must use shared vertices...
Definition at line 91 of file Line.cpp. References end_point, and start_point. |
|
|
Compare equality based on pointer equality. Must use shared vertices with this one... Definition at line 77 of file Line.cpp. References end_point, and start_point. |
|
|
Swap start and end point vertices.
Definition at line 66 of file Line.cpp. References end_point, and start_point. |
|
|
Definition at line 47 of file Line.h. Referenced by draw, Line, operator!=, operator==, and swap. |
|
|
Definition at line 46 of file Line.h. Referenced by draw, Line, operator!=, operator==, and swap. |