16 #ifndef LENGTH_SELECTOR
17 #define LENGTH_SELECTOR
80 virtual void insert(T* r,
unsigned long long& replace)
136 this->maximumLength = _maximumLength;
160 return typeid(
this).
name();
: Rejects rays which have traveled a distance greater than a given length
virtual bool insertWithTest(T *r)
Select the ray if it respects the criteria of this Selector.
virtual void insert(T *r, unsigned long long &replace)
Keep the ray.
virtual const char * getSelectorName()
Return the class type of the selector.
virtual Selector< T > * Copy()
Copy Selector.
void setMaximumLength(double _maximumLength)
Set the maximal length.
double getMaximumLength()
Get the maximal length.
OPERATOR getOperator()
Get the OPERATOR of this Selector.
double maxLength
Maximal length criteria.
void setOperator(OPERATOR _op)
Set the OPERATOR of this Selector.
LengthSelector(double _maxLength=2000, OPERATOR _op=LESS_OR_EQUAL)
Default constructor.
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.
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.