pointTopoDistanceData Class Reference

For use with PointEdgeWave. Determines topological distance to starting points. More...

Public Member Functions

 pointTopoDistanceData ()
 Construct null with invalid (-1) for data and distance. More...
 
 pointTopoDistanceData (const label data, const label distance)
 Construct from components. More...
 
label data () const
 
label distance () const
 
template<class TrackingData >
bool valid (TrackingData &td) const
 Check whether origin has been changed at all or. More...
 
template<class TrackingData >
bool sameGeometry (const pointTopoDistanceData &, const scalar tol, TrackingData &td) const
 Check for identical geometrical data. Used for cyclics checking. More...
 
template<class TrackingData >
void leaveDomain (const polyPatch &patch, const label patchPointi, const point &pos, TrackingData &td)
 Convert origin to relative vector to leaving point. More...
 
template<class TrackingData >
void enterDomain (const polyPatch &patch, const label patchPointi, const point &pos, TrackingData &td)
 Convert relative origin to absolute by adding entering point. More...
 
template<class TrackingData >
void transform (const tensor &rotTensor, TrackingData &td)
 Apply rotation matrix to origin. More...
 
template<class TrackingData >
bool updatePoint (const polyMesh &mesh, const label pointi, const label edgeI, const pointTopoDistanceData &edgeInfo, const scalar tol, TrackingData &td)
 Influence of edge on point. More...
 
template<class TrackingData >
bool updatePoint (const polyMesh &mesh, const label pointi, const pointTopoDistanceData &newPointInfo, const scalar tol, TrackingData &td)
 Influence of different value on same point. More...
 
template<class TrackingData >
bool updatePoint (const pointTopoDistanceData &newPointInfo, const scalar tol, TrackingData &td)
 Influence of different value on same point. More...
 
template<class TrackingData >
bool updateEdge (const polyMesh &mesh, const label edgeI, const label pointi, const pointTopoDistanceData &pointInfo, const scalar tol, TrackingData &td)
 Influence of point on edge. More...
 
template<class TrackingData >
bool equal (const pointTopoDistanceData &, TrackingData &) const
 Same (like operator==) More...
 
bool operator== (const pointTopoDistanceData &) const
 
bool operator!= (const pointTopoDistanceData &) const
 

Friends

Ostreamoperator<< (Ostream &, const pointTopoDistanceData &)
 
Istreamoperator>> (Istream &, pointTopoDistanceData &)
 

Detailed Description

For use with PointEdgeWave. Determines topological distance to starting points.

Source files

Definition at line 63 of file pointTopoDistanceData.H.

Constructor & Destructor Documentation

◆ pointTopoDistanceData() [1/2]

Construct null with invalid (-1) for data and distance.

Definition at line 33 of file pointTopoDistanceDataI.H.

◆ pointTopoDistanceData() [2/2]

pointTopoDistanceData ( const label  data,
const label  distance 
)
inline

Construct from components.

Definition at line 41 of file pointTopoDistanceDataI.H.

Member Function Documentation

◆ data()

label data ( ) const
inline

Definition at line 93 of file pointTopoDistanceData.H.

Referenced by pointTopoDistanceData::operator==().

Here is the caller graph for this function:

◆ distance()

label distance ( ) const
inline

Definition at line 97 of file pointTopoDistanceData.H.

Referenced by pointTopoDistanceData::operator==().

Here is the caller graph for this function:

◆ valid()

bool valid ( TrackingData &  td) const
inline

Check whether origin has been changed at all or.

still contains original (invalid) value.

Definition at line 54 of file pointTopoDistanceDataI.H.

◆ sameGeometry()

bool sameGeometry ( const pointTopoDistanceData ,
const scalar  tol,
TrackingData &  td 
) const
inline

Check for identical geometrical data. Used for cyclics checking.

Definition at line 63 of file pointTopoDistanceDataI.H.

◆ leaveDomain()

void leaveDomain ( const polyPatch patch,
const label  patchPointi,
const point pos,
TrackingData &  td 
)
inline

Convert origin to relative vector to leaving point.

(= point coordinate)

Definition at line 76 of file pointTopoDistanceDataI.H.

◆ enterDomain()

void enterDomain ( const polyPatch patch,
const label  patchPointi,
const point pos,
TrackingData &  td 
)
inline

Convert relative origin to absolute by adding entering point.

Definition at line 98 of file pointTopoDistanceDataI.H.

◆ transform()

void transform ( const tensor rotTensor,
TrackingData &  td 
)
inline

Apply rotation matrix to origin.

Definition at line 88 of file pointTopoDistanceDataI.H.

◆ updatePoint() [1/3]

bool updatePoint ( const polyMesh mesh,
const label  pointi,
const label  edgeI,
const pointTopoDistanceData edgeInfo,
const scalar  tol,
TrackingData &  td 
)
inline

Influence of edge on point.

Definition at line 110 of file pointTopoDistanceDataI.H.

◆ updatePoint() [2/3]

bool updatePoint ( const polyMesh mesh,
const label  pointi,
const pointTopoDistanceData newPointInfo,
const scalar  tol,
TrackingData &  td 
)
inline

Influence of different value on same point.

Merge new and old info.

Definition at line 133 of file pointTopoDistanceDataI.H.

◆ updatePoint() [3/3]

bool updatePoint ( const pointTopoDistanceData newPointInfo,
const scalar  tol,
TrackingData &  td 
)
inline

Influence of different value on same point.

No information about current position whatsoever.

Definition at line 154 of file pointTopoDistanceDataI.H.

◆ updateEdge()

bool updateEdge ( const polyMesh mesh,
const label  edgeI,
const label  pointi,
const pointTopoDistanceData pointInfo,
const scalar  tol,
TrackingData &  td 
)
inline

Influence of point on edge.

Definition at line 173 of file pointTopoDistanceDataI.H.

◆ equal()

bool equal ( const pointTopoDistanceData rhs,
TrackingData &  td 
) const
inline

Same (like operator==)

Definition at line 194 of file pointTopoDistanceDataI.H.

References Foam::operator==().

Here is the call graph for this function:

◆ operator==()

bool operator== ( const pointTopoDistanceData rhs) const
inline

Definition at line 206 of file pointTopoDistanceDataI.H.

References pointTopoDistanceData::data(), Foam::distance(), and pointTopoDistanceData::distance().

Here is the call graph for this function:

◆ operator!=()

bool operator!= ( const pointTopoDistanceData rhs) const
inline

Definition at line 215 of file pointTopoDistanceDataI.H.

Friends And Related Function Documentation

◆ operator<<

Ostream& operator<< ( Ostream ,
const pointTopoDistanceData  
)
friend

◆ operator>>

Istream& operator>> ( Istream ,
pointTopoDistanceData  
)
friend

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