Public Member Functions | Private Attributes | Friends
PointHit Class Reference

This class describes the interaction of a face and a point. It carries the info of a successful hit and (if successful), returns the interaction point. More...

Inheritance diagram for PointHit:
Inheritance graph
[legend]

Public Member Functions

 PointHit ()
 Construct null. More...
 
 PointHit (const bool hit, const Point &p, const scalar dist, const bool eligibleMiss)
 Construct from components. More...
 
 PointHit (const Point &p)
 Construct from point. Hit and distance set later. More...
 
bool hit () const
 Is there a hit. More...
 
const PointhitPoint () const
 Return hit point. More...
 
scalar distance () const
 Return distance to hit. More...
 
const PointmissPoint () const
 Return miss point. More...
 
const PointrawPoint () const
 Return point with no checking. More...
 
bool eligibleMiss () const
 Is this an eligible miss. More...
 
void setHit ()
 
void setMiss (const bool eligible)
 
void setPoint (const Point &p)
 
void setDistance (const scalar d)
 

Private Attributes

bool hit_
 Hit success. More...
 
Point hitPoint_
 Point of hit; for miss holds best estimate outside the object. More...
 
scalar distance_
 Distance to hit point. More...
 
bool eligibleMiss_
 Eligible miss. More...
 

Friends

Ostreamoperator (Ostream &os, const PointHit< Point > &b)
 

Detailed Description

This class describes the interaction of a face and a point. It carries the info of a successful hit and (if successful), returns the interaction point.

Definition at line 51 of file PointHit.H.

Constructor & Destructor Documentation

◆ PointHit() [1/3]

PointHit ( )
inline

Construct null.

Definition at line 84 of file PointHit.H.

◆ PointHit() [2/3]

PointHit ( const bool  hit,
const Point p,
const scalar  dist,
const bool  eligibleMiss 
)
inline

Construct from components.

Definition at line 94 of file PointHit.H.

◆ PointHit() [3/3]

PointHit ( const Point p)
inline

Construct from point. Hit and distance set later.

Definition at line 108 of file PointHit.H.

Member Function Documentation

◆ hit()

bool hit ( ) const
inline

◆ hitPoint()

const Point& hitPoint ( ) const
inline

◆ distance()

scalar distance ( ) const
inline

Return distance to hit.

Definition at line 139 of file PointHit.H.

Referenced by booleanSurface::booleanSurface(), PatchToPatchInterpolation< FromPatch, ToPatch >::calcFaceAddressing(), triSurfaceTools::calcInterpolationWeights(), PatchToPatchInterpolation< FromPatch, ToPatch >::calcPointAddressing(), slidingInterface::coupleInterface(), mappedPatchBase::facePoint(), faceTriangulation::findDiagonal(), treeDataPrimitivePatch< PatchType >::findIntersection(), dynamicTreeDataPoint::findNearest(), meshSearch::findNearestBoundaryFace(), meshSearch::findNearestBoundaryFaceWalk(), cellPointWeight::findTetrahedron(), cellPointWeight::findTriangle(), face::intersection(), treeDataTriSurface::intersects(), faceCoupleInfo::maxDistance(), slidingInterface::modifyMotionPoints(), tetrahedron::nearestPoint(), face::nearestPointClassify(), treeDataPoint::findNearestOp::operator()(), treeDataEdge::findNearestOp::operator()(), treeDataPrimitivePatch< PatchType >::findNearestOp::operator()(), treeDataFace::findNearestOp::operator()(), treeDataCell::findIntersectOp::operator()(), treeDataFace::findIntersectOp::operator()(), pointHitSort::operator<(), pointHitSort::operator==(), orientedSurface::orient(), searchableRotatedBox::overlaps(), treeDataEdge::overlaps(), treeDataPrimitivePatch< PatchType >::overlaps(), PrimitivePatch< labelledTri, List, pointField, point >::projectFaceCentres(), PrimitivePatch< labelledTri, List, pointField, point >::projectPoints(), slidingInterface::projectPoints(), face::ray(), cellDistFuncs::smallestDist(), sampledTriSurfaceMesh::update(), and PairCollision< CloudType >::wallInteraction().

Here is the caller graph for this function:

◆ missPoint()

const Point& missPoint ( ) const
inline

◆ rawPoint()

const Point& rawPoint ( ) const
inline

◆ eligibleMiss()

bool eligibleMiss ( ) const
inline

Is this an eligible miss.

Definition at line 164 of file PointHit.H.

Referenced by PrimitivePatch< labelledTri, List, pointField, point >::projectFaceCentres(), PrimitivePatch< labelledTri, List, pointField, point >::projectPoints(), and face::ray().

Here is the caller graph for this function:

◆ setHit()

void setHit ( )
inline

◆ setMiss()

void setMiss ( const bool  eligible)
inline

Definition at line 175 of file PointHit.H.

Referenced by tetrahedron::containmentSphere(), face::nearestPointClassify(), face::ray(), and triangle< Foam::Vector, Foam::Vector >::ray().

Here is the caller graph for this function:

◆ setPoint()

void setPoint ( const Point p)
inline

◆ setDistance()

void setDistance ( const scalar  d)
inline

Friends And Related Function Documentation

◆ operator

Ostream& operator ( Ostream os,
const PointHit< Point > &  b 
)
friend

Field Documentation

◆ hit_

bool hit_
private

◆ hitPoint_

Point hitPoint_
private

Point of hit; for miss holds best estimate outside the object.

Definition at line 70 of file PointHit.H.

Referenced by PointHit< point >::hitPoint(), PointHit< point >::missPoint(), PointHit< point >::rawPoint(), and PointHit< point >::setPoint().

◆ distance_

scalar distance_
private

Distance to hit point.

Definition at line 73 of file PointHit.H.

Referenced by PointHit< point >::distance(), and PointHit< point >::setDistance().

◆ eligibleMiss_

bool eligibleMiss_
private

Eligible miss.

Definition at line 76 of file PointHit.H.

Referenced by PointHit< point >::eligibleMiss(), PointHit< point >::setHit(), and PointHit< point >::setMiss().


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