Public Member Functions | Private Attributes | Friends
PointData Class Reference

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

Public Member Functions

 PointData ()
 Construct null. More...
 
 PointData (const point &origin, const scalar distSqr, const DataType &data)
 Construct from origin, distance and data. More...
 
 PointData (const PointData &)
 Construct as copy. More...
 
const DataType & data () const
 Const access the data. More...
 
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
 
bool operator!= (const PointData< DataType > &) const
 

Private Attributes

DataType data_
 Additional transported data. More...
 

Friends

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

Detailed Description

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

Source files

Definition at line 57 of file medialAxisMeshMover.H.

Constructor & Destructor Documentation

◆ PointData() [1/3]

PointData ( )
inline

Construct null.

Definition at line 32 of file PointDataI.H.

◆ PointData() [2/3]

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

Construct from origin, distance and data.

Definition at line 40 of file PointDataI.H.

◆ PointData() [3/3]

PointData ( const PointData )
inline

Construct as copy.

Member Function Documentation

◆ data()

const DataType & data ( ) const
inline

Const access the data.

Definition at line 62 of file PointDataI.H.

◆ transform()

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

Apply rotation matrix to the data.

Definition at line 71 of file PointDataI.H.

References Foam::transform(), and pointEdgePoint::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 84 of file PointDataI.H.

References PointData::data_, 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 120 of file PointDataI.H.

References PointData::data_, 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 154 of file PointDataI.H.

References PointData::data_, and 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 176 of file PointDataI.H.

References PointData::data_, mesh, and pointEdgePoint::updateEdge().

Here is the call graph for this function:

◆ operator==()

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

Definition at line 214 of file PointDataI.H.

References data::data(), and pointEdgePoint::operator==().

Here is the call graph for this function:

◆ operator!=()

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

Definition at line 225 of file PointDataI.H.

Friends And Related Function Documentation

◆ operator

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

◆ operator>>

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

Field Documentation

◆ data_

DataType data_
private

Additional transported data.

Definition at line 72 of file PointData.H.

Referenced by PointData::updateEdge(), and PointData::updatePoint().


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