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...
 
std::string info () const override
 Returns a string with the value of the coordinate. 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...
 
float 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...
 
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...
 
void normalize ()
 Updates the length of this position vector to be 1. More...
 
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)
 Returns the minimal coordinates. More...
 
Coord max (const Coord &a)
 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

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

inet::PolyhedronPoint::PolyhedronPoint ( const Coord point)
23 {
24  selected = false;
25  x = point.x;
26  y = point.y;
27  z = point.z;
28 }
bool selected
Definition: PolyhedronPoint.h:37
double z
Definition: Coord.h:51
double y
Definition: Coord.h:50
double x
Definition: Coord.h:49
inet::PolyhedronPoint::PolyhedronPoint ( )
31 {
32  selected = false;
33  x = y = z = 0;
34 }
bool selected
Definition: PolyhedronPoint.h:37
double z
Definition: Coord.h:51
double y
Definition: Coord.h:50
double x
Definition: Coord.h:49

Member Function Documentation

void inet::PolyhedronPoint::addConflictFace ( PolyhedronFace face)
inline

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

44 { fConflict.push_back(face); }
std::vector< PolyhedronFace * > fConflict
Definition: PolyhedronPoint.h:36
std::vector<PolyhedronFace *>& inet::PolyhedronPoint::getConflictVector ( )
inline
40 { return fConflict; }
std::vector< PolyhedronFace * > fConflict
Definition: PolyhedronPoint.h:36
bool inet::PolyhedronPoint::hasConflicts ( ) const
inline
43 { return !fConflict.empty(); }
std::vector< PolyhedronFace * > fConflict
Definition: PolyhedronPoint.h:36
bool inet::PolyhedronPoint::isSelected ( ) const
inline
41 { return selected; }
bool selected
Definition: PolyhedronPoint.h:37
void inet::PolyhedronPoint::setToSelected ( )
inline

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

42 { selected = true; }
bool selected
Definition: PolyhedronPoint.h:37

Member Data Documentation

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

Referenced by PolyhedronPoint().


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