Version: 9.16.0
SMESH::Controls::Classifier Struct Reference

#include <SMESH_ControlsClassifier.hxx>

Public Member Functions

 Classifier ()
 
 ~Classifier ()
 
void Init (const TopoDS_Shape &s, double tol, const Bnd_B3d *box=0)
 
bool IsOut (const gp_Pnt &p)
 
TopAbs_ShapeEnum ShapeType () const
 
const TopoDS_Shape & Shape () const
 
const Bnd_B3d * GetBndBox () const
 
double Tolerance () const
 
bool IsChecked ()
 
bool IsSetFlag (int flag) const
 
void SetChecked (bool is)
 
void SetFlag (int flag)
 
void UnsetFlag (int flag)
 
void GetParams (double &u, double &v) const
 

Private Member Functions

bool isOutOfSolid (const gp_Pnt &p)
 
bool isOutOfBox (const gp_Pnt &p)
 
bool isOutOfFace (const gp_Pnt &p)
 
bool isOutOfEdge (const gp_Pnt &p)
 
bool isOutOfVertex (const gp_Pnt &p)
 
bool isOutOfNone (const gp_Pnt &)
 
bool isBox (const TopoDS_Shape &s)
 
TopoDS_Shape prepareSolid (const TopoDS_Shape &theSolid)
 

Private Attributes

bool(Classifier::* myIsOutFun )(const gp_Pnt &p)
 
BRepClass3d_SolidClassifier * mySolidClfr
 
Bnd_B3d myBox
 
GeomAPI_ProjectPointOnSurf * myProjFace
 
GeomAPI_ProjectPointOnCurve * myProjEdge
 
gp_Pnt myVertexXYZ
 
TopoDS_Shape myShape
 
double myTol
 
double myU
 
double myV
 
int myFlags
 

Static Private Attributes

static const int theIsCheckedFlag = 0x0000100
 

Constructor & Destructor Documentation

◆ Classifier()

SMESH::Controls::Classifier::Classifier ( )

◆ ~Classifier()

SMESH::Controls::Classifier::~Classifier ( )

References myProjEdge, myProjFace, and mySolidClfr.

Member Function Documentation

◆ GetBndBox()

const Bnd_B3d * SMESH::Controls::Classifier::GetBndBox ( ) const

◆ GetParams()

void SMESH::Controls::Classifier::GetParams ( double &  u,
double &  v 
) const

◆ Init()

void SMESH::Controls::Classifier::Init ( const TopoDS_Shape &  s,
double  tol,
const Bnd_B3d *  box = 0 
)

◆ isBox()

bool SMESH::Controls::Classifier::isBox ( const TopoDS_Shape &  s)
private

References myBox, and myTol.

Referenced by Init().

◆ IsChecked()

bool SMESH::Controls::Classifier::IsChecked ( )

◆ IsOut()

bool SMESH::Controls::Classifier::IsOut ( const gp_Pnt &  p)

◆ isOutOfBox()

bool SMESH::Controls::Classifier::isOutOfBox ( const gp_Pnt &  p)
private

References myBox.

Referenced by Init(), isOutOfEdge(), isOutOfFace(), and isOutOfSolid().

◆ isOutOfEdge()

bool SMESH::Controls::Classifier::isOutOfEdge ( const gp_Pnt &  p)
private

References isOutOfBox(), myProjEdge, myTol, and myU.

Referenced by Init().

◆ isOutOfFace()

bool SMESH::Controls::Classifier::isOutOfFace ( const gp_Pnt &  p)
private

References Face, isOutOfBox(), myProjFace, myShape, myTol, myU, and myV.

Referenced by Init().

◆ isOutOfNone()

bool SMESH::Controls::Classifier::isOutOfNone ( const gp_Pnt &  )
private

Referenced by Init().

◆ isOutOfSolid()

bool SMESH::Controls::Classifier::isOutOfSolid ( const gp_Pnt &  p)
private

References isOutOfBox(), mySolidClfr, and myTol.

Referenced by Init().

◆ isOutOfVertex()

bool SMESH::Controls::Classifier::isOutOfVertex ( const gp_Pnt &  p)
private

References myTol, and myVertexXYZ.

Referenced by Init().

◆ IsSetFlag()

bool SMESH::Controls::Classifier::IsSetFlag ( int  flag) const

◆ prepareSolid()

TopoDS_Shape SMESH::Controls::Classifier::prepareSolid ( const TopoDS_Shape &  theSolid)
private

References myTol.

Referenced by Init().

◆ SetChecked()

void SMESH::Controls::Classifier::SetChecked ( bool  is)

◆ SetFlag()

void SMESH::Controls::Classifier::SetFlag ( int  flag)

◆ Shape()

const TopoDS_Shape & SMESH::Controls::Classifier::Shape ( ) const

◆ ShapeType()

TopAbs_ShapeEnum SMESH::Controls::Classifier::ShapeType ( ) const

◆ Tolerance()

double SMESH::Controls::Classifier::Tolerance ( ) const

◆ UnsetFlag()

void SMESH::Controls::Classifier::UnsetFlag ( int  flag)

Field Documentation

◆ myBox

Bnd_B3d SMESH::Controls::Classifier::myBox
private

Referenced by Init(), isBox(), and isOutOfBox().

◆ myFlags

int SMESH::Controls::Classifier::myFlags
private

Referenced by Init().

◆ myIsOutFun

bool(Classifier::* SMESH::Controls::Classifier::myIsOutFun) (const gp_Pnt &p)
private

Referenced by Init().

◆ myProjEdge

GeomAPI_ProjectPointOnCurve* SMESH::Controls::Classifier::myProjEdge
private

Referenced by Init(), isOutOfEdge(), and ~Classifier().

◆ myProjFace

GeomAPI_ProjectPointOnSurf* SMESH::Controls::Classifier::myProjFace
private

Referenced by Init(), isOutOfFace(), and ~Classifier().

◆ myShape

TopoDS_Shape SMESH::Controls::Classifier::myShape
private

Referenced by Init(), and isOutOfFace().

◆ mySolidClfr

BRepClass3d_SolidClassifier* SMESH::Controls::Classifier::mySolidClfr
private

Referenced by Init(), isOutOfSolid(), and ~Classifier().

◆ myTol

double SMESH::Controls::Classifier::myTol
private

◆ myU

double SMESH::Controls::Classifier::myU
private

Referenced by isOutOfEdge(), and isOutOfFace().

◆ myV

double SMESH::Controls::Classifier::myV
private

Referenced by isOutOfFace().

◆ myVertexXYZ

gp_Pnt SMESH::Controls::Classifier::myVertexXYZ
private

Referenced by Init(), and isOutOfVertex().

◆ theIsCheckedFlag

const int SMESH::Controls::Classifier::theIsCheckedFlag = 0x0000100
staticprivate