16 #ifndef DIFFRACTION_SELECTOR
17 #define DIFFRACTION_SELECTOR
148 return typeid(
this).
name();
: To disable ray with a number of diffraction events greater than a threshold value
int getMaximumDiffractionOrder()
Get maxDiffractionOrder.
OPERATOR getOperator()
Get the Operator used by this Selector.
void setMaximumDiffractionOrder(int _maxDiffractionOrder)
Set maxDiffractionOrder.
void setOperator(OPERATOR _op)
Set the Operator used by 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.
int maxDiffractionOrder
Maximal number of possible diffractions.
DiffractionSelector(int _maxDiffractionOrder=1, OPERATOR _op=LESS_OR_EQUAL)
Constructor.
virtual Selector< T > * Copy()
Copy Selector.
virtual bool insertWithTest(T *r)
Select the ray if it respects the criteria of this Selector.
virtual void insert(T *r)
Select the ray.
virtual const char * getSelectorName()
Return the class type of the selector.
Base class for Selector (used to keep or disable rays according different criterias)
void setIsDeletable(bool _isDeletable)
Set deletable flag.
bool deletable
Flag to know if the selector may be deleted or not.