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

Functor for finding triangles whose circumscribed circles contains given node. More...

#include <octreelocalizert.h>

+ Inheritance diagram for oofem::ElementCircumCirclesContainingNode:
+ Collaboration diagram for oofem::ElementCircumCirclesContainingNode:

Public Member Functions

 ElementCircumCirclesContainingNode (FloatArray *pos, Domain *d)
 Constructor. More...
 
 ~ElementCircumCirclesContainingNode ()
 
bool evaluate (DelaunayTriangle *&DTptr)
 Evaluates a triangle upon its circumscribed cricle. More...
 
void giveStartingPosition (FloatArray &answer)
 Gives the starting position of the search. More...
 
void giveResult (std::list< DelaunayTriangle * > &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...
 

Protected Attributes

FloatArraystartingPosition
 
Domaindomain
 
std::list< DelaunayTriangle * > result
 

Detailed Description

Functor for finding triangles whose circumscribed circles contains given node.

Author
David Krybus

Definition at line 744 of file octreelocalizert.h.

Constructor & Destructor Documentation

oofem::ElementCircumCirclesContainingNode::ElementCircumCirclesContainingNode ( FloatArray pos,
Domain d 
)
inline

Constructor.

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

Definition at line 757 of file octreelocalizert.h.

oofem::ElementCircumCirclesContainingNode::~ElementCircumCirclesContainingNode ( )
inline

Definition at line 762 of file octreelocalizert.h.

Member Function Documentation

bool oofem::ElementCircumCirclesContainingNode::evaluate ( DelaunayTriangle *&  DTptr)
inlinevirtual

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

Implements oofem::SL_Evaluation_Functor< DelaunayTriangle * >.

Definition at line 769 of file octreelocalizert.h.

References oofem::FloatArray::at(), oofem::FloatArray::distance(), oofem::DelaunayTriangle::giveCircumRadius(), oofem::DelaunayTriangle::giveXCenterCoordinate(), and oofem::DelaunayTriangle::giveYCenterCoordinate().

void oofem::ElementCircumCirclesContainingNode::giveResult ( std::list< DelaunayTriangle * > &  answer)
inlinevirtual

Gives the triangles containing the node.

Parameters
answerList containing Delaunay triangles

Implements oofem::SL_Evaluation_Functor< DelaunayTriangle * >.

Definition at line 798 of file octreelocalizert.h.

void oofem::ElementCircumCirclesContainingNode::giveStartingPosition ( FloatArray answer)
inlinevirtual

Gives the starting position of the search.

Parameters
positionstartingPosition

Implements oofem::SL_Evaluation_Functor< DelaunayTriangle * >.

Definition at line 789 of file octreelocalizert.h.

bool oofem::ElementCircumCirclesContainingNode::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< DelaunayTriangle * >.

Definition at line 804 of file octreelocalizert.h.

bool oofem::ElementCircumCirclesContainingNode::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< DelaunayTriangle * >.

Definition at line 805 of file octreelocalizert.h.

Member Data Documentation

Domain* oofem::ElementCircumCirclesContainingNode::domain
protected

Definition at line 748 of file octreelocalizert.h.

std :: list< DelaunayTriangle * > oofem::ElementCircumCirclesContainingNode::result
protected

Definition at line 749 of file octreelocalizert.h.

FloatArray* oofem::ElementCircumCirclesContainingNode::startingPosition
protected

Definition at line 747 of file octreelocalizert.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:35 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011