OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

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 >:
Collaboration diagram for PointHit< Point >:

List of all members.


Public Member Functions

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

Friends

Ostream & operator (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 55 of file PointHit.H.


Constructor & Destructor Documentation

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

Construct from components.

Definition at line 78 of file PointHit.H.

PointHit ( const Point &  p  )  [inline]

Construct from point. Hit and distance set later.

Definition at line 92 of file PointHit.H.


Member Function Documentation

bool hit (  )  const [inline]

Is there a hit.

Definition at line 104 of file PointHit.H.

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

Here is the caller graph for this function:

const Point& hitPoint (  )  const [inline]

Return hit point.

Definition at line 110 of file PointHit.H.

scalar distance (  )  const [inline]

Return distance to hit.

Definition at line 123 of file PointHit.H.

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

Here is the caller graph for this function:

const Point& missPoint (  )  const [inline]

const Point& rawPoint (  )  const [inline]

Return point with no checking.

Definition at line 142 of file PointHit.H.

bool eligibleMiss (  )  const [inline]

Is this an eligible miss.

Definition at line 148 of file PointHit.H.

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

Here is the caller graph for this function:

void setHit (  )  [inline]

Definition at line 153 of file PointHit.H.

void setMiss ( const bool  eligible  )  [inline]

Definition at line 159 of file PointHit.H.

void setPoint ( const Point &  p  )  [inline]

Definition at line 165 of file PointHit.H.

void setDistance ( const scalar  d  )  [inline]

Definition at line 170 of file PointHit.H.


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:
  • src/OpenFOAM/meshes/primitiveShapes/objectHit/PointHit.H
Copyright © 2000-2009 OpenCFD Ltd