PointData< DataType > Class Template Reference

Variant of pointEdgePoint with some transported additional data. Templated on the transported data type. More...

Inheritance diagram for PointData< DataType >:
[legend]
Collaboration diagram for PointData< DataType >:
[legend]

Public Member Functions

 PointData ()
 Default construct. More...
 
 PointData (const point &origin, const scalar distSqr, const DataType &data)
 Construct from origin, distance and data. More...
 
const DataType & data () const
 
DataType & data ()
 
template<class TrackingData >
void transform (const tensor &rotTensor, TrackingData &td)
 Apply rotation matrix to the data. More...
 
template<class TrackingData >
bool updatePoint (const polyMesh &mesh, const label pointI, const label edgeI, const PointData< DataType > &edgeInfo, const scalar tol, TrackingData &td)
 Influence of edge on point. More...
 
template<class TrackingData >
bool updatePoint (const polyMesh &mesh, const label pointI, const PointData< DataType > &newPointInfo, const scalar tol, TrackingData &td)
 Influence of different value on same point. More...
 
template<class TrackingData >
bool updatePoint (const PointData< DataType > &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 PointData< DataType > &pointInfo, const scalar tol, TrackingData &td)
 Influence of point on edge. More...
 
bool operator== (const PointData< DataType > &) const
 Test for equality. More...
 
bool operator!= (const PointData< DataType > &) const
 Test for inequality. More...
 
- Public Member Functions inherited from pointEdgePoint
 pointEdgePoint ()
 Default construct. More...
 
 pointEdgePoint (const point &origin, const scalar distSqr)
 Construct from origin, distance. More...
 
const pointorigin () const
 
pointorigin ()
 
scalar distSqr () const
 
scalar & distSqr ()
 
template<class TrackingData >
bool valid (TrackingData &td) const
 Changed or contains original (invalid) value. More...
 
template<class TrackingData >
bool sameGeometry (const pointEdgePoint &, const scalar tol, TrackingData &td) const
 Check for identical geometrical data (eg, 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 pointEdgePoint &edgeInfo, const scalar tol, TrackingData &td)
 Influence of edge on point. More...
 
template<class TrackingData >
bool updatePoint (const polyMesh &mesh, const label pointi, const pointEdgePoint &newPointInfo, const scalar tol, TrackingData &td)
 Influence of different value on same point. More...
 
template<class TrackingData >
bool updatePoint (const pointEdgePoint &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 pointEdgePoint &pointInfo, const scalar tol, TrackingData &td)
 Influence of point on edge. More...
 
template<class TrackingData >
bool equal (const pointEdgePoint &, TrackingData &td) const
 Test for equality, with TrackingData. More...
 
bool operator== (const pointEdgePoint &) const
 Test for equality. More...
 
bool operator!= (const pointEdgePoint &) const
 Test for inequality. More...
 

Friends

Ostreamoperator (Ostream &, const PointData< DataType > &)
 
Istreamoperator>> (Istream &, PointData< DataType > &)
 

Detailed Description

template<class DataType>
class Foam::PointData< DataType >

Variant of pointEdgePoint with some transported additional data. Templated on the transported data type.

Source files

Definition at line 64 of file PointData.H.

Constructor & Destructor Documentation

◆ PointData() [1/2]

PointData
inline

Default construct.

Definition at line 35 of file PointDataI.H.

◆ PointData() [2/2]

PointData ( const point origin,
const scalar  distSqr,
const DataType &  data 
)
inline

Construct from origin, distance and data.

Definition at line 42 of file PointDataI.H.

Member Function Documentation

◆ data() [1/2]

const DataType & data ( ) const
inline

Definition at line 94 of file PointData.H.

◆ data() [2/2]

DataType & data ( )
inline

Definition at line 98 of file PointData.H.

◆ transform()

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

Apply rotation matrix to the data.

Definition at line 58 of file PointDataI.H.

References Foam::transform().

Here is the call graph for this function:

◆ updatePoint() [1/3]

bool updatePoint ( const polyMesh mesh,
const label  pointI,
const label  edgeI,
const PointData< DataType > &  edgeInfo,
const scalar  tol,
TrackingData &  td 
)
inline

Influence of edge on point.

Definition at line 71 of file PointDataI.H.

References mesh, and pointEdgePoint::updatePoint().

Here is the call graph for this function:

◆ updatePoint() [2/3]

bool updatePoint ( const polyMesh mesh,
const label  pointI,
const PointData< DataType > &  newPointInfo,
const scalar  tol,
TrackingData &  td 
)
inline

Influence of different value on same point.

Merge new and old info.

Definition at line 105 of file PointDataI.H.

References mesh, and pointEdgePoint::updatePoint().

Here is the call graph for this function:

◆ updatePoint() [3/3]

bool updatePoint ( const PointData< DataType > &  newPointInfo,
const scalar  tol,
TrackingData &  td 
)
inline

Influence of different value on same point.

No information about current position whatsoever.

Definition at line 137 of file PointDataI.H.

References pointEdgePoint::updatePoint().

Here is the call graph for this function:

◆ updateEdge()

bool updateEdge ( const polyMesh mesh,
const label  edgeI,
const label  pointI,
const PointData< DataType > &  pointInfo,
const scalar  tol,
TrackingData &  td 
)
inline

Influence of point on edge.

Definition at line 157 of file PointDataI.H.

References mesh, and pointEdgePoint::updateEdge().

Here is the call graph for this function:

◆ operator==()

bool operator== ( const PointData< DataType > &  rhs) const
inline

Test for equality.

Definition at line 193 of file PointDataI.H.

References refineCell::operator==.

◆ operator!=()

bool operator!= ( const PointData< DataType > &  rhs) const
inline

Test for inequality.

Definition at line 203 of file PointDataI.H.

Friends And Related Function Documentation

◆ operator

Ostream & operator ( Ostream ,
const PointData< DataType > &   
)
friend

◆ operator>>

Istream & operator>> ( Istream ,
PointData< DataType > &   
)
friend

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