OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
oofem::UnstructuredGridField::CellContainingPointFunctor Class Reference

#include <unstructuredgridfield.h>

+ Inheritance diagram for oofem::UnstructuredGridField::CellContainingPointFunctor:
+ Collaboration diagram for oofem::UnstructuredGridField::CellContainingPointFunctor:

Public Member Functions

 CellContainingPointFunctor (const FloatArray &pos)
 Constructor. More...
 
 ~CellContainingPointFunctor ()
 
bool evaluate (Cell &c)
 Evaluates a triangle upon its circumscribed cricle. More...
 
void giveStartingPosition (FloatArray &answer)
 Gives the starting position of the search. More...
 
void giveResult (std::list< Cell > &answer)
 Gives the triangles containing the node. More...
 
bool isBBXStage1Defined (BoundingBox &BBXStage1)
 Stage1 means, we are looking for objects in a distance given by some boundingBox (e.g. More...
 
bool isBBXStage2Defined (BoundingBox &BBXStage2)
 Stage2BBX is given by results of a prior search. More...
 
- Public Member Functions inherited from oofem::SL_Evaluation_Functor< Cell >
virtual bool evaluate (Cell &obj)=0
 Evaluates wether the search condition is accomplished or not. More...
 
virtual void giveResult (std::list< Cell > &answer)=0
 Gives a container with found objects. More...
 

Protected Attributes

FloatArray position
 
std::list< Cellcells
 

Detailed Description

Definition at line 245 of file unstructuredgridfield.h.

Constructor & Destructor Documentation

oofem::UnstructuredGridField::CellContainingPointFunctor::CellContainingPointFunctor ( const FloatArray pos)
inline

Constructor.

Parameters
posStarting position of the search
dDomain containing nodes the triangles are defined by

Definition at line 256 of file unstructuredgridfield.h.

oofem::UnstructuredGridField::CellContainingPointFunctor::~CellContainingPointFunctor ( )
inline

Definition at line 257 of file unstructuredgridfield.h.

Member Function Documentation

bool oofem::UnstructuredGridField::CellContainingPointFunctor::evaluate ( Cell c)
inline

Evaluates a triangle upon its circumscribed cricle.

Parameters
DTptrDelaunay triangle. nodeNr Number of the node in the domain list
Returns
true if the circumscribed circle of the Delaunay triangle contains the point, false otherwise

Definition at line 264 of file unstructuredgridfield.h.

References oofem::UnstructuredGridField::Cell::containsPoint().

void oofem::UnstructuredGridField::CellContainingPointFunctor::giveResult ( std::list< Cell > &  answer)
inline

Gives the triangles containing the node.

Parameters
answerList containing Delaunay triangles

Definition at line 287 of file unstructuredgridfield.h.

void oofem::UnstructuredGridField::CellContainingPointFunctor::giveStartingPosition ( FloatArray answer)
inlinevirtual

Gives the starting position of the search.

Parameters
positionstartingPosition

Implements oofem::SL_Evaluation_Functor< Cell >.

Definition at line 278 of file unstructuredgridfield.h.

bool oofem::UnstructuredGridField::CellContainingPointFunctor::isBBXStage1Defined ( BoundingBox BBXStage1)
inlinevirtual

Stage1 means, we are looking for objects in a distance given by some boundingBox (e.g.

IPs around some given coordinates)

Implements oofem::SL_Evaluation_Functor< Cell >.

Definition at line 290 of file unstructuredgridfield.h.

bool oofem::UnstructuredGridField::CellContainingPointFunctor::isBBXStage2Defined ( BoundingBox BBXStage2)
inlinevirtual

Stage2BBX is given by results of a prior search.

e.g. We found a closest point to another point in an octant, BBX is defined by the distance from each other and the found closest point. Now we have to check surrounding octants whithin this bounding, which may contain points closer to starting point.

Implements oofem::SL_Evaluation_Functor< Cell >.

Definition at line 291 of file unstructuredgridfield.h.

Member Data Documentation

std :: list<Cell > oofem::UnstructuredGridField::CellContainingPointFunctor::cells
protected

Definition at line 249 of file unstructuredgridfield.h.

FloatArray oofem::UnstructuredGridField::CellContainingPointFunctor::position
protected

Definition at line 248 of file unstructuredgridfield.h.


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

This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:43 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011