Adapted from http://en.wikipedia.org/w/index.php?title=Line_clipping&oldid=248609574. More...
Classes | |
struct | Line |
Line structure. More... | |
struct | Vector2 |
Vector2 structure. More... | |
Public Member Functions | |
FastClipping (Vector2 clipMin, Vector2 clipMax) | |
Constructor. More... | |
bool | ClipLine (Line &line) |
Clip line function. More... | |
Public Attributes | |
Vector2 | m_clipMax |
clip maximum More... | |
Vector2 | m_clipMin |
clip minimum More... | |
Private Member Functions | |
void | ClipEndBottom (Line &line) const |
Clip end bottom function. More... | |
void | ClipEndLeft (Line &line) const |
Clip end left function. More... | |
void | ClipEndRight (Line &line) const |
Clip end right function. More... | |
void | ClipEndTop (Line &line) const |
Clip end top function. More... | |
void | ClipStartBottom (Line &line) const |
Clip start bottom function. More... | |
void | ClipStartLeft (Line &line) const |
Clip start left function. More... | |
void | ClipStartRight (Line &line) const |
Clip start right function. More... | |
void | ClipStartTop (Line &line) const |
Clip start top function. More... | |
|
inlineprivate |
Clip end bottom function.
line | the clip line |
Definition at line 1008 of file pyviz.cc.
References ns3::anonymous_namespace{pyviz.cc}::FastClipping::Line::dx, ns3::anonymous_namespace{pyviz.cc}::FastClipping::Line::dy, ns3::anonymous_namespace{pyviz.cc}::FastClipping::Line::end, ns3::anonymous_namespace{pyviz.cc}::FastClipping::Vector2::x, and ns3::anonymous_namespace{pyviz.cc}::FastClipping::Vector2::y.
|
inlineprivate |
Clip end left function.
line | the clip line |
Definition at line 1028 of file pyviz.cc.
References ns3::anonymous_namespace{pyviz.cc}::FastClipping::Line::dx, ns3::anonymous_namespace{pyviz.cc}::FastClipping::Line::dy, ns3::anonymous_namespace{pyviz.cc}::FastClipping::Line::end, ns3::anonymous_namespace{pyviz.cc}::FastClipping::Vector2::x, and ns3::anonymous_namespace{pyviz.cc}::FastClipping::Vector2::y.
|
inlineprivate |
Clip end right function.
line | the clip line |
Definition at line 1018 of file pyviz.cc.
References ns3::anonymous_namespace{pyviz.cc}::FastClipping::Line::dx, ns3::anonymous_namespace{pyviz.cc}::FastClipping::Line::dy, ns3::anonymous_namespace{pyviz.cc}::FastClipping::Line::end, ns3::anonymous_namespace{pyviz.cc}::FastClipping::Vector2::x, and ns3::anonymous_namespace{pyviz.cc}::FastClipping::Vector2::y.
|
inlineprivate |
Clip end top function.
line | the clip line |
Definition at line 998 of file pyviz.cc.
References ns3::anonymous_namespace{pyviz.cc}::FastClipping::Line::dx, ns3::anonymous_namespace{pyviz.cc}::FastClipping::Line::dy, ns3::anonymous_namespace{pyviz.cc}::FastClipping::Line::end, ns3::anonymous_namespace{pyviz.cc}::FastClipping::Vector2::x, and ns3::anonymous_namespace{pyviz.cc}::FastClipping::Vector2::y.
|
inline |
Clip line function.
line | the clip line |
Definition at line 1052 of file pyviz.cc.
References ns3::anonymous_namespace{pyviz.cc}::FastClipping::Line::end, ns3::anonymous_namespace{pyviz.cc}::FastClipping::Line::start, ns3::anonymous_namespace{pyviz.cc}::FastClipping::Vector2::x, and ns3::anonymous_namespace{pyviz.cc}::FastClipping::Vector2::y.
|
inlineprivate |
Clip start bottom function.
line | the clip line |
Definition at line 968 of file pyviz.cc.
References ns3::anonymous_namespace{pyviz.cc}::FastClipping::Line::dx, ns3::anonymous_namespace{pyviz.cc}::FastClipping::Line::dy, ns3::anonymous_namespace{pyviz.cc}::FastClipping::Line::start, ns3::anonymous_namespace{pyviz.cc}::FastClipping::Vector2::x, and ns3::anonymous_namespace{pyviz.cc}::FastClipping::Vector2::y.
|
inlineprivate |
Clip start left function.
line | the clip line |
Definition at line 988 of file pyviz.cc.
References ns3::anonymous_namespace{pyviz.cc}::FastClipping::Line::dx, ns3::anonymous_namespace{pyviz.cc}::FastClipping::Line::dy, ns3::anonymous_namespace{pyviz.cc}::FastClipping::Line::start, ns3::anonymous_namespace{pyviz.cc}::FastClipping::Vector2::x, and ns3::anonymous_namespace{pyviz.cc}::FastClipping::Vector2::y.
|
inlineprivate |
Clip start right function.
line | the clip line |
Definition at line 978 of file pyviz.cc.
References ns3::anonymous_namespace{pyviz.cc}::FastClipping::Line::dx, ns3::anonymous_namespace{pyviz.cc}::FastClipping::Line::dy, ns3::anonymous_namespace{pyviz.cc}::FastClipping::Line::start, ns3::anonymous_namespace{pyviz.cc}::FastClipping::Vector2::x, and ns3::anonymous_namespace{pyviz.cc}::FastClipping::Vector2::y.
|
inlineprivate |
Clip start top function.
line | the clip line |
Definition at line 958 of file pyviz.cc.
References ns3::anonymous_namespace{pyviz.cc}::FastClipping::Line::dx, ns3::anonymous_namespace{pyviz.cc}::FastClipping::Line::dy, ns3::anonymous_namespace{pyviz.cc}::FastClipping::Line::start, ns3::anonymous_namespace{pyviz.cc}::FastClipping::Vector2::x, and ns3::anonymous_namespace{pyviz.cc}::FastClipping::Vector2::y.
Vector2 ns3::anonymous_namespace{pyviz.cc}::FastClipping::m_clipMax |
Vector2 ns3::anonymous_namespace{pyviz.cc}::FastClipping::m_clipMin |