Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes
BRepMesh_CircleInspector Class Reference

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

#include <BRepMesh_CircleInspector.hxx>

Public Types

typedef gp_XY Point
 
typedef int Target
 

Public Member Functions

 BRepMesh_CircleInspector (const double theTolerance, const int theReservedSize, const occ::handle< NCollection_IncAllocator > &theAllocator)
 Constructor.
 
void Bind (const int 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 int 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 int theTargetIndex)
 Performs inspection of a circle with the given index.
 

Static Public Member Functions

static double Coord (int i, const Point &thePnt)
 
static Point Shift (const Point &thePnt, double theTol)
 
static bool IsEqual (const int theIndex, const int theTargetIndex)
 Checks indices for equality.
 

Static Public Attributes

static constexpr int Dimension = 2
 

Detailed Description

Auxiliary class to find circles shot by the given point.

Member Typedef Documentation

◆ Point

◆ Target

Constructor & Destructor Documentation

◆ BRepMesh_CircleInspector()

BRepMesh_CircleInspector::BRepMesh_CircleInspector ( const double theTolerance,
const int theReservedSize,
const occ::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 int 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 int 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.

◆ Coord()

static double BRepMesh_CircleInspector::Coord ( int i,
const Point & thePnt )
inlinestatic

◆ GetShotCircles()

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

Returns list of circles shot by the reference point.

◆ Inspect()

NCollection_CellFilter_Action BRepMesh_CircleInspector::Inspect ( const int 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 bool BRepMesh_CircleInspector::IsEqual ( const int theIndex,
const int 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.

◆ Shift()

static Point BRepMesh_CircleInspector::Shift ( const Point & thePnt,
double theTol )
inlinestatic

Field Documentation

◆ Dimension

constexpr int BRepMesh_CircleInspector::Dimension = 2
staticconstexpr

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