A Discrete-Event Network Simulator
ns3::anonymous_namespace{pyviz.cc}::FastClipping Class Reference

Adapted from http://en.wikipedia.org/w/index.php?title=Line_clipping&oldid=248609574. More...

+ Collaboration diagram for ns3::anonymous_namespace{pyviz.cc}::FastClipping:


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)
 Clip end bottom function. More...
void ClipEndLeft (Line &line)
 Clip end left function. More...
void ClipEndRight (Line &line)
 Clip end right function. More...
void ClipEndTop (Line &line)
 Clip end top function. More...
void ClipStartBottom (Line &line)
 Clip start bottom function. More...
void ClipStartLeft (Line &line)
 Clip start left function. More...
void ClipStartRight (Line &line)
 Clip start right function. More...
void ClipStartTop (Line &line)
 Clip start top function. More...

Detailed Description

Constructor & Destructor Documentation

ns3::anonymous_namespace{pyviz.cc}::FastClipping::FastClipping ( Vector2  clipMin,
Vector2  clipMax 


clipMinminimum clipping vector
clipMaxmaximum clipping vector

Definition at line 1056 of file pyviz.cc.

Member Function Documentation

bool ns3::anonymous_namespace{pyviz.cc}::FastClipping::ClipLine ( Line line)
void ns3::anonymous_namespace{pyviz.cc}::FastClipping::ClipStartBottom ( Line line)
void ns3::anonymous_namespace{pyviz.cc}::FastClipping::ClipStartRight ( Line line)

Member Data Documentation

Vector2 ns3::anonymous_namespace{pyviz.cc}::FastClipping::m_clipMax

clip maximum

Definition at line 957 of file pyviz.cc.

Vector2 ns3::anonymous_namespace{pyviz.cc}::FastClipping::m_clipMin

clip minimum

Definition at line 956 of file pyviz.cc.

The documentation for this class was generated from the following file: