Public Member Functions | Friends | List of all members
PointHit< Point > Class Template 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< Point >:
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 Point & hitPoint () const
 Return hit point. More...
 
scalar distance () const
 Return distance to hit. More...
 
const Point & missPoint () const
 Return miss point. More...
 
const Point & rawPoint () 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)
 

Friends

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

Detailed Description

template<class Point>
class Foam::PointHit< Point >

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 ( )
inline

Construct null.

Definition at line 84 of file PointHit.H.

Referenced by PointHit< point >::PointHit().

Here is the caller graph for this function:

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 ( const Point &  p)
inline

Construct from point. Hit and distance set later.

Definition at line 108 of file PointHit.H.

Member Function Documentation

bool hit ( ) const
inline
const Point& hitPoint ( ) const
inline
scalar distance ( ) const
inline
const Point& missPoint ( ) const
inline
const Point& rawPoint ( ) const
inline
bool eligibleMiss ( ) const
inline

Is this an eligible miss.

Definition at line 164 of file PointHit.H.

Referenced by PrimitivePatch< Face, FaceList, PointField, PointType >::projectFaceCentres(), PrimitivePatch< Face, FaceList, PointField, PointType >::projectPoints(), and face::ray().

Here is the caller graph for this function:

void setHit ( )
inline
void setMiss ( const bool  eligible)
inline
void setPoint ( const Point &  p)
inline
void setDistance ( const scalar  d)
inline

Friends And Related Function Documentation

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

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