|
Code_TYMPAN
4.4.0
Industrial site acoustic simulation
|
: Rejects rays which have traveled a distance greater than a given length More...
#include <LengthSelector.h>


Public Member Functions | |
| LengthSelector (double _maxLength=2000, OPERATOR _op=LESS_OR_EQUAL) | |
| Default constructor. More... | |
| virtual Selector< T > * | Copy () |
| Copy Selector. More... | |
| 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. More... | |
| virtual void | insert (T *r, unsigned long long &replace) |
| Keep the ray. More... | |
| virtual bool | insertWithTest (T *r) |
| Select the ray if it respects the criteria of this Selector. More... | |
| double | getMaximumLength () |
| Get the maximal length. More... | |
| void | setMaximumLength (double _maximumLength) |
| Set the maximal length. More... | |
| OPERATOR | getOperator () |
| Get the OPERATOR of this Selector. More... | |
| void | setOperator (OPERATOR _op) |
| Set the OPERATOR of this Selector. More... | |
| virtual const char * | getSelectorName () |
| Return the class type of the selector. More... | |
Public Member Functions inherited from Selector< T > | |
| Selector () | |
| Base constructor. More... | |
| virtual | ~Selector () |
| Destructor. More... | |
| virtual void | reset () |
| Reset (clear the data) of this Selector. More... | |
| bool | isDeletable () |
| Return true if the Selector may be deleted. More... | |
| void | setIsDeletable (bool _isDeletable) |
| Set deletable flag. More... | |
| virtual void | insert (T *r) |
| Select the ray. More... | |
Protected Attributes | |
| double | maxLength |
| Maximal length criteria. More... | |
| OPERATOR | op |
Protected Attributes inherited from Selector< T > | |
| bool | deletable |
| Flag to know if the selector may be deleted or not. More... | |
: Rejects rays which have traveled a distance greater than a given length
Definition at line 24 of file LengthSelector.h.
|
inline |
Default constructor.
Definition at line 28 of file LengthSelector.h.

|
inlinevirtual |
Check if the ray respects the criteria of this Selector and return a SELECTOR_RESPOND.
Reimplemented from Selector< T >.
Definition at line 41 of file LengthSelector.h.
|
inlinevirtual |
Copy Selector.
Reimplemented from Selector< T >.
Definition at line 33 of file LengthSelector.h.

|
inline |
Get the maximal length.
Definition at line 126 of file LengthSelector.h.
|
inline |
Get the OPERATOR of this Selector.
Definition at line 142 of file LengthSelector.h.
|
inlinevirtual |
Return the class type of the selector.
Reimplemented from Selector< T >.
Definition at line 158 of file LengthSelector.h.
|
inlinevirtual |
Keep the ray.
Definition at line 80 of file LengthSelector.h.
|
inlinevirtual |
Select the ray if it respects the criteria of this Selector.
Reimplemented from Selector< T >.
Definition at line 85 of file LengthSelector.h.
|
inline |
Set the maximal length.
Definition at line 134 of file LengthSelector.h.
|
inline |
Set the OPERATOR of this Selector.
Definition at line 150 of file LengthSelector.h.

|
protected |
Maximal length criteria.
Definition at line 164 of file LengthSelector.h.
|
protected |
OPERATOR used (by default LESS_OR_EQUAL, which means this Selector keeps only ray with travelled distance<=maximalLength)
Definition at line 165 of file LengthSelector.h.