40 bool operator()(std::vector<unsigned int> list1, std::vector<unsigned int> list2)
const 43 int minSize = ( list1.size() < list2.size() ) ? list1.size() : list2.size() ;
44 for (
int i = 0; i < minSize; i++)
46 if (list1.at(i) < list2.at(i))
50 else if (list1.at(i) == list2.at(i))
60 if (list1.size() == list2.size())
65 if (list1.size() < list2.size())
86 virtual void reset() {
return; }
96 virtual void insert(T* r) {
return; }
virtual ~Selector()
Destructor.
bool deletable
Flag to know if the selector may be deleted or not.
virtual void reset()
Reset (clear the data) of this Selector.
virtual const char * getSelectorName()
Base class for Selector (used to keep or disable rays according different criterias) ...
Selector()
Base constructor.
bool operator()(std::vector< unsigned int > list1, std::vector< unsigned int > list2) const
virtual Selector * Copy()
Copy Selector.
virtual bool insertWithTest(T *r)
Select the ray if it respects the criteria of this Selector.
virtual SELECTOR_RESPOND canBeInserted(T *r, unsigned long long &replace)
Check if the ray respects the criteria of this Selector and return a SELECTOR_RESPOND.
void setIsDeletable(bool _isDeletable)
Set deletable flag.
bool isDeletable()
Return true if the Selector may be deleted.
virtual void insert(T *r)
Select the ray.