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 (global::System.IntPtr cPtr, bool cMemoryOwn)
 
 MTKBase_FeatureComparator ()
 Constructor.
 
 MTKBase_FeatureComparator (double theDoubleParameterPrecision)
 Constructor.
 
bool Apply (cadex.MTKBase_Feature theA, cadex.MTKBase_Feature theB)
 
- Public Member Functions inherited from cadex.BaseObject
 BaseObject (global::System.IntPtr cPtr, bool cMemoryOwn)
 
void Dispose ()
 
bool IsNull ()
 
ulong Id ()
 Return unique identifier of public object.
 
bool IsEqual (cadex.BaseObject theObj)
 
override int GetHashCode ()
 
override bool Equals (System.Object o)
 

Protected Member Functions

override void Dispose (bool disposing)
 

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

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

Constructor.

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

Member Function Documentation

◆ Dispose()

override void cadex.MTKBase_FeatureComparator.Dispose ( bool disposing)
inlineprotectedvirtual

Reimplemented from cadex.BaseObject.