OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

pointHit Class Reference

Collaboration diagram for pointHit:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 56 of file pointHit.H.


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 &b)

Constructor & Destructor Documentation

pointHit ( const bool  hit,
const point &  p,
const scalar  dist,
const bool  eligibleMiss 
) [inline]

Construct from components.

Definition at line 79 of file pointHit.H.

pointHit ( const point &  p  )  [inline]

Construct from point. Hit and distance set later.

Definition at line 93 of file pointHit.H.


Member Function Documentation

bool hit (  )  const [inline]

Is there a hit.

Definition at line 105 of file pointHit.H.

References FatalErrorIn.

const point& hitPoint (  )  const [inline]

Return hit point.

Definition at line 111 of file pointHit.H.

scalar distance (  )  const [inline]

Return distance to hit.

Definition at line 124 of file pointHit.H.

References FatalErrorIn.

Referenced by pointHitSort::index().

Here is the caller graph for this function:

const point& missPoint (  )  const [inline]

Return miss point.

Definition at line 130 of file pointHit.H.

const point& rawPoint (  )  const [inline]

Return point with no checking.

Definition at line 143 of file pointHit.H.

bool eligibleMiss (  )  const [inline]

Is this an eligible miss.

Definition at line 149 of file pointHit.H.

void setHit (  )  [inline]

Definition at line 154 of file pointHit.H.

Referenced by triangle::ray().

Here is the caller graph for this function:

void setMiss ( const bool  eligible  )  [inline]

Definition at line 160 of file pointHit.H.

References p.

Referenced by triangle::ray().

Here is the caller graph for this function:

void setPoint ( const point &  p  )  [inline]

Definition at line 166 of file pointHit.H.

Referenced by triangle::ray().

Here is the caller graph for this function:

void setDistance ( const scalar  d  )  [inline]

Definition at line 171 of file pointHit.H.

References token::SPACE.

Referenced by triangle::ray().

Here is the caller graph for this function:


Friends And Related Function Documentation

Ostream& operator<< ( Ostream &  os,
const pointHit &  b 
) [friend]

Definition at line 179 of file pointHit.H.


The documentation for this class was generated from the following file:
  • src/OpenFOAM/meshes/primitiveShapes/objectHit/pointHit.H
Copyright © 2000-2007 OpenCFD Ltd