Open CASCADE Technology 7.8.2.dev
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 ()
 Empty constructor.
 
bool IsCloserDepth (const SelectMgr_SortCriterion &theOther) const
 Compare with another item by depth, priority and minDist.
 
bool IsHigherPriority (const SelectMgr_SortCriterion &theOther) const
 Compare with another item using old logic (OCCT version <= 6.3.1) with priority considered preceding depth.
 

Data Fields

Handle< Select3D_SensitiveEntityEntity
 detected entity
 
gp_Pnt Point
 3D point
 
Graphic3d_Vec3 Normal
 surface normal or 0 vector if undefined
 
Standard_Real Depth
 distance from the view plane to the entity
 
Standard_Real MinDist
 distance from the clicked point to the entity on the view plane
 
Standard_Real Tolerance
 tolerance used for selecting candidates
 
Standard_Integer SelectionPriority
 selection priority
 
Standard_Integer DisplayPriority
 display priority
 
Standard_Integer ZLayerPosition
 ZLayer rendering order index, stronger than a depth.
 
Standard_Integer NbOwnerMatches
 overall number of entities collected for the same owner
 
Standard_Boolean IsPreferPriority
 flag to signal comparison to be done over priority
 

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 ( )
inline

Empty constructor.

Member Function Documentation

◆ IsCloserDepth()

bool SelectMgr_SortCriterion::IsCloserDepth ( const SelectMgr_SortCriterion & theOther) const
inline

Compare with another item by depth, priority and minDist.

◆ IsHigherPriority()

bool SelectMgr_SortCriterion::IsHigherPriority ( const SelectMgr_SortCriterion & theOther) const
inline

Compare with another item using old logic (OCCT version <= 6.3.1) with priority considered preceding depth.

Field Documentation

◆ Depth

Standard_Real SelectMgr_SortCriterion::Depth

distance from the view plane to the entity

◆ DisplayPriority

Standard_Integer SelectMgr_SortCriterion::DisplayPriority

display priority

◆ Entity

Handle< Select3D_SensitiveEntity > SelectMgr_SortCriterion::Entity

detected entity

◆ IsPreferPriority

Standard_Boolean SelectMgr_SortCriterion::IsPreferPriority

flag to signal comparison to be done over priority

◆ MinDist

Standard_Real SelectMgr_SortCriterion::MinDist

distance from the clicked point to the entity on the view plane

◆ NbOwnerMatches

Standard_Integer SelectMgr_SortCriterion::NbOwnerMatches

overall number of entities collected for the same owner

◆ Normal

Graphic3d_Vec3 SelectMgr_SortCriterion::Normal

surface normal or 0 vector if undefined

◆ Point

gp_Pnt SelectMgr_SortCriterion::Point

3D point

◆ SelectionPriority

Standard_Integer SelectMgr_SortCriterion::SelectionPriority

selection priority

◆ Tolerance

Standard_Real SelectMgr_SortCriterion::Tolerance

tolerance used for selecting candidates

◆ ZLayerPosition

Standard_Integer SelectMgr_SortCriterion::ZLayerPosition

ZLayer rendering order index, stronger than a depth.


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