An internal class for calculation of current largest tolerance value which will be applied for creation of selecting frustum by default. Each time the selection set is deactivated, maximum tolerance value will be recalculated. If a user enables custom precision using StdSelect_ViewerSelector3d::SetPixelTolerance, it will be applied to all sensitive entities without any checks.
More...
#include <SelectMgr_ToleranceMap.hxx>
|
| | SelectMgr_ToleranceMap () |
| | Sets tolerance values to -1.0.
|
| | ~SelectMgr_ToleranceMap () |
| void | Add (const int &theTolerance) |
| | Adds the value given to map, checks if the current tolerance value should be replaced by theTolerance.
|
| void | Decrement (const int &theTolerance) |
| | Decrements a counter of the tolerance given, checks if the current tolerance value should be recalculated.
|
| int | Tolerance () const |
| | Returns a current tolerance that must be applied.
|
| void | SetCustomTolerance (const int theTolerance) |
| | Sets tolerance to the given one and disables adaptive checks.
|
| void | ResetDefaults () |
| | Unsets a custom tolerance and enables adaptive checks.
|
| int | CustomTolerance () const |
| | Returns the value of custom tolerance regardless of it validity.
|
| bool | IsCustomTolSet () const |
| | Returns true if custom tolerance value is greater than zero.
|
An internal class for calculation of current largest tolerance value which will be applied for creation of selecting frustum by default. Each time the selection set is deactivated, maximum tolerance value will be recalculated. If a user enables custom precision using StdSelect_ViewerSelector3d::SetPixelTolerance, it will be applied to all sensitive entities without any checks.
◆ SelectMgr_ToleranceMap()
| SelectMgr_ToleranceMap::SelectMgr_ToleranceMap |
( |
| ) |
|
Sets tolerance values to -1.0.
◆ ~SelectMgr_ToleranceMap()
| SelectMgr_ToleranceMap::~SelectMgr_ToleranceMap |
( |
| ) |
|
◆ Add()
| void SelectMgr_ToleranceMap::Add |
( |
const int & | theTolerance | ) |
|
Adds the value given to map, checks if the current tolerance value should be replaced by theTolerance.
◆ CustomTolerance()
| int SelectMgr_ToleranceMap::CustomTolerance |
( |
| ) |
const |
|
inline |
Returns the value of custom tolerance regardless of it validity.
◆ Decrement()
| void SelectMgr_ToleranceMap::Decrement |
( |
const int & | theTolerance | ) |
|
Decrements a counter of the tolerance given, checks if the current tolerance value should be recalculated.
◆ IsCustomTolSet()
| bool SelectMgr_ToleranceMap::IsCustomTolSet |
( |
| ) |
const |
|
inline |
Returns true if custom tolerance value is greater than zero.
◆ ResetDefaults()
| void SelectMgr_ToleranceMap::ResetDefaults |
( |
| ) |
|
|
inline |
Unsets a custom tolerance and enables adaptive checks.
◆ SetCustomTolerance()
| void SelectMgr_ToleranceMap::SetCustomTolerance |
( |
const int | theTolerance | ) |
|
|
inline |
Sets tolerance to the given one and disables adaptive checks.
◆ Tolerance()
| int SelectMgr_ToleranceMap::Tolerance |
( |
| ) |
const |
|
inline |
Returns a current tolerance that must be applied.
The documentation for this class was generated from the following file: