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

#include <PolyhedronPoint.h>

Inheritance diagram for inet::PolyhedronPoint:
inet::Coord

Public Member Functions

std::vector< PolyhedronFace * > & getConflictVector ()
 
bool isSelected () const
 
void setToSelected ()
 
bool hasConflicts () const
 
void addConflictFace (PolyhedronFace *face)
 
 PolyhedronPoint (const Coord &point)
 
 PolyhedronPoint ()
 
- Public Member Functions inherited from inet::Coord
 Coord ()
 Default constructor. More...
 
 Coord (double x, double y, double z=0.0)
 Initializes a coordinate. More...
 
 Coord (const Coord &other)
 Initializes coordinate from other coordinate. More...
 
Coord xyz () const
 
Coord getXyz () const
 
Coord yzx ()
 
Coord getYzx () const
 
Coord zxy ()
 
Coord getZxy () const
 
double getX () const
 
void setX (double x)
 
double getY () const
 
void setY (double y)
 
double getZ () const
 
void setZ (double z)
 
std::string str () const
 Returns a string with the value of the coordinate. More...
 
Coord operator- () const
 Returns the negated vector. More...
 
Coordoperator*= (double f)
 Multiplies this coordinate vector by a real number. More...
 
Coordoperator/= (double f)
 Divides this coordinate vector by a real number. More...
 
Coordoperator+= (const Coord &a)
 Adds coordinate vector 'a' to this. More...
 
double operator* (const Coord &v) const
 Dot product. More...
 
Coord operator% (const Coord &v) const
 Cross product. More...
 
Coordoperator= (const Coord &other)
 Assigns coordinate vector 'other' to this. More...
 
Coordoperator-= (const Coord &a)
 Subtracts coordinate vector 'a' from this. More...
 
Coord clamp (double l, double u)
 
Coord getClamped (double l, double u) const
 
Coord sign ()
 
Coord getSign () const
 
Coord abs ()
 
Coord getAbs () const
 
Coord step (const Coord &a)
 
Coord getStep (const Coord &a) const
 
Coord divideElementwise (const Coord &a)
 
Coord getDividedElementwise (const Coord &a) const
 
Coord multiplyElementwise (const Coord &a)
 
Coord getMultipliedElementwise (const Coord &a) const
 
double distance (const Coord &a) const
 Returns the distance to Coord 'a'. More...
 
double sqrdist (const Coord &a) const
 Returns distance^2 to Coord 'a' (omits calling square root). More...
 
double sqrTorusDist (const Coord &b, const Coord &size) const
 Returns the squared distance on a torus of this to Coord 'b' (omits calling square root). More...
 
double squareLength () const
 Returns the square of the length of this Coords position vector. More...
 
double length () const
 Returns the length of this Coords position vector. More...
 
Coord normalize ()
 Updates the length of this position vector to be 1. More...
 
Coord getNormalized () const
 
bool isInBoundary (const Coord &lowerBound, const Coord &upperBound) const
 Checks if this coordinate is inside a specified rectangle. More...
 
bool isNil () const
 
bool isUnspecified () const
 Returns true if this coordinate is unspecified. More...
 
Coord min (const Coord &a) const
 Returns the minimal coordinates. More...
 
Coord max (const Coord &a) const
 Returns the maximal coordinates. More...
 
double angle (const Coord &a)
 Returns the angle between the two vectors. More...
 

Protected Attributes

std::vector< PolyhedronFace * > fConflict
 
bool selected
 

Additional Inherited Members

- Static Public Member Functions inherited from inet::Coord
static Coord parse (const char *text)
 
- Public Attributes inherited from inet::Coord
double x
 
double y
 
double z
 
- Static Public Attributes inherited from inet::Coord
static const Coord NIL = Coord(NaN, NaN, NaN)
 Constant with all values set to 0. More...
 
static const Coord ZERO = Coord(0.0, 0.0, 0.0)
 
static const Coord ONE = Coord(1.0, 1.0, 1.0)
 
static const Coord X_AXIS = Coord(1.0, 0.0, 0.0)
 
static const Coord Y_AXIS = Coord(0.0, 1.0, 0.0)
 
static const Coord Z_AXIS = Coord(0.0, 0.0, 1.0)
 

Constructor & Destructor Documentation

◆ PolyhedronPoint() [1/2]

inet::PolyhedronPoint::PolyhedronPoint ( const Coord point)
13 {
14  selected = false;
15  x = point.x;
16  y = point.y;
17  z = point.z;
18 }

◆ PolyhedronPoint() [2/2]

inet::PolyhedronPoint::PolyhedronPoint ( )
21 {
22  selected = false;
23  x = y = z = 0;
24 }

Member Function Documentation

◆ addConflictFace()

void inet::PolyhedronPoint::addConflictFace ( PolyhedronFace face)
inline
35 { fConflict.push_back(face); }

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

◆ getConflictVector()

std::vector<PolyhedronFace *>& inet::PolyhedronPoint::getConflictVector ( )
inline
31 { return fConflict; }

◆ hasConflicts()

bool inet::PolyhedronPoint::hasConflicts ( ) const
inline
34 { return !fConflict.empty(); }

◆ isSelected()

bool inet::PolyhedronPoint::isSelected ( ) const
inline
32 { return selected; }

◆ setToSelected()

void inet::PolyhedronPoint::setToSelected ( )
inline

Member Data Documentation

◆ fConflict

std::vector<PolyhedronFace *> inet::PolyhedronPoint::fConflict
protected

◆ selected

bool inet::PolyhedronPoint::selected
protected

Referenced by PolyhedronPoint().


The documentation for this class was generated from the following files:
inet::PolyhedronPoint::fConflict
std::vector< PolyhedronFace * > fConflict
Definition: PolyhedronPoint.h:27
inet::Coord::x
double x
Definition: Coord.h:36
inet::Coord::z
double z
Definition: Coord.h:38
inet::PolyhedronPoint::selected
bool selected
Definition: PolyhedronPoint.h:28
inet::Coord::y
double y
Definition: Coord.h:37