NDEVR
API Documentation
ObjectSorterabstract

Allows for sorting models when supported. More...

Inheritance diagram for ObjectSorter:
[legend]
Collaboration diagram for ObjectSorter:
[legend]

Public Member Functions

virtual bool canSort (const DesignObject &a, const DesignObject &b) const =0
 Returns true if it is possible for this sorter to detemine the order of two objects.
virtual UUID id () const =0
 A unique identifier for this sorting service.
virtual bool isALessThanB (const DesignObject &a, const DesignObject &b) const =0
 Returns true if a is evaluated to be less than b.

Detailed Description

Allows for sorting models when supported.


This can be used to augment the order in which objects appear in the SceneTree or in DesignObjectTables.

Definition at line 12 of file ModelSorter.h.

Member Function Documentation

◆ canSort()

virtual bool ObjectSorter::canSort ( const DesignObject & a,
const DesignObject & b ) const
pure virtual

Returns true if it is possible for this sorter to detemine the order of two objects.

Parameters
aThe first DesignObject to sort
bThe second DesignObject to sort

◆ id()

virtual UUID ObjectSorter::id ( ) const
pure virtual

A unique identifier for this sorting service.

Returns
A unique identifier for this sorting service

◆ isALessThanB()

virtual bool ObjectSorter::isALessThanB ( const DesignObject & a,
const DesignObject & b ) const
pure virtual

Returns true if a is evaluated to be less than b.

Parameters
aThe first DesignObject to sort
bThe second DesignObject to sort
Returns
true if a is less than b

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