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

inet::PolyhedronEdge::PolyhedronEdge ( PolyhedronPoint point1,
PolyhedronPoint point2,
PolyhedronFace parentFace 
)
inline
42  :
44  jointEdge(nullptr), next(nullptr), prev(nullptr) {};
PolyhedronFace * parentFace
Definition: PolyhedronEdge.h:35
PolyhedronPoint * point2
Definition: PolyhedronEdge.h:34
PolyhedronEdge * prev
Definition: PolyhedronEdge.h:39
PolyhedronFace * jointFace
Definition: PolyhedronEdge.h:36
PolyhedronEdge * next
Definition: PolyhedronEdge.h:38
PolyhedronPoint * point1
Definition: PolyhedronEdge.h:33
PolyhedronEdge * jointEdge
Definition: PolyhedronEdge.h:37

Member Function Documentation

PolyhedronPoint inet::PolyhedronEdge::getEdgeVector ( ) const
23 {
24  return *point2 - *point1;
25 }
PolyhedronPoint * point2
Definition: PolyhedronEdge.h:34
PolyhedronPoint * point1
Definition: PolyhedronEdge.h:33
PolyhedronEdge* inet::PolyhedronEdge::getjointEdge ( )
inline
52 { return jointEdge; }
PolyhedronEdge * jointEdge
Definition: PolyhedronEdge.h:37
PolyhedronFace* inet::PolyhedronEdge::getJointFace ( )
inline

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

57 { return jointFace; }
PolyhedronFace * jointFace
Definition: PolyhedronEdge.h:36
PolyhedronEdge* inet::PolyhedronEdge::getNextEdge ( )
inline
53 { return next; }
PolyhedronEdge * next
Definition: PolyhedronEdge.h:38
PolyhedronPoint* inet::PolyhedronEdge::getP1 ( )
inline
const PolyhedronPoint* inet::PolyhedronEdge::getP1 ( ) const
inline
47 { return point1; }
PolyhedronPoint * point1
Definition: PolyhedronEdge.h:33
PolyhedronPoint* inet::PolyhedronEdge::getP2 ( )
inline

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

46 { return point2; }
PolyhedronPoint * point2
Definition: PolyhedronEdge.h:34
const PolyhedronPoint* inet::PolyhedronEdge::getP2 ( ) const
inline
48 { return point2; }
PolyhedronPoint * point2
Definition: PolyhedronEdge.h:34
PolyhedronFace* inet::PolyhedronEdge::getParentFace ( )
inline
55 { return parentFace; }
PolyhedronFace * parentFace
Definition: PolyhedronEdge.h:35
PolyhedronEdge* inet::PolyhedronEdge::getPrevEdge ( )
inline
54 { return prev; }
PolyhedronEdge * prev
Definition: PolyhedronEdge.h:39
bool inet::PolyhedronEdge::operator== ( const PolyhedronEdge rhs) const
28 {
29  return (point1 == rhs.point1 && point2 == rhs.point2) ||
30  (point1 == rhs.point2 && point2 == rhs.point1);
31 }
PolyhedronPoint * point2
Definition: PolyhedronEdge.h:34
PolyhedronPoint * point1
Definition: PolyhedronEdge.h:33
void inet::PolyhedronEdge::setJointEdge ( PolyhedronEdge jointEdge)
inline
51 { this->jointEdge = jointEdge; }
PolyhedronEdge * jointEdge
Definition: PolyhedronEdge.h:37
void inet::PolyhedronEdge::setJointFace ( PolyhedronFace jointFace)
inline

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

56 { this->jointFace = jointFace; }
PolyhedronFace * jointFace
Definition: PolyhedronEdge.h:36
void inet::PolyhedronEdge::setNextEdge ( PolyhedronEdge next)
inline

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

49 { this->next = next; }
PolyhedronEdge * next
Definition: PolyhedronEdge.h:38
void inet::PolyhedronEdge::setPrevEdge ( PolyhedronEdge prev)
inline

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

50 { this->prev = prev; }
PolyhedronEdge * prev
Definition: PolyhedronEdge.h:39

Member Data Documentation

PolyhedronEdge* inet::PolyhedronEdge::jointEdge
protected
PolyhedronFace* inet::PolyhedronEdge::jointFace
protected
PolyhedronEdge* inet::PolyhedronEdge::next
protected
PolyhedronFace* inet::PolyhedronEdge::parentFace
protected
PolyhedronPoint* inet::PolyhedronEdge::point1
protected

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

PolyhedronPoint* inet::PolyhedronEdge::point2
protected

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

PolyhedronEdge* inet::PolyhedronEdge::prev
protected

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