Open CASCADE Technology  7.2.0
Public Types | Public Member Functions | Static Public Member Functions
BRepMesh_CircleInspector Class Reference

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

#include <BRepMesh_CircleInspector.hxx>

Inheritance diagram for BRepMesh_CircleInspector:
Inheritance graph
[legend]

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. More...
 

Public Member Functions

 BRepMesh_CircleInspector (const Standard_Real theTolerance, const Standard_Integer theReservedSize, const Handle< NCollection_IncAllocator > &theAllocator)
 Constructor. More...
 
void Bind (const Standard_Integer theIndex, const BRepMesh_Circle &theCircle)
 Adds the circle to vector of circles at the given position. More...
 
const BRepMesh::VectorOfCircleCircles () const
 Resutns vector of registered circles. More...
 
BRepMesh_CircleCircle (const Standard_Integer theIndex)
 Returns circle with the given index. More...
 
void SetPoint (const gp_XY &thePoint)
 Set reference point to be checked. More...
 
BRepMesh::ListOfIntegerGetShotCircles ()
 Returns list of circles shot by the reference point. More...
 
NCollection_CellFilter_Action Inspect (const Standard_Integer theTargetIndex)
 Performs inspection of a circle with the given index. More...
 
- 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. More...
 

Static Public Member Functions

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

Detailed Description

Auxilary 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 BRepMesh::VectorOfCircle& BRepMesh_CircleInspector::Circles ( ) const
inline

Resutns vector of registered circles.

◆ GetShotCircles()

BRepMesh::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)

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 equlity.

◆ 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: