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

octreeLine< Type > Class Template Reference

Iterates over intersections of line with octree leaf elements. More...

Collaboration diagram for octreeLine< Type >:

List of all members.


Public Member Functions

 octreeLine (const octree< Type > &tree, const point &startPoint, const point &endPoint)
 Construct from components.
 ~octreeLine ()
const octree< Type > & tree () const
const point & leafExitPoint () const
const point & endPoint () const
const point & startPoint () const
const treeLeaf< Type > * currentLeaf () const
const List< pointHitSort > & sortedIntersections () const
label hitIndex () const
const pointHit & hitInfo () const
bool getIntersection ()
 go to next intersection. Return false if no intersections.

Detailed Description

template<class Type>
class Foam::octreeLine< Type >

Iterates over intersections of line with octree leaf elements.

Used as in

    octree<octreeDataFace> oc( .. );

    octreeLine<octreeDataFace> lineSearch(oc, pStart, pEnd);

    while (lineSearch.getIntersection())
    {
        const point& pt = lineSearch.hitInfo().hitPoint();
        ..
    }

Source files

Definition at line 66 of file octreeLine.H.


Constructor & Destructor Documentation

octreeLine ( const octree< Type > &  tree,
const point &  startPoint,
const point &  endPoint 
) [inline]

Construct from components.

Definition at line 124 of file octreeLine.C.

~octreeLine (  )  [inline]

Definition at line 145 of file octreeLine.C.


Member Function Documentation

const octree<Type>& tree (  )  const [inline]

Definition at line 132 of file octreeLine.H.

const point& leafExitPoint (  )  const [inline]

Definition at line 137 of file octreeLine.H.

const point& endPoint (  )  const [inline]

Definition at line 142 of file octreeLine.H.

const point& startPoint (  )  const [inline]

Definition at line 147 of file octreeLine.H.

const treeLeaf<Type>* currentLeaf (  )  const [inline]

Definition at line 152 of file octreeLine.H.

const List<pointHitSort>& sortedIntersections (  )  const [inline]

Definition at line 157 of file octreeLine.H.

label hitIndex (  )  const [inline]

Definition at line 162 of file octreeLine.H.

const pointHit& hitInfo (  )  const [inline]

Definition at line 167 of file octreeLine.H.

bool getIntersection (  )  [inline]

go to next intersection. Return false if no intersections.

Definition at line 152 of file octreeLine.C.


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