Open CASCADE Technology 7.8.2.dev
BRepMesh_CircleInspector Class Reference

Auxiliary class to find circles shot by the given point. More...

#include <BRepMesh_CircleInspector.hxx>

Inheritance diagram for BRepMesh_CircleInspector:

Public Types

typedef Standard_Integer Target
 
- Public Types inherited from NCollection_CellFilter_InspectorXY
enum  { Dimension = 2 }
 Points dimension. More...
 
typedef gp_XY Point
 Points type.
 

Public Member Functions

 BRepMesh_CircleInspector (const Standard_Real theTolerance, const Standard_Integer theReservedSize, const Handle< NCollection_IncAllocator > &theAllocator)
 Constructor.
 
void Bind (const Standard_Integer theIndex, const BRepMesh_Circle &theCircle)
 Adds the circle to vector of circles at the given position.
 
const IMeshData::VectorOfCircleCircles () const
 Resutns vector of registered circles.
 
BRepMesh_CircleCircle (const Standard_Integer theIndex)
 Returns circle with the given index.
 
void SetPoint (const gp_XY &thePoint)
 Set reference point to be checked.
 
IMeshData::ListOfIntegerGetShotCircles ()
 Returns list of circles shot by the reference point.
 
NCollection_CellFilter_Action Inspect (const Standard_Integer theTargetIndex)
 Performs inspection of a circle with the given index.
 
- Public Member Functions inherited from NCollection_CellFilter_InspectorXY
Point Shift (const Point &thePnt, Standard_Real theTol) const
 Auxiliary method to shift point by each coordinate on given value; useful for preparing a points range for Inspect with tolerance.
 

Static Public Member Functions

static Standard_Boolean IsEqual (const Standard_Integer theIndex, const Standard_Integer theTargetIndex)
 Checks indices for equality.
 
- Static Public Member Functions inherited from NCollection_CellFilter_InspectorXY
static Standard_Real Coord (int i, const Point &thePnt)
 Access to coordinate.
 

Detailed Description

Auxiliary class to find circles shot by the given point.

Member Typedef Documentation

◆ Target

Constructor & Destructor Documentation

◆ BRepMesh_CircleInspector()

BRepMesh_CircleInspector::BRepMesh_CircleInspector ( const Standard_Real theTolerance,
const Standard_Integer theReservedSize,
const Handle< NCollection_IncAllocator > & theAllocator )
inline

Constructor.

Parameters
theTolerancetolerance to be used for identification of shot circles.
theReservedSizesize to be reserved for vector of circles.
theAllocatormemory allocator to be used by internal collections.

Member Function Documentation

◆ Bind()

void BRepMesh_CircleInspector::Bind ( const Standard_Integer theIndex,
const BRepMesh_Circle & theCircle )
inline

Adds the circle to vector of circles at the given position.

Parameters
theIndexposition of circle in the vector.
theCirclecircle to be added.

◆ Circle()

BRepMesh_Circle & BRepMesh_CircleInspector::Circle ( const Standard_Integer theIndex)
inline

Returns circle with the given index.

Parameters
theIndexindex of circle.
Returns
circle with the given index.

◆ Circles()

const IMeshData::VectorOfCircle & BRepMesh_CircleInspector::Circles ( ) const
inline

Resutns vector of registered circles.

◆ GetShotCircles()

IMeshData::ListOfInteger & BRepMesh_CircleInspector::GetShotCircles ( )
inline

Returns list of circles shot by the reference point.

◆ Inspect()

NCollection_CellFilter_Action BRepMesh_CircleInspector::Inspect ( const Standard_Integer theTargetIndex)
inline

Performs inspection of a circle with the given index.

Parameters
theTargetIndexindex of a circle to be checked.
Returns
status of the check.

◆ IsEqual()

static Standard_Boolean BRepMesh_CircleInspector::IsEqual ( const Standard_Integer theIndex,
const Standard_Integer theTargetIndex )
inlinestatic

Checks indices for equality.

◆ SetPoint()

void BRepMesh_CircleInspector::SetPoint ( const gp_XY & thePoint)
inline

Set reference point to be checked.

Parameters
thePointbullet point.

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