Hide menu
Loading...
Searching...
No Matches
cadex::MTKBase_FeatureComparator Class Reference

Compares features depending on their type and parameters. More...

Inheritance diagram for cadex::MTKBase_FeatureComparator:
cadex::BaseObject

Public Member Functions

 MTKBase_FeatureComparator ()
 Constructor.
 
 MTKBase_FeatureComparator (double theDoubleParameterPrecision)
 Constructor.
 
bool operator() (const MTKBase_Feature &theA, const MTKBase_Feature &theB) const
 Checks whether the first argument is less than the second.
 
- Public Member Functions inherited from cadex::BaseObject
size_t Id () const
 Return unique identifier of public object.
 
internal::BaseObjectImpl * Impl () const
 
bool IsNull () const
 
 operator bool () const
 
template<typename T >
bool IsOfType () const
 
template<typename T >
T * Impl () const
 Reserved for internal use.
 

Additional Inherited Members

- Public Types inherited from cadex::BaseObject
typedef std::shared_ptr< internal::BaseObjectImpl > ImplType
 
- Protected Member Functions inherited from cadex::BaseObject
 BaseObject (const ImplType &theImpl)
 

Detailed Description

Compares features depending on their type and parameters.

This class compares features by type and for features of the same type their parameters (length, width, radius, etc.) using less relation by already predefined rules. Therefore, this comparator can be used in ordered containers.

Examples
helpers/feature_group.cs, helpers/feature_group.hxx, machining/dfm_analyzer/Program.cs, machining/dfm_analyzer/main.cxx, machining/feature_recognizer/Program.cs, machining/feature_recognizer/main.cxx, molding/dfm_analyzer/Program.cs, molding/dfm_analyzer/main.cxx, molding/feature_recognizer/Program.cs, molding/feature_recognizer/main.cxx, sheet_metal/dfm_analyzer/Program.cs, sheet_metal/dfm_analyzer/main.cxx, sheet_metal/feature_recognizer/Program.cs, and sheet_metal/feature_recognizer/main.cxx.

Constructor & Destructor Documentation

◆ MTKBase_FeatureComparator() [1/2]

cadex::MTKBase_FeatureComparator::MTKBase_FeatureComparator ( )

Constructor.

Comparision of feature parameters will occur with a default tolerance of 1.e-5.

◆ MTKBase_FeatureComparator() [2/2]

cadex::MTKBase_FeatureComparator::MTKBase_FeatureComparator ( double theDoubleParameterPrecision)

Constructor.

Comparision of feature parameters will occur with a tolerance of theDoubleParameterPrecision .