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

PointIndexHit< Point > Class Template Reference

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

Collaboration diagram for PointIndexHit< Point >:

List of all members.


Public Member Functions

 PointIndexHit (const bool success, const Point &p, const label index)
 Construct from components.
 PointIndexHit (const Point &p)
 Construct from point. Hit and distance set later.
 PointIndexHit ()
 Construct null.
 PointIndexHit (Istream &is)
 Construct from Istream.
bool hit () const
 Is there a hit.
label index () const
 Return index.
const Point & hitPoint () const
 Return hit point.
const Point & missPoint () const
 Return miss point.
const Point & rawPoint () const
 Return point with no checking.
Point & rawPoint ()
void setHit ()
void setMiss ()
void setPoint (const Point &p)
void setIndex (const label index)
bool operator== (const PointIndexHit &rhs) const
bool operator!= (const PointIndexHit &rhs) const
void write (Ostream &os)

Friends

Ostream & operator<< (Ostream &os, const PointIndexHit &pHit)
Istream & operator>> (Istream &is, PointIndexHit &pHit)

Detailed Description

template<class Point>
class Foam::PointIndexHit< Point >

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

like pointHit but carries face (or cell, edge etc.) index

Source files

Definition at line 49 of file PointIndexHit.H.


Constructor & Destructor Documentation

PointIndexHit ( const bool  success,
const Point &  p,
const label  index 
) [inline]

Construct from components.

Definition at line 68 of file PointIndexHit.H.

PointIndexHit ( const Point &  p  )  [inline]

Construct from point. Hit and distance set later.

Definition at line 76 of file PointIndexHit.H.

PointIndexHit (  )  [inline]

Construct null.

Definition at line 84 of file PointIndexHit.H.

PointIndexHit ( Istream &  is  )  [inline]

Construct from Istream.

Definition at line 92 of file PointIndexHit.H.


Member Function Documentation

bool hit (  )  const [inline]

Is there a hit.

Definition at line 101 of file PointIndexHit.H.

label index (  )  const [inline]

Return index.

Definition at line 107 of file PointIndexHit.H.

const Point& hitPoint (  )  const [inline]

Return hit point.

Definition at line 113 of file PointIndexHit.H.

const Point& missPoint (  )  const [inline]

Return miss point.

Definition at line 126 of file PointIndexHit.H.

const Point& rawPoint (  )  const [inline]

Return point with no checking.

Definition at line 139 of file PointIndexHit.H.

Point& rawPoint (  )  [inline]

Definition at line 144 of file PointIndexHit.H.

void setHit (  )  [inline]

Definition at line 149 of file PointIndexHit.H.

void setMiss (  )  [inline]

Definition at line 154 of file PointIndexHit.H.

void setPoint ( const Point &  p  )  [inline]

Definition at line 159 of file PointIndexHit.H.

void setIndex ( const label  index  )  [inline]

Definition at line 164 of file PointIndexHit.H.

bool operator== ( const PointIndexHit< Point > &  rhs  )  const [inline]

Definition at line 169 of file PointIndexHit.H.

Referenced by PointIndexHit< Point >::write().

Here is the caller graph for this function:

bool operator!= ( const PointIndexHit< Point > &  rhs  )  const [inline]

Definition at line 177 of file PointIndexHit.H.

void write ( Ostream &  os  )  [inline]

Definition at line 182 of file PointIndexHit.H.

References PointIndexHit< Point >::operator==().

Here is the call graph for this function:


Friends And Related Function Documentation

Ostream& operator<< ( Ostream &  os,
const PointIndexHit< Point > &  pHit 
) [friend]

Definition at line 194 of file PointIndexHit.H.

Istream& operator>> ( Istream &  is,
PointIndexHit< Point > &  pHit 
) [friend]

Definition at line 216 of file PointIndexHit.H.


The documentation for this class was generated from the following file:
Copyright © 2000-2009 OpenCFD Ltd