Code_TYMPAN  4.2.0
Industrial site acoustic simulation
Public Member Functions | Protected Attributes | List of all members
CoPlanaritySelector< T > Class Template Reference

: To keep only one from two or more rays which have the same history (events on the same primitive) More...

#include <CoPlanaritySelector.h>

Inheritance diagram for CoPlanaritySelector< T >:
Inheritance graph
[legend]
Collaboration diagram for CoPlanaritySelector< T >:
Collaboration graph
[legend]

Public Member Functions

 CoPlanaritySelector ()
 Constructor. More...
 
virtual ~CoPlanaritySelector ()
 Destructor. More...
 
virtual Selector< T > * Copy ()
 Copy Selector. More...
 
virtual void reset ()
 Reset (clear the data) of this Selector. More...
 
bool haveCoPlanarEvents (T *r1, T *r2)
 
bool areBothReflections (Event *ev1, Event *ev2)
 
bool coPlanarityTest (Event *ev1, Event *ev2)
 
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)
 Select the ray. More...
 
virtual bool insertWithTest (T *r)
 Select the ray if it respects the criteria 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...
 
bool isDeletable ()
 Return true if the Selector may be deleted. More...
 
void setIsDeletable (bool _isDeletable)
 Set deletable flag. More...
 

Protected Attributes

std::map< std::vector< unsigned int >, vector< T * >, CompareToKeyselectedRays
 map of all event signatures with their corresponding rays More...
 
- Protected Attributes inherited from Selector< T >
bool deletable
 Flag to know if the selector may be deleted or not. More...
 

Detailed Description

template<typename T>
class CoPlanaritySelector< T >

: To keep only one from two or more rays which have the same history (events on the same primitive)

Definition at line 29 of file CoPlanaritySelector.h.

Constructor & Destructor Documentation

◆ CoPlanaritySelector()

template<typename T >
CoPlanaritySelector< T >::CoPlanaritySelector ( )
inline

Constructor.

Definition at line 33 of file CoPlanaritySelector.h.

Here is the caller graph for this function:

◆ ~CoPlanaritySelector()

template<typename T >
virtual CoPlanaritySelector< T >::~CoPlanaritySelector ( )
inlinevirtual

Destructor.

Definition at line 35 of file CoPlanaritySelector.h.

Member Function Documentation

◆ areBothReflections()

template<typename T >
bool CoPlanaritySelector< T >::areBothReflections ( Event ev1,
Event ev2 
)
inline

Definition at line 64 of file CoPlanaritySelector.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ canBeInserted()

template<typename T >
virtual SELECTOR_RESPOND CoPlanaritySelector< T >::canBeInserted ( T *  r,
unsigned long long &  replace 
)
inlinevirtual

Check if the ray respects the criteria of this Selector and return a SELECTOR_RESPOND.

Reimplemented from Selector< T >.

Definition at line 90 of file CoPlanaritySelector.h.

◆ coPlanarityTest()

template<typename T >
bool CoPlanaritySelector< T >::coPlanarityTest ( Event ev1,
Event ev2 
)
inline

Definition at line 68 of file CoPlanaritySelector.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Copy()

template<typename T >
virtual Selector<T>* CoPlanaritySelector< T >::Copy ( )
inlinevirtual

Copy Selector.

Reimplemented from Selector< T >.

Definition at line 37 of file CoPlanaritySelector.h.

Here is the call graph for this function:

◆ getSelectorName()

template<typename T >
virtual const char* CoPlanaritySelector< T >::getSelectorName ( )
inlinevirtual

Return the class type of the selector.

Reimplemented from Selector< T >.

Definition at line 192 of file CoPlanaritySelector.h.

◆ haveCoPlanarEvents()

template<typename T >
bool CoPlanaritySelector< T >::haveCoPlanarEvents ( T *  r1,
T *  r2 
)
inline

Definition at line 48 of file CoPlanaritySelector.h.

Here is the call graph for this function:

◆ insert()

template<typename T >
virtual void CoPlanaritySelector< T >::insert ( T *  r)
inlinevirtual

Select the ray.

Reimplemented from Selector< T >.

Definition at line 128 of file CoPlanaritySelector.h.

◆ insertWithTest()

template<typename T >
virtual bool CoPlanaritySelector< T >::insertWithTest ( T *  r)
inlinevirtual

Select the ray if it respects the criteria of this Selector.

Reimplemented from Selector< T >.

Definition at line 158 of file CoPlanaritySelector.h.

◆ reset()

template<typename T >
virtual void CoPlanaritySelector< T >::reset ( )
inlinevirtual

Reset (clear the data) of this Selector.

Reimplemented from Selector< T >.

Definition at line 43 of file CoPlanaritySelector.h.

Member Data Documentation

◆ selectedRays

template<typename T >
std::map<std::vector<unsigned int>, vector<T*>, CompareToKey> CoPlanaritySelector< T >::selectedRays
protected

map of all event signatures with their corresponding rays

Definition at line 197 of file CoPlanaritySelector.h.


The documentation for this class was generated from the following file: