Open CASCADE Technology  6.9.0
Public Member Functions

SelectMgr_SortCriterion Class Reference

This class provides data and criterion for sorting candidate entities in the process of interactive selection by mouse click. More...

#include <SelectMgr_SortCriterion.hxx>

Public Member Functions

 SelectMgr_SortCriterion ()
 SelectMgr_SortCriterion (const Standard_Integer thePriority, const Standard_Real theDepth, const Standard_Real theMinDist, const Standard_Real theTol, const Standard_Boolean PreferClosest)
 Defines parameters of selection criterion: More...
void SetPriority (const Standard_Integer P)
void SetDepth (const Standard_Real D)
void SetMinDist (const Standard_Real D)
void SetTol (const Standard_Real T)
Standard_Integer Priority () const
Standard_Real Depth () const
Standard_Real MinDist () const
Standard_Real Tol () const
Standard_Boolean IsGreater (const SelectMgr_SortCriterion &anOtherCriterion) const
Standard_Boolean operator> (const SelectMgr_SortCriterion &anOtherCriterion) const
Standard_Boolean IsLower (const SelectMgr_SortCriterion &anOtherCriterion) const
Standard_Boolean operator< (const SelectMgr_SortCriterion &anOtherCriterion) const

Detailed Description

This class provides data and criterion for sorting candidate entities in the process of interactive selection by mouse click.

Constructor & Destructor Documentation

SelectMgr_SortCriterion::SelectMgr_SortCriterion ( )
SelectMgr_SortCriterion::SelectMgr_SortCriterion ( const Standard_Integer  thePriority,
const Standard_Real  theDepth,
const Standard_Real  theMinDist,
const Standard_Real  theTol,
const Standard_Boolean  PreferClosest 

Defines parameters of selection criterion:

  • Priority: selection priority
  • Depth: distance from the view plane to the entity
  • MinDist: distance from the clicked point to the entity on the view plane
  • Tol: tolerance used for selecting candidates
  • PreferClosest: specify whether closest object is preferred even if if has less priority

Member Function Documentation

Standard_Real SelectMgr_SortCriterion::Depth ( ) const
Standard_Boolean SelectMgr_SortCriterion::IsGreater ( const SelectMgr_SortCriterion anOtherCriterion) const
Standard_Boolean SelectMgr_SortCriterion::IsLower ( const SelectMgr_SortCriterion anOtherCriterion) const
Standard_Real SelectMgr_SortCriterion::MinDist ( ) const
Standard_Boolean SelectMgr_SortCriterion::operator< ( const SelectMgr_SortCriterion anOtherCriterion) const
Standard_Boolean SelectMgr_SortCriterion::operator> ( const SelectMgr_SortCriterion anOtherCriterion) const
Standard_Integer SelectMgr_SortCriterion::Priority ( ) const
void SelectMgr_SortCriterion::SetDepth ( const Standard_Real  D)
void SelectMgr_SortCriterion::SetMinDist ( const Standard_Real  D)
void SelectMgr_SortCriterion::SetPriority ( const Standard_Integer  P)
void SelectMgr_SortCriterion::SetTol ( const Standard_Real  T)
Standard_Real SelectMgr_SortCriterion::Tol ( ) const

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