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

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 1041 of file pyviz.cc.

Member Function Documentation

◆ ClipEndBottom()

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

◆ ClipEndLeft()

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

◆ ClipEndRight()

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

◆ ClipEndTop()

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

◆ ClipLine()

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

◆ ClipStartBottom()

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

◆ ClipStartLeft()

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

◆ ClipStartRight()

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

◆ ClipStartTop()

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

Member Data Documentation

◆ m_clipMax

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

clip maximum

Definition at line 942 of file pyviz.cc.

◆ m_clipMin

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

clip minimum

Definition at line 941 of file pyviz.cc.


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