Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
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

#include <SelectMgr_SortCriterion.hxx>

Public Member Functions

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

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

Constructor & Destructor Documentation

  • 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_Boolean SelectMgr_SortCriterion::operator< ( const SelectMgr_SortCriterion anOtherCriterion) const [inline]
Standard_Boolean SelectMgr_SortCriterion::operator> ( const SelectMgr_SortCriterion anOtherCriterion) const [inline]

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