MeshCore::MeshFacetVisitor Class Reference

Abstract base class for facet visitors. More...

#include <Visitor.h>

Inheritance diagram for MeshCore::MeshFacetVisitor:
MeshCore::MeshOrientationVisitor MeshCore::MeshPlaneVisitor MeshCore::MeshSearchNeighbourFacetsVisitor MeshCore::MeshTopFacetVisitor SpringbackCorrection MeshCore::MeshOrientationCollector MeshCore::MeshSameOrientationCollector Deviation

List of all members.

Public Member Functions

virtual bool AllowVisit (const MeshFacet &rclFacet, const MeshFacet &rclFrom, unsigned long ulFInd, unsigned long ulLevel, unsigned short neighbourIndex)
 Test before a facet will be flagged as VISIT, return false means: go on with visiting the facets but not this one and set not the VISIT flag.
 MeshFacetVisitor (void)
 Construction.
virtual bool Visit (const MeshFacet &rclFacet, const MeshFacet &rclFrom, unsigned long ulFInd, unsigned long ulLevel)=0
 Needs to be implemented in sub-classes.
virtual ~MeshFacetVisitor (void)
 Denstruction.

Detailed Description

Abstract base class for facet visitors.

The MeshFacetVisitor class can be used for the so called "Region growing" algorithms.

Definition at line 39 of file Visitor.h.


Constructor & Destructor Documentation

MeshCore::MeshFacetVisitor::MeshFacetVisitor ( void   )  [inline]

Construction.

Definition at line 43 of file Visitor.h.

virtual MeshCore::MeshFacetVisitor::~MeshFacetVisitor ( void   )  [inline, virtual]

Denstruction.

Definition at line 45 of file Visitor.h.


Member Function Documentation

virtual bool MeshCore::MeshFacetVisitor::AllowVisit ( const MeshFacet rclFacet,
const MeshFacet rclFrom,
unsigned long  ulFInd,
unsigned long  ulLevel,
unsigned short  neighbourIndex 
) [inline, virtual]

Test before a facet will be flagged as VISIT, return false means: go on with visiting the facets but not this one and set not the VISIT flag.

Reimplemented in MeshCore::MeshPlaneVisitor.

Definition at line 58 of file Visitor.h.

Referenced by MeshCore::MeshKernel::VisitNeighbourFacets().

virtual bool MeshCore::MeshFacetVisitor::Visit ( const MeshFacet rclFacet,
const MeshFacet rclFrom,
unsigned long  ulFInd,
unsigned long  ulLevel 
) [pure virtual]

Needs to be implemented in sub-classes.

rclFacet is the currently visited facet with the index ulFInd, rclFrom is the last visited facet and ulLevel indicates the ring number around the start facet. If true is returned the next iteration is done if there are still facets to visit. If false is returned the calling method stops immediately visiting further facets.

Implemented in SpringbackCorrection, MeshCore::MeshOrientationVisitor, MeshCore::MeshOrientationCollector, MeshCore::MeshSameOrientationCollector, MeshCore::MeshSearchNeighbourFacetsVisitor, MeshCore::MeshTopFacetVisitor, and MeshCore::MeshPlaneVisitor.

Referenced by MeshCore::MeshKernel::VisitNeighbourFacets(), and MeshCore::MeshKernel::VisitNeighbourFacetsOverCorners().


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

Generated on Wed Nov 23 19:02:24 2011 for FreeCAD by  doxygen 1.6.1