FEDEM Model Database  R8.0
Source code of the FEDEM model database
Public Member Functions | Protected Attributes | List of all members
FFlVertex Class Reference

#include <FFlVertex.H>

Inheritance diagram for FFlVertex:
Inheritance graph
[legend]
Collaboration diagram for FFlVertex:
Collaboration graph
[legend]

Public Member Functions

 FFlVertex (double x=0.0, double y=0.0, double z=0.0)
 
 FFlVertex (const FaVec3 &v)
 
 FFlVertex (const FFlVertex &v)
 
virtual ~FFlVertex ()
 
FFlVertex & operator= (const FFlVertex &)=delete
 
FFlNode * getNode () const
 
void setNode (FFlNode *node)
 
short int ref ()
 
short int unRef ()
 
int getRunningID () const
 
void setRunningID (int rID)
 
- Public Member Functions inherited from FaVec3
 FaVec3 ()
 Default constructor. More...
 
 FaVec3 (double x, double y, double z)
 Constructor creating a vector from three double values. More...
 
 FaVec3 (const double *v)
 Constructor creating a vector from a double array. More...
 
 FaVec3 (const float *v)
 Constructor creating a vector from a float array. More...
 
 FaVec3 (const FaVec3 &v)
 Copy constructor. More...
 
virtual ~FaVec3 ()
 Empty destructor. More...
 
FaVec3 & operator= (const FaVec3 &v)
 Assignment operator. More...
 
FaVec3 & operator+= (const FaVec3 &v)
 Addition operator. More...
 
FaVec3 & operator-= (const FaVec3 &v)
 Subtraction operator. More...
 
FaVec3 & operator*= (double d)
 Scaling operator (multiplication by a scalar). More...
 
FaVec3 & operator/= (double d)
 Scaling operator (division by a scalar). More...
 
const double * getPt () const
 Access to internal array (read only). More...
 
double * getPt ()
 Access to internal array (for manipulation). More...
 
const double & operator[] (int i) const
 Zero-based indexing operator (read only). More...
 
double & operator[] (int i)
 Zero-based indexing operator (for manipulation). More...
 
const double & operator() (int i) const
 One-based indexing operator (read only). More...
 
double & operator() (int i)
 One-based indexing operator (for manipulation). More...
 
double x () const
 Returns the X-component of the vector. More...
 
double y () const
 Returns the Y-component of the vector. More...
 
double z () const
 Returns the Z-component of the vector. More...
 
void x (double v)
 Assigns the X-component of the vector. More...
 
void y (double v)
 Assigns the Y-component of the vector. More...
 
void z (double v)
 Assigns the Z-component of the vector. More...
 
void clear ()
 Sets the vector to zero. More...
 
int isParallell (const FaVec3 &otherVec, double tolerance=1.0e-10) const
 Checks if this vector is parallel to otherVec. More...
 
bool equals (const FaVec3 &otherVec, double tolerance=0.0) const
 Checks if this vector is equal to otherVec. More...
 
double angle (const FaVec3 &otherVec) const
 Calculates angle between this vector and otherVec. More...
 
bool isZero (double tolerance=1.0e-10) const
 Checks if this vector is zero. More...
 
double sqrLength () const
 Returns the square of the length of this vector. More...
 
double length () const
 Returns the length of this vector. More...
 
FaVec3 & truncate (double tolerance=1.0e-10)
 Truncates small components of this vector to zero. More...
 
FaVec3 & normalize (double truncTol=0.0)
 Normalizes this vector to unit length. More...
 
FaVec3 & round (int precision)
 Rounds off the components down to precision significant digits. More...
 
FaVec3 & setByCylCoords (const FaVec3 &cylCoords, FFaVec3IdxEnum axis=VZ)
 Sets this vector to the Cartesian equivalent of the cylindrical coordinates cylCoords. More...
 
FaVec3 getAsCylCoords (FFaVec3IdxEnum axis=VZ) const
 Returns the cylindrical coordinates corresponding to the Cartesian position of this vector. More...
 
FaVec3 & setBySphCoords (const FaVec3 &sphCoords, FFaVec3IdxEnum axis=VZ)
 Sets this vector to the Cartesian equivalent of the spherical coordinates sphCoords. More...
 
FaVec3 getAsSphCoords (FFaVec3IdxEnum axis=VZ) const
 Returns the spherical coordinates corresponding to the Cartesian position of this vector. More...
 

Protected Attributes

short int myRefCount
 
int myRunningID
 
FFlNode * myNode
 

Constructor & Destructor Documentation

◆ FFlVertex() [1/3]

FFlVertex::FFlVertex ( double  x = 0.0,
double  y = 0.0,
double  z = 0.0 
)

◆ FFlVertex() [2/3]

FFlVertex::FFlVertex ( const FaVec3 &  v)

◆ FFlVertex() [3/3]

FFlVertex::FFlVertex ( const FFlVertex &  v)

◆ ~FFlVertex()

virtual FFlVertex::~FFlVertex ( )
inlinevirtual

Member Function Documentation

◆ getNode()

FFlNode* FFlVertex::getNode ( ) const
inline

◆ getRunningID()

int FFlVertex::getRunningID ( ) const
inline

◆ operator=()

FFlVertex& FFlVertex::operator= ( const FFlVertex &  )
delete

◆ ref()

short int FFlVertex::ref ( )
inline

◆ setNode()

void FFlVertex::setNode ( FFlNode *  node)
inline

◆ setRunningID()

void FFlVertex::setRunningID ( int  rID)
inline

◆ unRef()

short int FFlVertex::unRef ( )

Member Data Documentation

◆ myNode

FFlNode* FFlVertex::myNode
protected

◆ myRefCount

short int FFlVertex::myRefCount
protected

◆ myRunningID

int FFlVertex::myRunningID
protected

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