INET Framework for OMNeT++/OMNEST
inet::PolyhedronEdge Class Reference

#include <PolyhedronEdge.h>

Public Member Functions

 PolyhedronEdge (PolyhedronPoint *point1, PolyhedronPoint *point2, PolyhedronFace *parentFace)
 
PolyhedronPointgetP1 ()
 
PolyhedronPointgetP2 ()
 
const PolyhedronPointgetP1 () const
 
const PolyhedronPointgetP2 () const
 
void setNextEdge (PolyhedronEdge *next)
 
void setPrevEdge (PolyhedronEdge *prev)
 
void setJointEdge (PolyhedronEdge *jointEdge)
 
PolyhedronEdgegetjointEdge ()
 
PolyhedronEdgegetNextEdge ()
 
PolyhedronEdgegetPrevEdge ()
 
PolyhedronFacegetParentFace ()
 
void setJointFace (PolyhedronFace *jointFace)
 
PolyhedronFacegetJointFace ()
 
PolyhedronPoint getEdgeVector () const
 
bool operator== (const PolyhedronEdge &rhs) const
 

Protected Attributes

PolyhedronPointpoint1
 
PolyhedronPointpoint2
 
PolyhedronFaceparentFace
 
PolyhedronFacejointFace
 
PolyhedronEdgejointEdge
 
PolyhedronEdgenext
 
PolyhedronEdgeprev
 

Constructor & Destructor Documentation

◆ PolyhedronEdge()

inet::PolyhedronEdge::PolyhedronEdge ( PolyhedronPoint point1,
PolyhedronPoint point2,
PolyhedronFace parentFace 
)
inline
32  :
34  jointEdge(nullptr), next(nullptr), prev(nullptr) {};

Member Function Documentation

◆ getEdgeVector()

PolyhedronPoint inet::PolyhedronEdge::getEdgeVector ( ) const
13 {
14  return *point2 - *point1;
15 }

◆ getjointEdge()

PolyhedronEdge* inet::PolyhedronEdge::getjointEdge ( )
inline
42 { return jointEdge; }

◆ getJointFace()

PolyhedronFace* inet::PolyhedronEdge::getJointFace ( )
inline
47 { return jointFace; }

Referenced by inet::Polyhedron::mergeFaces().

◆ getNextEdge()

PolyhedronEdge* inet::PolyhedronEdge::getNextEdge ( )
inline
43 { return next; }

◆ getP1() [1/2]

◆ getP1() [2/2]

const PolyhedronPoint* inet::PolyhedronEdge::getP1 ( ) const
inline
37 { return point1; }

◆ getP2() [1/2]

PolyhedronPoint* inet::PolyhedronEdge::getP2 ( )
inline
36 { return point2; }

Referenced by inet::Polyhedron::mergeFaces().

◆ getP2() [2/2]

const PolyhedronPoint* inet::PolyhedronEdge::getP2 ( ) const
inline
38 { return point2; }

◆ getParentFace()

PolyhedronFace* inet::PolyhedronEdge::getParentFace ( )
inline
45 { return parentFace; }

◆ getPrevEdge()

PolyhedronEdge* inet::PolyhedronEdge::getPrevEdge ( )
inline
44 { return prev; }

◆ operator==()

bool inet::PolyhedronEdge::operator== ( const PolyhedronEdge rhs) const
18 {
19  return (point1 == rhs.point1 && point2 == rhs.point2) ||
20  (point1 == rhs.point2 && point2 == rhs.point1);
21 }

◆ setJointEdge()

void inet::PolyhedronEdge::setJointEdge ( PolyhedronEdge jointEdge)
inline
41 { this->jointEdge = jointEdge; }

◆ setJointFace()

void inet::PolyhedronEdge::setJointFace ( PolyhedronFace jointFace)
inline
46 { this->jointFace = jointFace; }

Referenced by inet::Polyhedron::connectFaces().

◆ setNextEdge()

void inet::PolyhedronEdge::setNextEdge ( PolyhedronEdge next)
inline
39 { this->next = next; }

Referenced by inet::PolyhedronFace::PolyhedronFace().

◆ setPrevEdge()

void inet::PolyhedronEdge::setPrevEdge ( PolyhedronEdge prev)
inline
40 { this->prev = prev; }

Referenced by inet::PolyhedronFace::PolyhedronFace().

Member Data Documentation

◆ jointEdge

PolyhedronEdge* inet::PolyhedronEdge::jointEdge
protected

◆ jointFace

PolyhedronFace* inet::PolyhedronEdge::jointFace
protected

◆ next

PolyhedronEdge* inet::PolyhedronEdge::next
protected

◆ parentFace

PolyhedronFace* inet::PolyhedronEdge::parentFace
protected

◆ point1

PolyhedronPoint* inet::PolyhedronEdge::point1
protected

Referenced by getEdgeVector(), and operator==().

◆ point2

PolyhedronPoint* inet::PolyhedronEdge::point2
protected

Referenced by getEdgeVector(), and operator==().

◆ prev

PolyhedronEdge* inet::PolyhedronEdge::prev
protected

The documentation for this class was generated from the following files:
inet::PolyhedronEdge::point2
PolyhedronPoint * point2
Definition: PolyhedronEdge.h:24
inet::PolyhedronEdge::parentFace
PolyhedronFace * parentFace
Definition: PolyhedronEdge.h:25
inet::PolyhedronEdge::next
PolyhedronEdge * next
Definition: PolyhedronEdge.h:28
inet::PolyhedronEdge::jointEdge
PolyhedronEdge * jointEdge
Definition: PolyhedronEdge.h:27
inet::PolyhedronEdge::point1
PolyhedronPoint * point1
Definition: PolyhedronEdge.h:23
inet::PolyhedronEdge::prev
PolyhedronEdge * prev
Definition: PolyhedronEdge.h:29
inet::PolyhedronEdge::jointFace
PolyhedronFace * jointFace
Definition: PolyhedronEdge.h:26