A Discrete-Event Network Simulator
API
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:

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)
 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

◆ FastClipping()

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

Constructor.

Parameters
clipMinminimum clipping vector
clipMaxmaximum clipping vector

Definition at line 1060 of file pyviz.cc.

Member Function Documentation

◆ ClipEndBottom()

◆ ClipEndLeft()

◆ ClipEndRight()

◆ ClipEndTop()

◆ ClipLine()

bool ns3::anonymous_namespace{pyviz.cc}::FastClipping::ClipLine ( Line line)
inline

◆ ClipStartBottom()

void ns3::anonymous_namespace{pyviz.cc}::FastClipping::ClipStartBottom ( Line line)
inlineprivate

◆ ClipStartLeft()

◆ ClipStartRight()

void ns3::anonymous_namespace{pyviz.cc}::FastClipping::ClipStartRight ( Line line)
inlineprivate

◆ ClipStartTop()

Member Data Documentation

◆ m_clipMax

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

clip maximum

Definition at line 961 of file pyviz.cc.

◆ m_clipMin

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

clip minimum

Definition at line 960 of file pyviz.cc.


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