16 #ifndef LENGTH_SELECTOR 17 #define LENGTH_SELECTOR 77 virtual void insert(T* r,
unsigned long long& replace) {
return; }
141 return typeid(
this).
name();
bool deletable
Flag to know if the selector may be deleted or not.
virtual const char * getSelectorName()
Return the class type of the selector.
double maxLength
Maximal length criteria.
: Rejects rays which have traveled a distance greater than a given length
virtual Selector< T > * Copy()
Copy Selector.
virtual void insert(T *r, unsigned long long &replace)
Keep the ray.
OPERATOR getOperator()
Get the OPERATOR of this Selector.
void setOperator(OPERATOR _op)
Set the OPERATOR of this Selector.
double getMaximumLength()
Get the maximal length.
Base class for Selector (used to keep or disable rays according different criterias) ...
OPERATOR op
OPERATOR used (by default LESS_OR_EQUAL, which means this Selector keeps only ray with travelled dist...
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.
LengthSelector(double _maxLength=2000, OPERATOR _op=LESS_OR_EQUAL)
Default constructor.
virtual bool insertWithTest(T *r)
Select the ray if it respects the criteria of this Selector.
void setIsDeletable(bool _isDeletable)
Set deletable flag.
void setMaximumLength(double _maximumLength)
Set the maximal length.